
AP CSP - Unit Programming (1)
Authored by Quốc Thư
Computers
8th Grade
Used 18+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
22 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
What is a benefit to using pseudocode?
Choose 1 answer:
Pseudocode runs much faster than other programming languages.
Pseudocode is understood by all computers everywhere.
Pseudocode can represent coding concepts common to all programming languages.
Pseudocode can run in the web browser.
2.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
Damien is writing a program to teach Elvish languages:
DISPLAY ("Mae govannen!") DISPLAY ("=") DISPLAY ("Well met!")
The following paragraph describes how the program works.
Fill in the blanks:
This is a computer program with 3 statements. Each statement calls a procedure named DISPLAY which expects a single ....... to determine what to display on the screen.
pseudocode
procedure
parameter
statement
3.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
This short program displays the winning result in a ship naming contest:
DISPLAY ("Boaty")
DISPLAY ("McBoatFace")
What does the program output?
BoatyMcBoatFace
Boaty McBoatFace
Boaty
McBoatFace
4.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
Consider the following code snippet:
DISPLAY (":")
DISPLAY ("-")
DISPLAY ("O")
After the code runs, what is displayed?
O - :
: - O
O-:
:-O
5.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
What will happen if you type pseudocode in another language's programming environment and try to run the program?
The program will run, because all programming environments understand pseudocode.
The program will not run, because programming environments only understand the language they're built for.
The program will run as long as you're using the pseudocode for that language (e.g. pseudo-JS for JavaScript).
6.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
Oakley is making a program to display events for the next few days. Here's a snippet of the code:
today ← 11
tomorrow ← 12
DISPLAY (tomorrow)
DISPLAY (today)
After running that code, what will be displayed?
12 12
12 11
11 11
11 12
7.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
Corey is experimenting with assigning and displaying variables. Here's his code:
test1 ← 200
DISPLAY (test1)
test2 ← 100
test2 ← test1
DISPLAY (test2)
test1 ← test2
DISPLAY (test1)
What will be the output of that code?
200 200 200
200 100 100
200 200 100
200 100 200
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?