
AP Computer Science Midterm Review
Authored by Bill Butterfield
Computers
10th - 12th Grade
Used 57+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
26 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following pairs of declarations will cause an error message?
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be produced by the following statement?
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The following code fragment outputs "13 / 5 = 2.0", however the programmer wanted it to output "13 / 5 = 2.6". Which of the following will NOT correct the error?
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Expressions follow order of operations rules. What value will result hold after this statement is executed?
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Suppose that addition and subtraction had higher precedence than multiplication and division. What would the following expression evaluate as?
(hint: Use parentheses to elevate the rank of addition and subtraction operations)
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Assume aNum is a variable of type double that is positive. A program contains the boolean expression (Math.pow( aNum, 0.5 ) == Math.sqrt ( aNum )). Even though aNum1/2 is mathematically equivalent to √aNum the above expression returns the value false in a student's program. Which of the following is the most likely reason?
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
If a is of type int and has a value of 0 when the segment is executed, what will happen?
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
25 questions
CPA Inkscape Quiz 01
Quiz
•
7th - 12th Grade
27 questions
CDI - Electronic Components & Signals
Quiz
•
10th - 12th Grade
21 questions
Dispositivos intermedios
Quiz
•
11th Grade
21 questions
Database Quiz 4 SQL
Quiz
•
12th Grade
21 questions
A2 DT Networks 2
Quiz
•
12th Grade
21 questions
space
Quiz
•
9th - 12th Grade
22 questions
1.02 Setting a PC System Vocabulary : Zack DeBenedictis
Quiz
•
9th - 12th Grade
22 questions
Bảo mật thông tin trong hệ CSDL
Quiz
•
11th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
14 questions
[AP CSP] JavaScript Programming Quiz
Quiz
•
9th - 12th Grade
10 questions
Understanding Computers and Computer Engineering
Interactive video
•
7th - 12th Grade
37 questions
Python - Tuples, Lists, and List Methods
Quiz
•
9th - 12th Grade