Questions to help prepare for the midterm exam in AP Computer Science.
A program can only perform one simple task.
A program is a sequence of comments.
A program can decide what task it is to perform.
A program is a sequence of instructions and decisions that the computer carries out.
Interpreter
Linker
Assembler
Compiler
;
)
-
!
Comment
String
Method
Object
Logic error
Typo
Syntax error
Run-time error
Documentation
Comments
Pseudoprogram
Algorithm
Spaces are permitted inside identifiers.
Identifiers are not case sensitive.
Identifiers can be made up of letters, digits, and the underscore (_) character.
Identifiers can use symbols such as ? or %.
1.80
4
-80
1
Concatenation
Casting
Case
Adding
An entity in your program that is manipulated by calling methods.
A sequence of instructions.
Any input to a method.
Any value stored in a variable.
A method is a sequence of instructions that accesses the data of an object.
A method name is unique across the entire program.
A method can be called on any object in any class.
Methods are stored in variables.
Parameter
Interface
Procedure
Overloaded
Variable
Method
Reference
Class
Parameter
Return
Implicit
Explicit
Method
Collection
Package
Import
Initializer
Access specifier
Type name
Constructor
Parameter variable
Access specifier
Class
Instance variable
Body of the class.
Header of a class.
Documentation comments.
Body of a method.
Public parameter
Private parameter
Explicit parameter
Implicit parameter
Only classes
Only methods with return values
Only methods with parameters
Every class, every method, every parameter, and every return value
Private
Implicit
Public
Explicit
Java requires that at most one statement appear on one line.
Java forces the programmer to use a particular layout for readability.
Java is case sensitive.
The first method that is executed in a Java program is called Main.
Instanceof
Void
Construct
New