
APCSP1
Authored by Thomas Burns
Computers
9th - 12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following is not a valid condition to go in a while loop for Karel?
facingNorth()
frontIsBlocked()
turnAround()
noBallsPresent()
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is one way to create an abstraction in Karel coding?
Use a while loop
Use a for loop
Create a function
Use an if statement
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Say you want to write a program that has Karel run to the other side of first street, jumping over all of the hurdles. Karel should only jump if there is a hurdle blocking the way. However, the hurdles can be in random locations. The world is fourteen avenues long. What is the best control structure to use?
If statement
While loop
Nested while loop
For loop
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Super Karel starts at Street 2, Avenue 1, facing North in a 5 x 5 world. What will happen after this code above runs?
Karel will end at Street 2 Avenue 3
Karel will end at Street 3 Avenue 2
A syntax error will occur
Karel will run into a wall
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following problem solving strategies breaks down different parts of a function into their own functions to make the code more readable?
Indenting code
Debugging code
Top Down Design
Loops
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
In the above code, what would be a good Postcondition to write?
Karel is in the same spot
Karel has moved up and over two spots and is facing South
Karel has moved up and over two spots and is facing East
Karel has moved up and over to spots to the right facing North
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
If you want to repeat something a fixed number of times, which of the following
would you use?
If statement
For loop
While loop
If/Else statement
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?
Similar Resources on Wayground
10 questions
Fundamentos PHP (Manejo de Fomularios y arreglos)
Quiz
•
9th Grade
10 questions
Google Apps
Quiz
•
10th Grade - Professi...
9 questions
OCR GCSE CS - 2.1 ERL sorts and searches
Quiz
•
10th - 11th Grade
10 questions
INTRODUCCION A LA PROGRAMACION
Quiz
•
6th Grade - University
13 questions
Stepwise Refinement
Quiz
•
11th - 12th Grade
11 questions
Threats to Data
Quiz
•
9th - 12th Grade
11 questions
HEALTH AND SAFETY 9
Quiz
•
7th - 9th Grade
15 questions
1.1.1 The structure and function of the processor
Quiz
•
11th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade