
Introduction to Programming Quiz

Quiz
•
Computers
•
9th Grade
•
Hard
Mercy Omwoyo
FREE Resource
23 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 4 pts
What's wrong with this code?
The go function is called twice
The go function has a syntax error
The go function has been defined twice
go is not a command that Karel understands
2.
MULTIPLE CHOICE QUESTION
2 mins • 4 pts
How many total times will Karel move in this program?
move()
move()
move()
move()
move()
move()
1
5
6
7
3.
MULTIPLE CHOICE QUESTION
2 mins • 4 pts
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
4.
MULTIPLE SELECT QUESTION
2 mins • 4 pts
Why does a programmer indent their code?
Helps show the structure of the code.
Easier for other people to understand.
In Python, it is used to help determine what parts of a code are included in a code block, such as an if statement or for loop.
All of the above
5.
MULTIPLE CHOICE QUESTION
2 mins • 4 pts
How can we teach Karel new commands?
For loop
While loop
Define a new function
The main function
6.
MULTIPLE SELECT QUESTION
2 mins • 4 pts
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
7.
MULTIPLE SELECT QUESTION
2 mins • 4 pts
Karel starts at Street 1, Avenue 1, facing East in a 5x5 world. What will happen after this code runs? move() putball() move() move() move() move() move()
Karel will end on Street 1, Avenue 2
Karel will end on Street 1, Avenue 7
This code won't run because of a syntax error
Karel will crash into a wall
Create a free account and access millions of resources
Similar Resources on Wayground
24 questions
Intro to Programming with Karel

Quiz
•
9th - 12th Grade
25 questions
CS Unit 1 Quiz Review

Quiz
•
9th - 12th Grade
22 questions
Adobe Photoshop CS6 Tools

Quiz
•
9th - 12th Grade
20 questions
Adobe Premiere Interface

Quiz
•
9th - 12th Grade
18 questions
Secondary Storage (GCSE CS)

Quiz
•
9th - 11th Grade
25 questions
Keyboard Shortcuts

Quiz
•
9th - 12th Grade
23 questions
Part 1 – Introduction to Robotics

Quiz
•
9th Grade
20 questions
Term 1: Quiz 2:Grade 9 Cat Intro

Quiz
•
9th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade