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
Python Basics (CodeHS)

Quiz
•
7th - 12th Grade
20 questions
JavaScript Operators

Quiz
•
9th - 12th Grade
22 questions
IST CodeHS Unit 8 JavaScript Review

Quiz
•
9th - 12th Grade
20 questions
Karel Programming Quiz for Beginners

Quiz
•
9th Grade
27 questions
APCS Principles 24-25 Midterm review Questions

Quiz
•
10th Grade
21 questions
3°D_SAV2_R2 3TECBE_ Algoritmos Estruturas Dados_17_36 QUIZIZZ

Quiz
•
11th Grade - University
20 questions
Ինֆորմատիկա 11 բն.

Quiz
•
11th Grade
25 questions
Code HS 3.19 Intro to Programming w/Karel

Quiz
•
9th - 12th 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
10 questions
Proper Keyboarding Techniques

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

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

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade