Spring 2025 AP CSP Unit 3 Basics Exam

Spring 2025 AP CSP Unit 3 Basics Exam

Assessment

Flashcard

others

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

22 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is the output of the following pseudocode?
a <- b + c % d - 4 * 2
Display(a)
When B = 6, C=8 and d=4

Back

-2

2.

FLASHCARD QUESTION

Front

Which pseudocode procedure will ALWAYS properly draw an octagon?

Back

Media Image

3.

FLASHCARD QUESTION

Front

Which of the following is the correct description of what this flowchart represents? Options: When the alarm rings, get up if it is 6:00 or later and go back to sleep if it is earlier than 6:00, When the alarm rings, get up if it is 6:00 or earlier and go back to sleep if it is later than 6:00, When the alarm rings, always get up, When the alarm rings, go back to sleep if it is later than 6:00

Back

When the alarm rings, get up if it is 6:00 or later and go back to sleep if it is earlier than 6:00

4.

FLASHCARD QUESTION

Front

Which of the following best describes an expression? Options: A loop that executes a set number of times, A combination of operators and values that evaluates to a single value, A command that stores a value in a variable, A function that returns True or False

Back

A combination of operators and values that evaluates to a single value

5.

FLASHCARD QUESTION

Front

What is the purpose of a compiler?

Back

To translate a programming language into machine language.

6.

FLASHCARD QUESTION

Front

Which of the following describes procedural abstraction? Options: A way to write code using natural language, A technique that allows code reuse and reduces redundancy, A set of statements that are executed sequentially, A logical operation used in Boolean expressions

Back

A technique that allows code reuse and reduces redundancy

7.

FLASHCARD QUESTION

Front

What is the difference between iteration and selection in programming?

Back

Iteration repeats a set of instructions, while selection chooses between two paths based on a condition.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?