
Programming Functions Quiz
Quiz
•
Other
•
10th Grade
•
Practice Problem
•
Easy
Jared Lewis
Used 14+ times
FREE Resource
Enhance your content in a minute
37 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a function in programming?
A line of code
A reusable block of code that performs a task
A variable name
A programming language
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Karel, what does the command move() do?
Turns Karel left
Moves Karel one space forward
Stops Karel
Places a beeper
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What command would you use to turn Karel 90 degrees to the left?
turnLeft();
move();
turnRight();
pickBeeper();
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of defining a function in Karel?
To add errors to the program
To simplify the program and avoid repeated code
To create variables
To stop the program
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of a function call?
turnLeft();
function turnAround() { ... }
int x = 5;
if (x == 0)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if Karel tries to move into a wall?
Karel stops and the program continues
Karel turns around
The program throws an error
Karel moves to the next available space
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does takeBall() ; do in Karel?
Moves Karel forward
Karel picks up a ball from the current position
Turns Karel left
Stops the program
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
33 questions
TOT KAWALAN DARAT
Quiz
•
1st Grade - Professio...
35 questions
IGCSE Economics Glossary Terms - C
Quiz
•
9th - 12th Grade
39 questions
SEJARAH T4/B7
Quiz
•
4th - 12th Grade
40 questions
The Church: Final Exam Prep
Quiz
•
6th - 10th Grade
40 questions
Latihan Kata Majmuk
Quiz
•
8th - 12th Grade
35 questions
Foods I Review Obj. 1.0
Quiz
•
10th - 12th Grade
35 questions
Bones of the Skull and Face
Quiz
•
10th - 12th Grade
35 questions
Bahasa Jawa kelas X Genap
Quiz
•
10th 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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
Discover more resources for Other
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
15 questions
Making Inferences
Quiz
•
7th - 12th Grade
18 questions
SAT Prep: Ratios, Proportions, & Percents
Quiz
•
9th - 10th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
12 questions
Parallel Lines Cut by a Transversal
Quiz
•
10th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
7 questions
How James Brown Invented Funk
Interactive video
•
10th Grade - University
