AP CSP Midterm Exam Review

AP CSP Midterm Exam Review

9th - 12th Grade

50 Qs

quiz-placeholder

Similar activities

PAS_Informatika_Kelas X

PAS_Informatika_Kelas X

10th Grade

50 Qs

St Michael's - Year 9 - Networks

St Michael's - Year 9 - Networks

9th Grade

48 Qs

Ujian MID Semester Informatika

Ujian MID Semester Informatika

10th Grade

50 Qs

CSS11_4TH_QTR_EXAM

CSS11_4TH_QTR_EXAM

11th Grade

50 Qs

ULANGAN SUMATIF BAB I INFORMATIKA

ULANGAN SUMATIF BAB I INFORMATIKA

10th Grade

50 Qs

ÔN TẬP KIỂM TRA HK 1 ĐỊA LÍ 10

ÔN TẬP KIỂM TRA HK 1 ĐỊA LÍ 10

10th Grade

52 Qs

PTS 1 Informatika

PTS 1 Informatika

12th Grade - University

50 Qs

L3 Digital Technology (entry test)

L3 Digital Technology (entry test)

11th - 12th Grade

45 Qs

AP CSP Midterm Exam Review

AP CSP Midterm Exam Review

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Jessica Gilroy

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

Media Image

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

Media Image

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

Media Image

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

Media Image

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

Media Image

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

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?

Discover more resources for Computers