Exam Questions and CORRECT Answers
Java compiler - CORRECT ANSWER- ✔✔bytecode that translates source code
Java interpreter - CORRECT ANSWER- ✔✔takes Java bytecode and converts into machine
language and executes it
Algorithm - CORRECT ANSWER- ✔✔a step-by-step process for solving a problem
Pseudocode - CORRECT ANSWER- ✔✔detailed description on how to solve a problem
program - CORRECT ANSWER- ✔✔algorithm expressed in programming language
Steps in Problem Solving - CORRECT ANSWER- ✔✔1. understand problem
2. design solution (algorithm)
3. implement solution
4. test program & fix bugs
classes - CORRECT ANSWER- ✔✔collections of actions
methods - CORRECT ANSWER- ✔✔actions that an object can perform
statements - CORRECT ANSWER- ✔✔instructions you write when developing a computer
program
compiler time errors - CORRECT ANSWER- ✔✔syntax error, system will tell you the
problem
run time errors - CORRECT ANSWER- ✔✔Errors that occur when the program is being
executed.
, logic errors - CORRECT 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 - CORRECT ANSWER- ✔✔words programmer uses in program to name variables,
classes, methods
Rules when naming an identifier - CORRECT ANSWER- ✔✔letters, digits, underscore,
dollar sign
CANNOT: begin with a digit, be reserved word, not too long
what are the 3 primitive types - CORRECT ANSWER- ✔✔numeric, characters, boolean
numeric type - CORRECT ANSWER- ✔✔all integers; int, byte, int, long
floating point numbers; float, double
character type - CORRECT ANSWER- ✔✔char ('a')
boolean values - CORRECT ANSWER- ✔✔boolean (T/F)
variable - CORRECT ANSWER- ✔✔giving name to a location (ex. int total)
constant - CORRECT ANSWER- ✔✔holds one variable (all capital)
output - CORRECT ANSWER- ✔✔System.out.println(" ");
console output - CORRECT ANSWER- ✔✔import java.util.Scanner;
Scanner myKeyboard = new Scanner(System.in);
close() method - CORRECT ANSWER- ✔✔myKeyboard.close();