How can we improve the following program?
function start() {
move();
move();
move();
move();
move();
move();
move();
move();
move();
}
CodeHS - Unit 5 - Into to Programming with Karel
Quiz
•
Computers
•
9th Grade
•
Hard
Quizizz Content
FREE Resource
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can we improve the following program?
function start() {
move();
move();
move();
move();
move();
move();
move();
move();
move();
}
Break down this program into more functions
Use a for loop to repeat the move command
Use a while loop to repeat the move command
Fix the indentation of this program
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can we teach Karel new commands?
For loop
While loop
Define a new function
The main function
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the start function?
A function that starts.
It is the main body of a program, where all other functions are called up.
It is the start of a racing program.
It is another function like all others that can be written with any definition you want.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a "bug" in programming?
an error in a code
a scratch on the screen
something is wrong with the computer
none of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is a condition in Karel programming?
The place in code where the program stops running.
A method that returns a true or false answer. Typically used within a control structure.
The number of times a program loops.
What karel does during the program.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is programming?
a set of related activities
someone who knows how to program
giving the computer a set of commands
a language where the codes are written in text
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why is the following command an invalid Karel command?
turnleft();
It should end in a colon rather than a semicolon
The l should be a capital L
It should start with a capital T
This command is correct
22 questions
Karel and Programming Basics
Quiz
•
9th Grade
19 questions
JavaScript and Karel Quiz Review
Quiz
•
9th - 12th Grade
15 questions
CodeHS - Java - Karel (Sec 1-3)
Quiz
•
7th - 10th Grade
20 questions
iGCSE Computer Science: Programming Languages
Quiz
•
9th - 12th Grade
20 questions
APCSA Unit 3
Quiz
•
9th Grade
13 questions
2.5 Translators & Facilities - OCR GCSE Computer Science
Quiz
•
7th - 12th Grade
15 questions
GCSE - 2.3 Producing Robust Programs
Quiz
•
9th - 11th Grade
20 questions
CODEHS KAREL
Quiz
•
7th - 9th Grade
25 questions
Equations of Circles
Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)
Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System
Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice
Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers
Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons
Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)
Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review
Quiz
•
10th Grade