AP CSP Midterm Exam Review

Quiz
•
Computers
•
9th - 12th Grade
•
Medium

Jessica Gilroy
Used 4+ times
FREE Resource
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What terminates this iteration?
When i equals j.
When userMax equals i.
When userMax is less than 0.
When userMax is greater than 10.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When does the Boolean in the if-else statement evaluate to false?
When userMax is greater than 0.
When userMax is less than 0.
When userMax is equal to 0.
When userMax is less than 1.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the point of calling the userInputSeq procedure inside the if-statement’s block of code?
To reset the userMax variable.
To display the sum of the numbers.
To prompt the user to enter a valid number.
To terminate the loop.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What role does the variable `n` play in the procedure? How would the code be different if there wasn’t a parameter?
`n` determines the number of times the message is displayed; without `n`, the message would display once.
`n` determines the message content; without `n`, the message would be empty.
`n` determines the display order; without `n`, the order would be reversed.
`n` determines the display speed; without `n`, the message would display slowly.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is NOT true?
2 MOD 4 = 0
15 MOD 2 = 1
17 MOD 3 = 2
25 MOD 4 = 1
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the procedure call `getAnyNumber(5, 20)`, what is the maximum possible value for `getNum`?
5
15
19
20
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain the functionality check of the if-else control structure in version B of getAnyNumber:
It only generates a random number when num1 and num2 are equal
It only generates a random number when num1 and num2 are not equal
Create a free account and access millions of resources
Similar Resources on Wayground
45 questions
Revision Attainment 4 (Grade 9M1)

Quiz
•
9th Grade - University
45 questions
GCSE Python Legends

Quiz
•
1st - 12th Grade
50 questions
Soal Informatika Kelas X Bab 7 Algoritma dan Pemrograman

Quiz
•
10th Grade
50 questions
11 PAT MYOB

Quiz
•
11th Grade
50 questions
AQA 8525 GCSE CS 3.2.10 Subroutines & 3.2.11 Robust & Secure

Quiz
•
10th - 11th Grade
50 questions
SOAL INFORMATIKA 10.1 PTS1 25-26

Quiz
•
10th Grade
53 questions
AP CSP Vocab Part2

Quiz
•
11th Grade
45 questions
Psuedocode iterations

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

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

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade