CS101 Exam #3 Topics
The final exam on Monday 12/10 at 7:00
PM is open book and open notes. In fact, you can bring any book
or other material that you like. However, this doesn't mean that you don't need to study, because having a textbook won't write a program for you, only help you
with syntax or definitions. The best way to study for the test is
to understand your homework questions. The entire test is primarily on Java programming, where
you will be asked to write a program or given a program and asked to describe it or give output.
Program Development and General Concepts
- The process of creating a program: design,
pseudocode, implementation, testing, maintenance
- Interpreted vs. Compiled programming languages
- Why Java is both interpreted and compiled, disadvantages
Java Fundamentals
- Data Types, differences of the primitive data types
- Structure of a program
- Method, variables, class, object, data member, identifier, statement,
parameters
- Printing output, escape characters
- Precedence among mathematical operators
- Integer vs. Float and conversion of types
- Issues when converting (e.g. truncation)
Graphics
- Graphics coordinate system
- How to create colors
- Drawing rectangles, ovals, lines
Conditions, If-Statements, Loops
- Relational operators: !=, ==, <=, >=, <, >
- Boolean operators: &&, ||, !
- Combining boolean and relational operators : e.g.
(x<3) && (y>4) || (!z)
- Precedence among operators
- If-statement
- Loops, be able to convert between the different types of loops
Classes and Methods
- Concept of creating instances of an object
- Format for defining a class including methods and data members
- Role of public vs. private
- How to define a method
- static methods
- Passing parameters to a method
- Primitive data types: copied
- Objects: reference to actual object
- Constructors