11/3/2024 10:54 PM
COMP 248 – Final Exam Study Guide.
Java compiler - answer✔bytecode that translates source code
Java interpreter - answer✔takes Java bytecode and converts into machine language and executes
it
Algorithm - answer✔a step-by-step process for solving a problem
Pseudocode - answer✔detailed description on how to solve a problem
program - answer✔algorithm expressed in programming language
Steps in Problem Solving - answer✔1. understand problem
2. design solution (algorithm)
3. implement solution
4. test program & fix bugs
classes - answer✔collections of actions
methods - answer✔actions that an object can perform
statements - answer✔instructions you write when developing a computer program
, ©SIRJOEL EXAM SOLUTIONS
11/3/2024 10:54 PM
compiler time errors - answer✔syntax error, system will tell you the problem
run time errors - answer✔Errors that occur when the program is being executed.
logic errors - answer✔semantics, bug in the program or mistake in algorithm that program may
run but doesn't execute the way you wanted it to
identifier - answer✔words programmer uses in program to name variables, classes, methods
Rules when naming an identifier - answer✔letters, digits, underscore, dollar sign
CANNOT: begin with a digit, be reserved word, not too long
what are the 3 primitive types - answer✔numeric, characters, boolean
numeric type - answer✔all integers; int, byte, int, long
floating point numbers; float, double
character type - answer✔char ('a')
boolean values - answer✔boolean (T/F)
variable - answer✔giving name to a location (ex. int total)
constant - answer✔holds one variable (all capital)
output - answer✔System.out.println(" ");