
Adv CS I_Python_Intro to Programming
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Medium
Simone CTA]
Used 1+ times
FREE Resource
Enhance your content in a minute
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is wrong with this for loop?
for i in range = 5;
move()
A. The for loop uses a semicolon(;) instead of colon(:)
B. It should say range(5) instead of range = 5
A
B
A and B
The for loop is correct
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the proper format for a single line comment in Karel?
// This is a comment
# This is a comment
/* This is a comment
This is a comment
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the mystery function do?
def mystery():
while no_balls_present():
move()
Karel moves until it puts down a ball
Karel moves once if there is no ball present
Karel moves until it is on a ball
Karel checks if there is no ball on the current spot and then moves once
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a valid condition to go in an if statement for Karel?
balls_present()
front_is_clear()
left_is_blocked()
turn_left()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What condition should be used in this while loop to get Karel to pick up all the tennis balls on the current location?
while ________ :
take_ball()
take_ball()
front_is_clear()
balls_present()
no_balls_present()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can we teach Karel new commands?
For loop
While loop
The main function
Define a new function
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Super Karel starts at Street 1, Avenue 1, facing East in a 5x5 world. What will happen after this code runs?
move()
move()
turn_right()
move()
Karel ends on street 1, avenue 3
Karel ends on street 2, avenue 3
This code won’t run because of a syntax error
Karel will crash into a wall
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
Review
Quiz
•
9th - 12th Grade
10 questions
Java Fundamentals
Quiz
•
12th Grade
10 questions
La imagen digital
Quiz
•
11th - 12th Grade
13 questions
வகுப்பு 12 - அடோப் இன்டிசைன் CC 2019
Quiz
•
12th Grade
10 questions
Alapismeretek
Quiz
•
7th - 12th Grade
10 questions
Scratch
Quiz
•
KG - Professional Dev...
10 questions
What is a program slides(6:16)
Quiz
•
8th - 12th Grade
10 questions
Java: repetition control structure for & while
Quiz
•
10th - 12th Grade
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
