
Dec 9- What's wrong with this code?
Quiz
•
Computers
•
6th - 8th Grade
•
Practice Problem
•
Medium
Stephanie Kimbrough
Used 7+ times
FREE Resource
Enhance your content in a minute
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is wrong with the program?
function start()}
move();
buildTower();
comeDown();
move();
move();
buildTower();
move();
turnRight();
}
The curly bracket is turned the
The m in move should be capitolized.
The t in tower should be lower case
The word function spelled wrong.
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What's wrong with this program?
// Has karel come down from the top of the tower.
Precondition: Karel is facing north
// Postcondition: Karel is facing east at the bottom of the tower
function comeDown(){
turnAround();
move();
move();
turnLeft();
}
The d comeDown in down should be lower case.
The comment doesn't have the back slashes.
The a in turnAround should be lower case.
The m in move should be upper case.
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What type of program is this?
for (var i = 0; i < 10; i++) {
move();
}
If Statement
If/Else Statement
Loop
While True Loops
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
"This is not correct syntax or syntax error," means what?
The solution is not correct.
The number(s) used are inccorect.
The symbol(s) used are incorrect.
The word(s) used are incorrect.
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
This function should have Karel in both worlds facing...
function start() {
if (facingNorth()) {
makeRightSquare();
} else {
makeLeftSquare();
}
}
function makeRightSquare() {
for (var i = 0; i < 4; i++) {
putBall();
move();
turnRight();
}
}
function makeLeftSquare() {
for (var i = 0; i < 4; i++) {
putBall();
move();
turnLeft();
}
}
North
Right
Left
The same direction.
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
Grade 6- PRINT statement in Python
Quiz
•
6th Grade
10 questions
Importance of computers - Q1 (Part1)
Quiz
•
6th Grade
10 questions
Viewing Websites CodeHS Lesson 3.1 Web Design
Quiz
•
8th Grade
10 questions
Lourdes Amaranta Ayala Gracia
Quiz
•
8th Grade - University
10 questions
Excel Skills Quiz
Quiz
•
7th Grade
10 questions
Social media influencers
Quiz
•
6th - 12th Grade
10 questions
Kuiz Senang
Quiz
•
7th - 9th Grade
10 questions
All Fun and Games - E-saftey and gaming
Quiz
•
6th - 8th 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
