B.S.W.E. Bachelor of Software Engineering Trivia 4 — Questions and Answers
Question 1: What does 'HTTP' stand for?
- HyperText Transfer Protocol (Correct answer)
- High Traffic Transmission Protocol
- Hyperlink Text Transfer Process
- Hosted Text Transport Protocol
Correct answer: HyperText Transfer Protocol
HTTP stands for HyperText Transfer Protocol, the foundation of data communication on the World Wide Web.
Question 2: In software testing, what is a 'regression test'?
- A test written before code is implemented
- A test to verify previous functionality still works after changes (Correct answer)
- A test measuring performance under load
- A test checking user interface layouts
Correct answer: A test to verify previous functionality still works after changes
Regression testing verifies that previously working features have not been broken by recent code changes.
Question 3: Which famous algorithm problem involves finding the shortest path between nodes in a graph?
- Prim's algorithm
- Dijkstra's algorithm (Correct answer)
- Bellman-Ford only
- Floyd-Warshall only
Correct answer: Dijkstra's algorithm
Dijkstra's algorithm finds the shortest path from a source node to all other nodes in a weighted graph with non-negative edges.
Question 4: What is the purpose of a 'mutex' in concurrent programming?
- To allocate memory blocks
- To prevent simultaneous access to a shared resource (Correct answer)
- To serialize network packets
- To compress data streams
Correct answer: To prevent simultaneous access to a shared resource
A mutex (mutual exclusion lock) prevents multiple threads from simultaneously accessing a shared resource, avoiding race conditions.
Question 5: Which of the following best describes 'technical debt' in software engineering?
- Money owed for software licenses
- The cost of rework caused by choosing an easy solution now over a better approach (Correct answer)
- Lines of code exceeding a project's budget estimate
- Outdated hardware that slows development
Correct answer: The cost of rework caused by choosing an easy solution now over a better approach
Technical debt refers to the implied cost of future rework resulting from choosing a quick but suboptimal solution in the present.
Question 6: What is the main characteristic of a 'microservices' architecture?
- All application functions run in a single deployable unit
- The application is split into small, independently deployable services (Correct answer)
- Services share a single database exclusively
- The system runs on embedded hardware with minimal memory
Correct answer: The application is split into small, independently deployable services
Microservices architecture structures an application as a collection of small, loosely coupled, independently deployable services.
Question 7: Who co-authored the influential book 'The Pragmatic Programmer'?
- Robert C. Martin and Kent Beck
- Andrew Hunt and David Thomas (Correct answer)
- Martin Fowler and Eric Evans
- Donald Knuth and Edsger Dijkstra
Correct answer: Andrew Hunt and David Thomas
'The Pragmatic Programmer' was written by Andrew Hunt and David Thomas, first published in 1999.
What does 'HTTP' stand for?