CMSC131 FINAL VERIFIED STUDY GUIDE
Algorithm - Answers - A set of unambiguous steps to accomplish a task (Pseudocode or
flowchart)
Steps of Program Development - Answers - 1)Understand the problem
2)Represent algorithm with flowchart/pseudocode
3)Desk check the algorithm
4)Implement the algorithm in a coding language
Java - Answers - Object oriented programing language; originally developed for
controlling programmable devices
How does the Java Virtual Machine work? - Answers - source code -> java compiler ->
object code -> JVM client
Object - Answers - Principle entities that are manipulated by a java program
Class - Answers - A blueprint for an object
Method - Answers - Where all computation takes place. Each has a name, scope, body,
and parameters
Main Method - Answers - Where the execution of the program begins
Statements - Answers - Individual instructions
ex: declarations, assignments, method invocations, control flow
Variables - Answers - Location of memory used to hold a data variable
Declarations - Answers - Specify variable types and names
Assignments - Answers - Assign the variables a value
Control flow - Answers - Determines order of statement execution
Method invocation - Answers - Calling a method
ex: System.out.println();
Expressions/Operators - Answers - Allow manipulation of the variables
Comments - Answers - Used to indicate the purpose/intent of a statement
Line comments - Answers - Used to explain a single line of code. //
Algorithm - Answers - A set of unambiguous steps to accomplish a task (Pseudocode or
flowchart)
Steps of Program Development - Answers - 1)Understand the problem
2)Represent algorithm with flowchart/pseudocode
3)Desk check the algorithm
4)Implement the algorithm in a coding language
Java - Answers - Object oriented programing language; originally developed for
controlling programmable devices
How does the Java Virtual Machine work? - Answers - source code -> java compiler ->
object code -> JVM client
Object - Answers - Principle entities that are manipulated by a java program
Class - Answers - A blueprint for an object
Method - Answers - Where all computation takes place. Each has a name, scope, body,
and parameters
Main Method - Answers - Where the execution of the program begins
Statements - Answers - Individual instructions
ex: declarations, assignments, method invocations, control flow
Variables - Answers - Location of memory used to hold a data variable
Declarations - Answers - Specify variable types and names
Assignments - Answers - Assign the variables a value
Control flow - Answers - Determines order of statement execution
Method invocation - Answers - Calling a method
ex: System.out.println();
Expressions/Operators - Answers - Allow manipulation of the variables
Comments - Answers - Used to indicate the purpose/intent of a statement
Line comments - Answers - Used to explain a single line of code. //