The test is 30-40 multiple choices, and it is about
Chapter 1:
- Java’s use of compiler, bytecodes, and JVM
- Types of errors (syntax vs. runtime vs. logic)
- Keywords/reserved words vs. identifiers
- Strings and escape sequences
- Comments
- Arrangement of classes, static methods, and statements
- Procedural decomposition and control flow
Chapter 2:
- primitive types vs. objects
- int, double, char, and boolean types
- expressions, literals, and operators
- type casting
- variables, declaration, and assignment
- string concatenation
- for loops and nested loops
- variable scope and local variables
- class constants
Chapter 3:
- Formal and actual parameters
- return statement
- Math class
- String class, including indexing
- Scanner class, including tokenization and whitespace
Chapter 4:
- if and if/else conditionals
- Boolean expressions and relational operators
- Object equality
- Character class
- String formatting (printf)
- Cumulative loop pattern
Chapter 5:
- while and do/while loops
- Fencepost and sentinel loop patterns
- Lazy evaluation and short-circuiting of && and ||
- Boolean Zen (simplification of Boolean expressions and statements)
- Logical assertions, preconditions and postconditions
- Pseudorandom numbers
Chapter 6:
- Token-based and line-based file input using Scanners
- File output using Printstream
- Checked exceptions and the throws clause
0 comments