Seg 2105 Sample Exam MC Questions
Seg 2105 Sample Exam MC Questions
4. Which of the following would not be a key task of a software project manager?
a) Co-ordinating with the managers of other teams
b) Giving advice about the software architecture
c) Designing the database
d) Ensuring the developers have the right tools and technology
e) Helping to resolve conflicts among developers
Answer c
5. Using equivalence classes to design tests helps improve what?
a) The efficiency of the testing process
b) The coverage of nodes in the flow graph
c) The reusability of the system
d) The ability to find defects relating to timing, such as critical races
e) The ability to find defects relating to stress, such as crashes in a heavily loaded system
Answer a
8. Which kind of UML diagram describes how code is arranged into directories?
a) Deployment
b) Component
c) Communication
d) State
e) Package
Answer e
13. When should code inspection be performed if you are using test-driven development?
a) As soon as the code is written, but before the automated tests are first run
b) As soon as possible after most of the automated tests have passed
c) After most automated and manual tests have passed
d) After all testing is complete
e) On any code after a test fails and the defect is in that code
Answer b. This was covered in the lecture. If you just refer to the book, you may be
inclined to answer a since the book says to do inspection before testing, but in the lecture
I pointed out that in test-driven development you run automated tests and these should
always be run as soon as any change is made to the code.
14. Control coupling exists in OCSF. Which of the following changes would reduce it?
a) Changing the client and server so they use the Observer pattern
b) Changing from a client-server to a peer-to-peer architecture
c) Passing commands to the server as method names that are executed directly on the
server, rather than interpreting a command string in handleMessageFromClient
d) Inserting a broker between the client and the server to send different commands to
different servers
e) None of the above
Answer c. You would not want to do this, since it would result in a security vulnerability
(anybody could execute arbitrary methods in your server) but it would reduce control
coupling.
16. Which form of coupling can be effectively reduced by the delegation pattern?
a) External coupling
b) Data coupling
c) Stamp coupling
d) Routine call coupling
e) Functional coupling
Answer d.
Answer c.