
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
HTML
Quiz
•
11th Grade
29 questions
TMK TAHUN 5
Quiz
•
KG - University
21 questions
AP CSA Unit 2 Practise MCQ
Quiz
•
11th Grade
21 questions
Experience AI Lessons - Summative Assessment
Quiz
•
8th Grade - University
23 questions
Data Rep Quiz
Quiz
•
10th Grade
22 questions
Analysis and design of algorithms
Quiz
•
12th Grade
22 questions
YANEQ
Quiz
•
10th Grade
22 questions
quis IoT kel 7 benar dapet silverqueen
Quiz
•
10th Grade
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade