Sequence Diagram - Computer Science - Quiz, Exercises of Computer Science

Main points of this past exam are: Sequence Diagram, Superclass Parts, Instance Variables, Subclass Parts, Public Members, Protected Members, Sequence Diagram

Typology: Exercises

2012/2013

Uploaded on 04/07/2013

sethuraman_h34rt
sethuraman_h34rt 🇮🇳

4.3

(8)

153 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Signature _____________________ CSE 70 Name ________________________
Quiz 2
cs70f ____ Fall 2009 Student ID ____________________
This quiz is to be taken by yourself with closed books, closed notes, no electronic devices.
1) In a MVC architecture (Circle all that are true/correct)
A. The user only manipulates Controller(s)
B. The Model may change independent of the Controller(s) changing the Model
C. When the Model is changed, it notifies both the Controller(s) and View(s) that it has changed
D. View(s) and Controller(s) can be hard to separate (ex: a text box is both a View & a Controller)
E. View(s) and Controller(s) are highly dependent on the Model, but not the other way around
2) Objects maintain their own state via (Circle correct letter)
A. Their superclass parts
B. Their static variables
C. Their instance variables
D. Their local variables
E. Their subclass parts
3) Interface defines __________ messages can be sent to an object while implementation defines __________
messages are coded. (Use the words "how" and/or "what" to answer this question.)
4) The 3 main tenets/features of OOP are
__________________________ __________________________ __________________________
5) Inheritance with a concrete superclass is an example of pure inheritance of ________________________.
Inheritance with an interface is an example of pure inheritance of ________________________.
Inheritance with a(n) ________________ superclass is an example of a mixture of the two types of inheritance.
6) ______________________ gives us an is-a relationship while _______________________ gives us a has-a
relationship.
7) To realize the real power of dynamic binding
A. A superclass reference must be a concrete class
B. A superclass reference must be an interface
C. A superclass reference must be an abstract class
D. A superclass reference can be any type: interface, abstract class, or concrete class
8) In UML notation for access,
public members are notated with a _______
protected members are notated with a _______
private members are notated with a _______
9) In UML, how is an interface type identified? (Not talking about inheritance here.)
pf2

Partial preview of the text

Download Sequence Diagram - Computer Science - Quiz and more Exercises Computer Science in PDF only on Docsity!

Signature _____________________ CSE 70 Name ________________________

Quiz 2

cs70f ____ Fall 2009 Student ID ____________________

This quiz is to be taken by yourself with closed books, closed notes, no electronic devices.

  1. In a MVC architecture (Circle all that are true/correct) A. The user only manipulates Controller(s) B. The Model may change independent of the Controller(s) changing the Model C. When the Model is changed, it notifies both the Controller(s) and View(s) that it has changed D. View(s) and Controller(s) can be hard to separate (ex: a text box is both a View & a Controller) E. View(s) and Controller(s) are highly dependent on the Model, but not the other way around

  2. Objects maintain their own state via (Circle correct letter) A. Their superclass parts B. Their static variables C. Their instance variables D. Their local variables E. Their subclass parts

  3. Interface defines __________ messages can be sent to an object while implementation defines __________ messages are coded. (Use the words "how" and/or "what" to answer this question.)

  4. The 3 main tenets/features of OOP are


  1. Inheritance with a concrete superclass is an example of pure inheritance of ________________________.

Inheritance with an interface is an example of pure inheritance of ________________________.

Inheritance with a(n) ________________ superclass is an example of a mixture of the two types of inheritance.

  1. ______________________ gives us an is-a relationship while _______________________ gives us a has-a relationship.

  2. To realize the real power of dynamic binding A. A superclass reference must be a concrete class B. A superclass reference must be an interface C. A superclass reference must be an abstract class D. A superclass reference can be any type: interface, abstract class, or concrete class

  3. In UML notation for access, public members are notated with a _______

protected members are notated with a _______

private members are notated with a _______

  1. In UML, how is an interface type identified? (Not talking about inheritance here.)
  1. You've just finished working on a new feature that required new files to be added to the project. What is/are the proper svn command(s) to make your changes available through the repository?

  2. In the reading on UML that I handed out, there is an error in Fig. 2-8 Sequence diagram. Describe which message sequence number is in error and how you would fix it. Describe in words; do not draw on the diagram.