Java Chapter 1 UPDATED ACTUAL Exam Questions and
CORRECT Answer
Java Effective Design (Looking for Nouns) - Choosing a program's objects is often a matter of
looking for nouns in the problem specification.
Object Design Questions - What role will the object perform in the program?
What data or information will it need?
What actions will it take?
What interface will it present to other objects?
What information will it hide from other objects?
"Designing an Object" - Designing the object's class
Object Type - The class can be considered the object's type
Instance Variables are used to - store the information that an object needs to perform its role
Java Effective Design (Looking for Verbs) - Choosing the behavior of an object is often a matter
of looking for verbs in the problem specification
Invoked - called upon
Java Effective Design (Object Interface) - An object's interface should consist of just those
methods needed to communicate with or to use the object
, Java Effective Design (Information Hiding) - An object should hide most of the details of its
implementation
Private UML Symbol - (-). Usually variables
Public UML Symbol - (+).
Data Questions - What type of data will be used to represent the information needed?
How will each method carry out its task?
Algorithm - A step-by-step description of the solution to a problem
Designing Objects Questions - What specific task will the method perform?
What information will it need to perform its task?
What algorithm will the method use?
What result will the method produce?
Tracing - A step through a program line by line on some sample data
Stepwise Refinement - The right way to code. The program is coded in small stages, and after
each stage the code is compiled and tested
Syntax - The set of rules that determines whether a particular statement is correctly formulated
Semantics - The meaning of a statement
Syntax Error (Java) - An error that breaks one of Java's syntax rules. Such errors will be detected
by the Java compiler
CORRECT Answer
Java Effective Design (Looking for Nouns) - Choosing a program's objects is often a matter of
looking for nouns in the problem specification.
Object Design Questions - What role will the object perform in the program?
What data or information will it need?
What actions will it take?
What interface will it present to other objects?
What information will it hide from other objects?
"Designing an Object" - Designing the object's class
Object Type - The class can be considered the object's type
Instance Variables are used to - store the information that an object needs to perform its role
Java Effective Design (Looking for Verbs) - Choosing the behavior of an object is often a matter
of looking for verbs in the problem specification
Invoked - called upon
Java Effective Design (Object Interface) - An object's interface should consist of just those
methods needed to communicate with or to use the object
, Java Effective Design (Information Hiding) - An object should hide most of the details of its
implementation
Private UML Symbol - (-). Usually variables
Public UML Symbol - (+).
Data Questions - What type of data will be used to represent the information needed?
How will each method carry out its task?
Algorithm - A step-by-step description of the solution to a problem
Designing Objects Questions - What specific task will the method perform?
What information will it need to perform its task?
What algorithm will the method use?
What result will the method produce?
Tracing - A step through a program line by line on some sample data
Stepwise Refinement - The right way to code. The program is coded in small stages, and after
each stage the code is compiled and tested
Syntax - The set of rules that determines whether a particular statement is correctly formulated
Semantics - The meaning of a statement
Syntax Error (Java) - An error that breaks one of Java's syntax rules. Such errors will be detected
by the Java compiler