logo

APSU Notes


Final Exam Review

What Kinds of Questions Are on the Exam?

  • Matching – match terms with definitions.
  • True/False
  • Multiple choice
  • Reading Code – given a fragment of code, what does it output?
  • Writing Code – given a specification, write a program or a part of a program that implements it.

What Does the Test Cover?

  • Chapter 1 – Introduction to Computers and Java
  • Chapter 2 – Basic Computation
    • 2.1 – Variables and Expressions
    • 2.2 – The Class String
    • 2.3 – Keyboard and Screen I/O
    • 2.4 – Documentation and Style
  • Chapter 3 – Flow of Control: Branching
    • 3.1 – The if-else Statement
    • 3.2 – The Type boolean
    • 3.3 – The switch Statement
  • Chapter 4 – Flow of Control: Loops
    • 4.1 – Java Loop Statements
    • 4.2 – Programming with Loops
  • Chapter 5 – Introduction to Computers and Java
    • 5.1 – Class and Method Definitions
    • 5.2 – Information Hiding and Encapsulation
    • 5.3 – Objects and References
  • Chapter 6 – Basic Computation
    • 6.1 – Constructors
    • 6.2 – Static Variables and Static Methods
    • 6.3 – Writing Methods
    • 6.4 – Overloading
  • Chapter 7 – Arrays
    • 7.1 – Array Basics
    • 7.2 – Arrays in Classes and Methods
  • Chapter 9 – Exceptions
    • 9.1 – Basic Exception Handling
  • Chapter 10 – Files
    • 10.1 – An Overview of Streams and File I/O
    • 10.2 – Text-File I/O

What Should I Study?

  • Textbook chapter summaries
  • PowerPoint slides
  • Quizzes
  • Assignments
  • Notes you have taken for the course

Terms – Chapter 1 – Hardware and OS

  • CPU – central processing unit
  • Memory
  • RAM – random access memory
  • Address
  • Bit
  • Byte
  • File
  • OS – operating system

Terms – Chapter 1 – Programming Languages

  • Compiler
  • Interpreter
  • Source Code
  • Bytecode
  • Statement
  • Variable
  • Expression
  • Syntax

Terms – Chapter 1 – Programming Basics

  • OOP – object-oriented programming
  • Class
  • Method
  • Encapsulation
  • Information Hiding
  • Polymorphism
  • Inheritance
  • Algorithm

Terms – Chapter 2

  • Declaration
  • Integer
  • Floating-point number
  • Character
  • Identifier
  • Keyword
  • Assignment Statement
  • Constant
  • String

Terms – Chapters 3

  • Control structure
  • Branching statement
  • Boolean expression
  • Comparison operator
  • Logical operator
  • Nesting
  • Short-circuit evaluation
  • Enumeration

Terms – Chapter 4

  • Loop statement
  • Body
  • Iteration
  • Count-controlled loop
  • Sentinel value
  • Infinite loop
  • Off-by-one error

Terms – Chapter 5

  • Class
  • Object
  • Instance Variable
  • Method
  • Local Variable
  • Parameter
  • Argument
  • Information Hiding
  • Encapsulation

Terms – Chapter 6

  • Constructor
  • Default constructor
  • Static Variable
  • Static Method
  • Boxing
  • Unboxing
  • Decomposition
  • Overloading

Terms – Chapter 7

  • Array
  • Array element
  • Index
  • Base type
  • Partially filled array
  • Selection sort
  • Sequential search
  • Multidimensional array

Terms – Chapters 9-10

  • Exception
  • Stream
  • Input Stream
  • Output Stream
  • Text File
  • Binary File
  • Buffer