You are responsible for the following for CS1 Quiz 1
- Liang - Chapters 1, 2
- Introduction to Object-Oriented Programming (OOP)
- Terminology - Be able to define:
- Object
- Class
- Differentiate between object and class
- Identity
- State
- Behavior
- Variables (instance variable vs. class variable)
- Constant
- Method (instance method vs. class method)
- Instance
- Invoking, Invocation
- Benefits of Object-Oriented Programming (Know what these things mean)
- Reuse
- Class Hierarchy (Superclass, subclass)
- How is invoking a method on an object similar to sending a message
among people?
- What do the public and private access levels mean?
- Basic Java
- Terminology
- Syntax
- Semantics
- Identifier (Java rules/our Java Coding Standard for identifiers)
- Unicode
- Literals
- Type Casting
- Assignment
- Instantiation (and the role of "new")
- Java Comments
- // (Single line)
- /* */ (Multiple line)
- /** */ (Javadoc)
- Primitive Types
- What are the primitive types in Java?
- How do they differ from reference types (objects)
with respect to declaration and memory allocation?
- Be able to draw memory diagrams for primitive types
and objects (upon declaration, assignment, instantiation)
- How are literals represented for float's,
long's, etc.?
- Constants
- What is the modifier that means an identifier is a
constant in Java?
- Be able to write java code to declare a constant.
- What does our Java Coding Standard dictate about
identifiers for constants?
- Variables
- How are variables declared in Java?
- What does our Java Coding Standard dictate about
identifiers for variables?
- Why do we need to instantiate reference variables
(objects)?
- How do we instantiate reference variables (objects)
in Java?
- Expressions
- What four things affect how expressions are
evaluated/stored in assignment statements?
- Operator Precedence - know the precedence
among casting, parentheses, arithmetic (* / % + -),
assignment (=)
- Numberic Promotion -
- How are mixed-mode expressions evaluated in Java?
- Why is Java automatically able to
promote a byte value to short,
int, or long, etc.?
- Assignment Conversion - Why is Java
automatically able to promote a byte value to
short, int, or long, etc. for
assignment?
- Casting Conversion - Why is casting necessary to assign
a double value to an int, etc.?
- Be able to evaluate expressions keeping these four
things in mind?
- Assignment
- What must be on the left hand side of an assignment statement?
- Be able to tell whether or not an assignment
statement is legal in java and be able to tell why not, if it
isn't!
- Java Program Structure
- We are writing applications using Java. What does
an application in Java look like?
- What is the syntax of the class declaration in a Java?
- What is the syntax of the main class method
declaration statement in a Java application?
- What is the main class method used for in a
Java application? What does it represent?
- Invoking Methods
- What is the Java syntax for invoking a method?
- What does the dot (.) mean?
- Where can you find out what information an object's
method needs to do its work in Java, i.e., where can you find
out which arguments you must provide?
Phil White
Sept 20, 2005
http://www.cs.rit.edu/~paw/cs1/quiz1.html