B.S.W.E. Bachelor of Software Engineering B.S.W.E. Bachelor of Software Engineering MCQ 4 β Questions and Answers
Question 1: Which software quality attribute refers to the ability of a system to handle increased load by adding resources?
- Reliability
- Portability
- Scalability (Correct answer)
- Maintainability
Correct answer: Scalability
Scalability describes a system's capacity to handle growing workloads by adding hardware or software resources without degrading performance.
Question 2: In a binary tree, which traversal visits the root node before its left and right subtrees?
- In-order
- Post-order
- Pre-order (Correct answer)
- Level-order
Correct answer: Pre-order
Pre-order traversal visits the root first, then recursively traverses the left subtree, and finally the right subtree.
Question 3: Which HTTP method is idempotent and used to update or create a resource at a specific URI?
- POST
- PATCH
- PUT (Correct answer)
- DELETE
Correct answer: PUT
PUT is idempotent and replaces the entire resource at the specified URI; calling it multiple times produces the same result as calling it once.
Question 4: In relational database normalization, which normal form eliminates transitive functional dependencies?
- First Normal Form (1NF)
- Second Normal Form (2NF)
- Third Normal Form (3NF) (Correct answer)
- Boyce-Codd Normal Form (BCNF)
Correct answer: Third Normal Form (3NF)
Third Normal Form (3NF) requires that non-key attributes depend only on the primary key and not on other non-key attributes (transitive dependency).
Question 5: Which type of software testing verifies that previously working functionality has not been broken by new changes?
- Unit testing
- Integration testing
- Regression testing (Correct answer)
- Performance testing
Correct answer: Regression testing
Regression testing re-runs existing test cases after code changes to ensure that new modifications have not introduced defects in previously working features.
Question 6: In concurrent programming, which condition occurs when two or more threads are each waiting for the other to release a resource?
- Race condition
- Starvation
- Deadlock (Correct answer)
- Livelock
Correct answer: Deadlock
Deadlock occurs when a set of threads are permanently blocked because each holds a resource needed by another, forming a circular wait.
Question 7: Which software engineering practice involves automatically building and testing code every time a developer commits changes?
- Continuous Deployment
- DevOps
- Continuous Integration (Correct answer)
- Test-Driven Development
Correct answer: Continuous Integration
Continuous Integration (CI) automates the building and testing of code on every commit so that integration errors are detected early and frequently.
Which software quality attribute refers to the ability of a system to handle increased load by adding resources?