What is provided to students during the AP Computer Science Principles exam to help them understand the code?

Code Segments and Logic Problems

Interactive Video
•
Computers, Education
•
10th - 12th Grade
•
Medium

Emma Peterson
Used 6+ times
FREE Resource
Read more
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A programming language guide
An exam reference sheet
A calculator
A textbook
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following code segments correctly assigns a letter grade based on a numeric score?
if score > 90 then grade = 'A' else grade = 'B'
if score > 90 then grade = 'A' else if score >= 80 then grade = 'B' else grade = 'C'
if score >= 80 then grade = 'B' else if score > 90 then grade = 'A' else grade = 'C'
if score < 80 then grade = 'C' else if score <= 90 then grade = 'B' else grade = 'A'
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be displayed if the parameter x is negative in the given procedure?
Nothing
False
Error
True
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How does the code segment determine if a list contains duplicate values?
By comparing each element to the element that immediately follows
By comparing each element to the element that immediately precedes
By comparing each element to all subsequent elements in the list
By comparing each element to all other elements in the list
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For which values of num correct does the code segment not display the intended grade?
8 and 6
7 and 6
9 and 7
9 and 8
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What change should be made to the code segment to ensure it reduces the score by penalty correctly?
Change line 1 to if score < 0
Change line 1 to if score + penalty > 0
Interchange lines 3 and 7
Change line 1 to if score + penalty < 0
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the final value of r after executing the given code segment?
20
30
40
10
Create a free account and access millions of resources
Similar Resources on Quizizz
7 questions
Mr. Anderson's Exam Preparation Strategies

Interactive video
•
10th - 12th Grade
11 questions
DBQ Writing Techniques and Strategies

Interactive video
•
10th - 12th Grade
11 questions
Exam Strategies and Ethical Considerations

Interactive video
•
10th - 12th Grade
11 questions
Synthesis Essay Writing Strategies

Interactive video
•
10th - 12th Grade
11 questions
Understanding the CED for AP Exams

Interactive video
•
10th - 12th Grade
11 questions
Experimental Design and Probability Concepts

Interactive video
•
10th - 12th Grade
6 questions
Understanding AP Exam Scoring

Interactive video
•
9th - 12th Grade
11 questions
AP History Exam Preparation Quiz

Interactive video
•
10th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University