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
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
Basic JavaScript Review

Quiz
•
9th - 12th Grade
20 questions
Arrays in Java

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

Quiz
•
7th - 12th Grade
22 questions
Karel Quiz

Quiz
•
8th - 12th Grade
20 questions
Unit 1 GA IST

Quiz
•
9th - 12th Grade
25 questions
CodeHS Unit 1 Karel Test (Corgi edition)

Quiz
•
10th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
19 questions
Mental Health Vocabulary Pre-test

Quiz
•
9th Grade