B.S.W.E. Bachelor of Software Engineering Trivia 3 ā Questions and Answers
Question 1: Which company originally developed the Java programming language?
- Microsoft
- IBM
- Sun Microsystems (Correct answer)
- Apple
Correct answer: Sun Microsystems
Java was developed by Sun Microsystems and released in 1995, later acquired by Oracle in 2010.
Question 2: What does 'SQL' stand for?
- Structured Query Language (Correct answer)
- Sequential Query Logic
- Standard Question Lookup
- System Queue Language
Correct answer: Structured Query Language
SQL stands for Structured Query Language, the standard language for managing and querying relational databases.
Question 3: In Big O notation, what is the time complexity of a binary search algorithm?
- O(n)
- O(n²)
- O(log n) (Correct answer)
- O(1)
Correct answer: O(log n)
Binary search has O(log n) time complexity because it halves the search space with each comparison.
Question 4: What term describes a software design flaw where an object knows too much or does too much?
- Spaghetti Code
- God Object (Correct answer)
- Dead Code
- Magic Number
Correct answer: God Object
A God Object is an anti-pattern where a single class handles too many responsibilities, violating the Single Responsibility Principle.
Question 5: Which protocol is used to securely transfer files between a client and server over SSH?
- FTP
- SFTP (Correct answer)
- FTPS
- HTTP
Correct answer: SFTP
SFTP (SSH File Transfer Protocol) uses SSH encryption to securely transfer files between client and server.
Question 6: What is the primary purpose of a compiler in software development?
- Execute code line by line at runtime
- Translate source code into machine code (Correct answer)
- Manage memory allocation
- Debug logical errors in code
Correct answer: Translate source code into machine code
A compiler translates high-level source code into machine code or an intermediate form before execution.
Question 7: Which design pattern ensures a class has only one instance and provides a global access point to it?
- Factory
- Observer
- Singleton (Correct answer)
- Decorator
Correct answer: Singleton
The Singleton pattern restricts instantiation of a class to one object and provides a global access point to that instance.
Which company originally developed the Java programming language?