CS111 Test 1 Review Material

Suggestions for Studying

Test style

The test will be 50 minutes long, and will be taken on paper.

Topics

Chapter 1 Chapter 2 Chapter 3
  • Definitions
  • Java development
  • The program javac
  • The program java
  • Compiling
  • Format of a .java file (class, main etc)
  • Line and block comments.
  • Output with print, println
  • Special characters \n, \t, \\, \" (actually in a later chapter)
  • Definitions
  • Scanner input
  • Declaring and initializing variables
  • Assignment (=)
  • int: variables, input, output
  • doubles: variables, input, output
  • Numeric operators
  • Increment operators
  • Assignment operators
  • Type conversions (casting)
  • Identifiers
  • Keywords
  • Reading errors
The test will cover up through section 3.6.
  • Definitions
  • Decisions: if statements
  • Comparison operators
  • Nested if statements
  • Multi-way if statements
  • Boolean type (true or false)

Clif Presser<cpresser@gettysburg.edu>