JavaScript Basics & Graphics Test

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Tina Mickens
Used 14+ times
FREE Resource
25 questions
Show all answers
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
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Создание и редактирование объектов в Blender

Quiz
•
5th - 9th Grade
22 questions
CodeHS AP CSP Unit 3 Review

Quiz
•
11th - 12th Grade
20 questions
IST CodeHS Unit 2 Robot Coding Review

Quiz
•
9th - 12th Grade
20 questions
JavaScript Basics CodeHS

Quiz
•
7th - 12th Grade
20 questions
Final Review Part 2

Quiz
•
11th Grade
20 questions
LOOKUP

Quiz
•
9th Grade - University
25 questions
JavaScript Karel Unit 1 Quiz Study Guide

Quiz
•
9th - 12th Grade
24 questions
Javascript Basics

Quiz
•
7th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade