24sp ver.

Note: this is for the Spring 2024 iteration of CSE 121. Looking for a different quarter? Please visit https://courses.cs.washington.edu/courses/cse121/.

These cheatsheets are designed to help you quickly review the key concepts and syntax. You can also print and use them as a study guide for the course!


CSE 121 Final Exam Reference Sheet

This is a reference sheet for the CSE 121 final exam. You will be provided with this reference sheet during the exam.


Java Basics, Printing, and Turtle Graphics

  • Structure of a Java program
  • Printing
  • Comments
  • Turtle Graphics
  • Turtle Methods

Data Types, Expressions, and Operations

  • Escape Sequences
  • Data Types
  • Expressions
  • Arithmetic Operators
  • Relational Operators
  • Logical Operators

Variables, Strings, and Debugging

  • Escape Sequences
  • Variables
  • Variable Naming Rules & Conventions
  • Strings
  • String Indexing
  • String Methods
  • Type Casting

For Loops

  • The For Loop
  • For Loop Control Flow

Nested For Loops, Random, and Constants

  • Nested For Loops
  • Update Statements
  • Random Methods
  • Fenceposting

Methods and Parameters

  • Methods
  • Class Constants
  • Parameters

Math Class and Returns

  • Math Class
  • Returns

Relational/Logical Operators and Conditionals

  • Relational Operators
  • Logical Operators
  • if/else Statements
  • Conditionals

While Loops, User Input, and Scanner

  • While Loops
  • User Input and Scanner
  • Scanner Methods
  • Fenceposting

Arrays

  • Declaring Arrays
  • Array Methods

2D Arrays

  • Declaring 2D Arrays
  • 2D Array Traversal