Questions to help prepare for the midterm exam in AP Computer Science.
Interpreter
Linker
Assembler
Compiler
Rate this question:
;
)
-
!
Rate this question:
Comment
String
Method
Object
Rate this question:
Logic error
Typo
Syntax error
Run-time error
Rate this question:
Documentation
Comments
Pseudoprogram
Algorithm
Rate this question:
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 %.
Rate this question:
1.80
4
-80
1
Rate this question:
Concatenation
Casting
Case
Adding
Rate this question:
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.
Rate this question:
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.
Rate this question:
Parameter
Interface
Procedure
Overloaded
Rate this question:
Variable
Method
Reference
Class
Rate this question:
Parameter
Return
Implicit
Explicit
Rate this question:
Method
Collection
Package
Import
Rate this question:
Initializer
Access specifier
Type name
Constructor
Rate this question:
Parameter variable
Access specifier
Class
Instance variable
Rate this question:
Body of the class.
Header of a class.
Documentation comments.
Body of a method.
Rate this question:
Public parameter
Private parameter
Explicit parameter
Implicit parameter
Rate this question:
Only classes
Only methods with return values
Only methods with parameters
Every class, every method, every parameter, and every return value
Rate this question:
Private
Implicit
Public
Explicit
Rate this question:
Rate this question:
Rate this question:
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.
Rate this question:
Instanceof
Void
Construct
New
Rate this question:
-2
-1
0
2
21
Rate this question:
2.4 12
2.4 6
2.4 5
2.0 12
2.0 5
Rate this question:
None of the Above
I only
I and II only
II and III only
I, II, and III
Final
Int
Double
Constant
Rate this question:
Rounding
Cast
Case
Overflow
Rate this question:
(int) balance = 13.75;
Int balance = (double) 100;
Double balance = 13.75; int dollars = (int) balance;
Double balance = 13.75; int dollars = balance;
Rate this question:
Element
()
Get
{}
Rate this question:
For
Off-by-one
Do
While
Rate this question:
Parallel
Uninitialized
Empty
Partially filled
Rate this question:
1, qInfo.size
0, qInfo.size() - 1
0, qInfo.length - 1
1, qInfo.length()
Rate this question:
For (int i = 0; i < names.size(); i++)
For (s : names)
For (names : String s)
For (String s : names)
Rate this question:
Set operator
New operator
Insert method
Add method
Rate this question:
Symmetric
Nested
Spaghetti code
Asymmetric
Rate this question:
String s = sData(0);
String s = sData[0];
String s = sData.get(0);
String s = sData[1];
Rate this question:
Quiz Review Timeline (Updated): Mar 22, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.