cs2340 Exam 1 Spring 2014
cs2340 Exam 1 Spring 2014
Name: ____________________________________________
GT Login Id:________________________________________
I certify that I have complied with the Georgia Institute of Technology honor code during this
examination. I have neither received nor given help during the exam. NO CELL PHONES, iPODS or
other devices may be used during the exam. Please turn off all electronic devices that will make a
noise during the exam.
Signed:_______________________________________________________________
MULTIPLE CHOICE
Choose the one best answer.
1. Many projects using Agile methods use time-boxed development for project management. Time-
boxed development is best described as:
a. A list of all the tasks that are scheduled for this sprint.
b. The name of the person responsible for each task.
c. The hours left to work on each task
d. The hours actually completed for each task.
e. All the above are true
a. They allow the team to perform all tasks related to build and deployment with only one command.
b. They minimize the configuration requirements for new team members.
c. They allow automated runs of tests and deployment
d. All the above are true
e. None of the above are true
8. Android is:
a. A brand of phone
b. An operating system
c. A programming SDK for phones
d. An activity
9. The best way to design any software application is through the use of Object-Oriented techniques.
a. True
b. False
10. Which of the following was not a key player in the development of early OO theory?
a. Alan Kay
b. Simula
c. Sketchpad
d. Java Language
a. It knows things
b. It does things
c. It collaborates with other objects
d. It makes decisions
e. All the above are characteristics
16. You brainstorm a list of classes for an inventory management system. You are ready to start
filtering them. Which of the following looks like a good candidate list for the domain model?
17. You are preparing a domain model for the GT parking system. According to GT regulations, a
student may own no car, or up to 5 cars. Which of the following is correct?
a.
Student 1 0 .. 5 Car
owns
b.
Student 0 .. 5 1 Car
owns
c.
Student 1 0,5 Car
owns
d.
Student 1 * Car
owns
18. Which of the following is the best representation for student in the domain model?
a.
Student
name
addr
account
b.
Student
Account
name
balance
addr
id
c.
Student
Account
name
balance
addr
id
19. A software conceptual or logical architecture is most often presented in UML as:
a. A package diagram
b. An abstract class diagram
c. A deployment diagram
d. A system sequence diagram
a. They show where extra care must be taken in validating and protecting data
b. They show vulnerabilities to hackers
c. They show where defensive programming techniques might NOT be required.
d. Both a and c are correct
21. You have been given the job of implementing a class in a UML diagram. You look at the attribute
and it is: # id : int. Your java code should look like:
22. The correct java code for + process ( str : msg) : boolean is:
a.
Student Car
b.
Student X Car
c.
Student X Car
d. Student Car
24. In your UML model, you want to show that MAX_LIVES is a constant integer class variable with
a value of 10. Which of the following UML descriptions is correct?
a. + MAX_LIVES : int = 10 {static}
b. + MAX_LIVES : int = 10 {readonly}
c. + MAX_LIVES : int = 10 {static, final}
d. + MAX_LIVES : int = 10 {readonly}
25. In strict Model-View-Presenter style which of the following statements are true?
a. The Model holds all the application data, and is isolated from the rest of the application through a
general interface.
b. The View holds all the user interface code and is isolated from the rest of the application through a
general interface.
c. The Presenter holds most of the buisiness interaction logic and event handling code. It uses the
view interface and the model interface to do its job.
d. All the above statements are true
e. None of the above statements are true
a. Layered
b. Blackboard
c. Pipe and Filter
d. Command
The next questions deal with this System Sequence Diagram (SSD).
: System
Customer
enterName(name)
status
27. In the SSD above, the arrowed line with the label enterName represents:
28. In the SSD above, the arrowed line with the label status represents: