
JavaScript Basics & Graphics Test
Authored by Tina Mickens
Computers
9th - 12th Grade
25 Questions
Used 14+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following commands is a valid Karel command?
move
move;
move();
move()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the horizontal pathways called in a Karel world?
rows
points
columns
Karel’s position
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the vertical pathways called in a Karel world?
rows
columns
points
Karel's position
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If Karel starts facing East in the first row, third column, what row and column will Karel be on after this code runs?
move();
move();
move();
turnLeft();
move();
Row 1 and Column 3
Row 4 and Column 4
Row 2 and Column 6
Row 6 and Column 2
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of using a for loop in code?
To do something if a condition is true
To make programs run faster
To repeat something a fixed number of times
To do something while a condition is true
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the following code, what would be a good Postcondition to write?
/* Precondition: Karel is on a spot with a tennis ball facing East
Postcondition: ... /
function getOnTop() {
turnLeft();
move();
turnRight();
}
Karel is on a spot with a tennis ball facing north
Karel is facing East.
Karel ends one spot above a tennis ball facing East.
Karel is on the same position but on top of a ball.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can we improve the following program?
function main() {
move();
move();
move();
move();
move();
move();
move();
}
main();
Break down this program into more functions
Use a for loop to repeat the move command
Fix the indentation of this program
Use a while loop to repeat the move command
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
21 questions
GarageBand / Logic Shortcuts
Quiz
•
11th Grade
21 questions
Test vstupní a výstupní zařízení PC
Quiz
•
10th Grade
20 questions
Online Platform Block Q
Quiz
•
11th - 12th Grade
20 questions
City & Guilds Award in Business Processes
Quiz
•
12th Grade
20 questions
Keyboard Quiz
Quiz
•
9th Grade
20 questions
Database Basics v2 N5
Quiz
•
1st - 12th Grade
21 questions
CPA MS-Office Hotkeys Quiz
Quiz
•
8th Grade - Professio...
21 questions
AQA 4.6.4 Logic Gates and Circuits
Quiz
•
11th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade