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.
Rate this question:
Comment
String
Method
Object
Rate this question:
Logic error
Typo
Syntax error
Run-time error
Rate this question:
Symmetric
Nested
Spaghetti code
Asymmetric
Rate this question:
Documentation
Comments
Pseudoprogram
Algorithm
Rate this question:
Parameter
Interface
Procedure
Overloaded
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:
Parameter
Return
Implicit
Explicit
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:
Interpreter
Linker
Assembler
Compiler
Rate this question:
Rounding
Cast
Case
Overflow
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:
Method
Collection
Package
Import
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:
Parameter variable
Access specifier
Class
Instance variable
Rate this question:
String s = sData(0);
String s = sData[0];
String s = sData.get(0);
String s = sData[1];
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:
-2
-1
0
2
21
Rate this question:
Initializer
Access specifier
Type name
Constructor
Rate this question:
Instanceof
Void
Construct
New
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:
Variable
Method
Reference
Class
Rate this question:
Final
Int
Double
Constant
Rate this question:
For
Off-by-one
Do
While
Rate this question:
Private
Implicit
Public
Explicit
Rate this question:
Set operator
New operator
Insert method
Add method
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:
Body of the class.
Header of a class.
Documentation comments.
Body of a method.
Rate this question:
1, qInfo.size
0, qInfo.size() - 1
0, qInfo.length - 1
1, qInfo.length()
Rate this question:
2.4 12
2.4 6
2.4 5
2.0 12
2.0 5
Rate this question:
Parallel
Uninitialized
Empty
Partially filled
Rate this question:
None of the Above
I only
I and II only
II and III only
I, II, and III
Element
()
Get
{}
Rate this question:
Public parameter
Private parameter
Explicit parameter
Implicit parameter
Rate this question:
Rate this question:
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.
AP Computer Science Midterm Exam
Is your midterm exam for AP Computer Science nearby? Do you want to evaluate your preparation level for this upcoming exam? Try out these quiz questions and answers and test your...
Questions:
20 |
Attempts:
1846 |
Last updated:
Feb 05, 2024
|
AP Computer Science - Chapter 1 Quiz
Just a short quiz on some of the terms from Chapter 1. This chapter introduced some concepts everybody should be very familiar with, so this quiz should be fairly easy.
Questions:
10 |
Attempts:
642 |
Last updated:
Mar 27, 2023
|
AP Computer Science Quiz
A sample quiz to see if the ProProfs web sites is accessible to students at Oaks.
Questions:
5 |
Attempts:
834 |
Last updated:
Mar 21, 2022
|
Wait!
Here's an interesting quiz for you.