CSE 8B Quizzes and Exams Reviews

No calculators or electronic devices allowed in Quizzes and Exams

Quiz 1 worth 2% of your entire grade.

Review all Class Notes, Reading Quizzes, Programming Assignments, and chapter Check Points in Chapters 1 - 7 in the textbook with your study group.
No test taking aids of any kind.
Previous Quiz1s (PDF) Quiz 1-wi15

Including, but not restricted to, some key topics:

Valid identifiers, naming conventions, default initial values (local vars vs. instance and static vars, scope and visibility, compile time vs. run time errors, named constants (final), primitive data types (sizes and ranges), operator precedence/operator associativity/order of evaluation of operands, numeric literals, pre- and post-increment/decrement, mixed-mode arithmetic, widening and narrowing/casting, integer division and modulo arithmetic, integer overflow, string concatenation.

Relational operators, conditional statements (if, if-else, switch, ?:), {} braces/dangling else, logical operators, short-circuiting, DeMorgan's law, characters, Strings, Strings as objects, object types vs. primitive types (memory model), == vs. .equals(), loops (for, while, do-while, foreach), break and continue.

Methods, method signature, return type, formal parameters, actual arguments, pass-by-value/return-by-value, false swap, overloading, scope of local variables and formal parameters, arrays, arrays as objects, passing arrays and Strings to methods, returning arrays and Strings from methods.

Quiz 2 worth 2% of your entire grade.

Review all Class Notes, Reading Quizzes, Programming Assignments, and chapter Check Points in Chapters in the textbook covered since last quiz with your study group.
No test taking aids of any kind.
Previous Quiz2s (PDF) Quiz 2-wi15

Including, but not restricted to, some key topics:

Initial (default) values for instance vars and static (class-wide) vars of different types - boolean, int, double, ref type Initial (default) values for local vars

Identify a constructor vs. a method - purpose of a constructor

Exception stack traces

Strings, chars, arrays of chars, class Character and class Arrays common methods discussed

Methods/constructors with primitive types and reference types (especially arrays) as formal parameters

Memory models / Stack frames

PA2 - Working with ArrayLists and class WordPair

import statements

Scanners, hasNextXXX(), nextXXX(), InputMismatchException

class File, throws clause, class PrintWriter

Class definition (identifying parts of a class definition) and scope/visibility of vars/params.

Scope of

int i;
for ( i = 0; ... )

vs.

for ( int i = 0; ... )

this reference

Nim example

Quiz 3 worth 2% of your entire grade.

Review all Class Notes, Reading Quizzes, Programming Assignments, and chapter Check Points in Chapters covered in the textbook since last quiz with your study group.
No test taking aids of any kind.
Previous Quiz3s (PDF) Quiz 3-wi15

Including, but not restricted to, some key topics:

[row][col] arrays of arrays access

Inheritance and Inheritance Hierarchies
extends keyword (inheritance of implementation)
base/superclass vs. derived/subclass
is-a vs. has-a relationships (Inheritance vs. Composition)
What is not inherited into a subclass
What is the root type of all Java types
Member access modifiers and their meaning
By default, how should almost all instance variables be defined

Constructors
Default constructor if no constructors are defined in a class
this() and super()
Default first statement in a constructor if not a this() or super()
Order of constructor executions to initialize objects from the inside-out
this.member and super.member (class member can be a method or variable)

Polymorphism (Dynamic method binding)
Type of the reference vs. the type of the actual object being referenced at run time
Person - Student example
Snow - Rain - Sleet - Fog example
Casting reference types
Overloading vs. Overriding vs. Inheriting Methods
instanceof operator
Preventing overriding and extending
static vs. dynamic (compile time vs. run time)

Midterm worth 18% of your entire grade.

Review all Quizzes, Class Notes, Reading Quizzes, Programming Assignments, and chapter Check Points in Chapters covered in the textbook with your study group.
You are allowed to bring in a single 8.5x11 inch sheet of paper hand written by you on a single side only.
Bring ID.


Previous Midterms (PDF) Midterm-wi15

Topics: All material for Quizzes 1, 2, 3 (above) plus
Simple recursion

Quiz 4 worth 2% of your entire grade.

Review all Class Notes, Reading Quizzes, Programming Assignments, and chapter Check Points in Chapters covered in the textbook since the midterm with your study group.
No test taking aids of any kind.
Previous Quiz4s (PDF) Quiz 4-wi15

Including, but not restricted to, some key topics:

Simple recursion and reverseRecurse programming assignment
Linear search vs. Binary search and mid point calculation
Abstract Classes and the Shapes drawing programming assignment
Interfaces and the Comparable interface
Overriding equals() and performing a deep equality check vs. shallow check
Constructors and copy constructor - deep vs. shallow copy
Basic GUI with Java FX

Quiz 5 worth 2% of your entire grade.

Review all Class Notes, Reading Quizzes, Programming Assignments, and chapter Check Points in Chapters covered in the textbook since last quiz with your study group.
No test taking aids of any kind.
Previous Quiz5s (PDF) Quiz 5-wi15

Including, but not restricted to, some key topics:
Simple JavaFX GUI including Stage/Scene/Pane/Node relationships, basic GUI components (Label, Button, TextField, TextArea) and basic GUI shapes (Rectangle, Circle), creating a JavaFX Circle with a specified radius and center point, adding a GUI shape (ie. Circle) to a Pane, (0,0) coordinate location, general idea of the various layout manager panes, how to make a GUI object stay proportional in size and location when window resizes, what superclass to extend to create a JavaFX program, what method should be called from main() to start a JavaFX program, what method should you override that is the main entry point for the JavaFX application.

Basic JavaFX Event Handling including what needs to be done to register and handle (for example, Button click) events, how do you disable a GUI component/control (ie. Button), advantages of implementing an event handler as a member inner class vs. a separate class, how can the event handler get information about the object that fired the event this event handler is handling

PA7 - How is the objectdraw's DrawOval different than JavaFX's Circle

Basic Parallelism and Threading including why the world is going multi-core vs. making faster single-core chips, why use multiple threads in a program, how to make an object a runnable/thread object, how to start (fork) a thread, how to gather/wait (join) for running threads to complete, what method do you override that is called when a thread is started, when using join() or sleep() what exception can be thrown and must be either caught or declared in the throws clause, how to divide up embarrassingly parallel problems to execute in parallel, potential problems when running multiple threads in parallel (issues with sharing data), synchronization issues, PA9 threaded turtles

Java Generics - how to use and how to write, why use generics, ...

Java Exceptions - how to use, how to catch, how to handle, how to throw, checked vs. unchecked exceptions, order to list multiple catch blocks, finally, ...

Difference between returning null vs. "" for a method returning a String and when to use each

Final worth 30% of your entire grade.

Review all Class Notes, Reading Quizzes, Programming Assignments, and chapter Check Points in Chapters covered over the entire quarter in the textbook with your study group.
You are allowed to bring in a single 8.5x11 inch sheet of paper hand written by you on both sides of the paper.
Bring ID.