Change Contents of the Bubble
View this PageEdit this PageUploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

Pre-Quiz4 - Fall 2006

Q1. Who's your grading TA? (Please circle your answer)

Dawn 	 Joel 	  Mark 	   Brian    Chung-Yen 	  Richard


Q2 Short Answer Questions


A. BorderLayout and FlowLayout are two of what kind of thing? How do they differ?


B. What's an Event and what do they have to do with ActionListeners?


C. What's the difference between discrete event and continuous simulations? When would you use each?


D. Queue and Stack are two of what kind of thing? How do they differ?


Q3 Explain the UML Diagram


Consider the below diagram. (Note: REMOVEDes with no arrows are "association" links.)

External Image
Answer the below questions:

A. List all of the methods that a Student instance understands.

B. List all the instance variables of a Student.

C. How many Sections of a Course can exist?

D. How many Courses are associated with a given Section?

E. By what name do instances of the class Course know their Section instances?


Comments, questions, and answers!


Q1—
Q2.
A. Layout Managers.
They differ in organization. Border has big space for "CENTER" and n,e,w,s spots while flow organizes left to right using all the extra space.
B. Event is an object representing user actions(mouse pressing,etc.)
Action Listeners are interfaces that define the functionality of the event. (handles events)
C. Discrete is where only important, discrete steps are simulated(100yrs or so)
Continuous each moment in time is simulated- every moment counts
D. Both are Lists. Queue FIFO while Stacks are the opposite LIFO



Q3
A. Knows all the methods of person and student(setName(); setAddress(); getName(); getAddress();setID(); getID();)
B. StudentID(), name(), address()
C. 0-infinity
D. 1
E. sections (thats whatever the little print outside the box says??? right?)


Q2 part D: both are data structures.



Link to this Page