
Dec 9- What's wrong with this code?

Quiz
•
Computers
•
6th - 8th Grade
•
Medium
Stephanie Kimbrough
Used 7+ times
FREE Resource
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.
Similar Resources on Wayground
5 questions
If statements DRILL

Quiz
•
8th Grade
10 questions
Робот Карел 01

Quiz
•
6th - 7th Grade
8 questions
Computer Science Fundamentals with VEXcode VR Course Unit 3

Quiz
•
6th Grade
10 questions
FOR LOOPS and Angles with Tracy (PYTHON)

Quiz
•
7th - 8th Grade
10 questions
VEXcode VR Unit 9

Quiz
•
6th Grade
8 questions
Tinkercad Vocabulary

Quiz
•
7th - 8th Grade
10 questions
Scratch - Revision

Quiz
•
6th Grade
8 questions
VR Robot- Unit 3 Review

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

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th 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
typing

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
20 questions
Input, Output, Processing or Storage

Quiz
•
5th - 6th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade