
AP CSP Review Session 2

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Lewis Boble
Used 1+ times
FREE Resource
6 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
3 mins • 1 pt
A homework assignment consists of 10 questions. The assignment is graded as follows.
9-10 correct --> check plus
7-8 correct --> check
Under 7 correct --> check minus
Let numCorrect represent the number of correct answers for a particular student. The following code segment is intended to display the appropriate grade based on numCorrect. The code segment does not work as intended in all cases.
For which of the following values of numCorrect does the code segment NOT display the intended grade? Select two answers.
9
8
7
6
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
In the following procedure, the parameter numList is a list of numbers and the parameters j and k are integers.
Which of the following is the most appropriate documentation to appear with the swapListElements procedure?
Returns a copy of numList with the elements at indices j and k interchanged.
The value of j must be between 0 and the value of k, inclusive.
Returns a copy of numList with the elements at indices j and k interchanged.
The values of j and k must both be between 1 and LENGTH(numList), inclusive.
Interchanges the values of the parameters j and k.
The value of j must be between 0 and the value of k, inclusive.
Interchanges the values of the parameters j and k.
The values of j and k must both be between 1 and LENGTH(numList), inclusive.
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
The following procedure is intended to return true if the list of numbers myList contains only positive numbers and is intended to return false otherwise. The procedure does not work as intended.
For which of the following contents of myList does the procedure NOT return the intended result?
[-3, -2, -1]
[-2, -1, 0]
[-1, 0, 1]
[1, 2, 3]
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
In the following code segment, score and penalty are initially positive integers. The code segment is intended to reduce the value of score by penalty. However, if doing so would cause score to be negative, score should be assigned the value 0.
For example, if score is 20 and penalty is 5, the code segment should set score to 15. If score is 20 and penalty is 30, score should be set to 0.
The code segment does not work as intended.
Which of the following changes can be made so that the code segment works as intended?
Changing line 1 to IF(score < 0)
Changing line 1 to IF(score + penalty < 0)
Changing line 7 to score <-- score + penalty
Interchanging lines 3 and 7
5.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
In the following procedure, the parameter max is a positive integer.
Which of the following is the most appropriate documentation to appear with the printNums procedure?
Prints all positive even integers that are less than or equal to max.
Prints all positive odd integers that are less than or equal to max.
Prints all positive even integers that are greater than max.
Prints all positive odd integers that are greater than max.
6.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
In the following procedure, the parameters x and y are integers.
Which of the following is the most appropriate documentation to appear with the calculate procedure?
Displays the value of x + (y / x).
The value of the parameter x must not be 0.
Displays the value of x + (y / x).
The value of the parameter y must not be 0.
Displays the value of (x + y) / x.
The value of the parameter x must not be 0.
Displays the value of (x + y) / x.
The sum of the parameters x and y must not be 0.
Similar Resources on Wayground
10 questions
Python - Lists and Elements

Quiz
•
9th - 12th Grade
10 questions
Storyboards - R081 - Creative iMedia

Quiz
•
8th - 10th Grade
10 questions
Lớp 10: Câu hỏi TN củng cố kiến thức

Quiz
•
10th Grade
8 questions
T3 Y7 Grasshopper App

Quiz
•
7th - 9th Grade
10 questions
Estructuras Selectivas C++

Quiz
•
7th Grade - Professio...
10 questions
Preetest Pemrograman Bahasa C

Quiz
•
11th Grade
9 questions
Python Programming Quiz

Quiz
•
10th Grade
8 questions
Algorithms / Methods

Quiz
•
9th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade