
CodeHS Unit 1

Quiz
•
Computers
•
12th Grade
•
Medium
Elizabeth Neely
Used 6+ times
FREE Resource
19 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is a condition in Karel programming?
The place in code where the program stops running.
A method that returns a true or false answer. Typically used within a control structure.
The number of times a program loops.
What karel does during the program.
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is wrong with the style of this method declaration?
private void spinKarel() {
turnLeft();
turnLeft();
turnLeft();
turnLeft();
}
(I) Indenting is wrong
(II) No comment
(III) Not using camelCasing for name
(IV) Brackets are not on their own line
I only
I and II
IV only
I, II, and IV
II and III
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is wrong with this method declaration?
public karelDance()
[
move();
turnLeft();
move();
turnLeft();
move();
]
(I) Not using curly brackets
(II) Missing void
(III) Using public instead of private
(IV) Illegal characters in the method name
I only
I and II
I, II, and III
I, II, III, IV
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
How can we teach Karel new commands?
A for loop
A while loop
Define a new method
The run method
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Why does a programmer indent their code?
Helps show the structure of the code.
Easier for other people to understand.
A key part of good programming style!
All of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which of these is a valid Karel command in Java?
move();
MOVE
move;
move()
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which of these is a valid Karel command in Java?
turnLeft();
turnleft();
turnLeft()
TurnLeft
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Computer Science: Chapter 1 Test Review

Quiz
•
9th - 12th Grade
15 questions
Java Strings and Math Quiz

Quiz
•
12th Grade
21 questions
Java vs JavaScript Operators

Quiz
•
3rd - 12th Grade
22 questions
Basic Boolean Logic Practice

Quiz
•
9th - 12th Grade
15 questions
วิทยาการคำนวณม.5 เรื่อง ภาษาคอมพิวเตอร์

Quiz
•
9th - 12th Grade
21 questions
Java Programming Quiz unit 3

Quiz
•
12th Grade
20 questions
Empowerment Technology Test

Quiz
•
11th - 12th Grade
15 questions
PCEP Section 1A: Understand fundamental terms and definitions

Quiz
•
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