What is wrong with the program?
function start()}
move();
buildTower();
comeDown();
move();
move();
buildTower();
move();
turnRight();
}
Dec 9- What's wrong with this code?
Quiz
•
Stephanie Kimbrough
•
Computers
•
6th - 8th Grade
•
7 plays
•
Medium
Student preview
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.
3 questions
Karel Drill
Quiz
•
6th - 8th Grade
10 questions
Python Programming with Tracy the Turtle
Quiz
•
6th - 8th Grade
10 questions
Karel Can't Turn Right
Quiz
•
6th Grade
10 questions
CS Day 40
Quiz
•
KG - University
10 questions
8/22-7th: Tracy's World Quiz Sec. 1
Quiz
•
6th - 8th Grade
8 questions
Computer Programming
Quiz
•
1st - 6th Grade
10 questions
CodeHS Intro to Programming - Karel Review
Quiz
•
7th Grade
5 questions
If statements DRILL
Quiz
•
8th Grade
19 questions
Naming Polygons
Quiz
•
3rd Grade
14 questions
Prime Factorization
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
21 questions
6th Grade Math CAASPP Practice
Quiz
•
6th Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
35 questions
4th Grade Math SOL Review
Quiz
•
4th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade