NEW
Font size
WorksheetsJavaScript Vocabulary Sheet (CodeHS – Karel the Dog)
Total questions: 10
Worksheet time: 5mins
An algorithm is a:
step-by-step procedure for solving a problem or accomplishing a task.
random set of instructions without any specific order.
hardware component of a computer.
type of software application.
A Function in programming is:
a block of code that performs a specific task
a type of variable
a syntax error
a hardware component
A Command in the context of Karel the Dog is:
a set of instructions for Karel to follow.
a type of food for Karel.
a breed of dog.
a game Karel plays.
What is a Loop in programming?
A sequence of instructions that is continually repeated until a certain condition is reached.
A data structure that holds multiple values.
A function that calls itself.
A way to store data persistently.
What is a Conditional Statement in programming?
A statement that executes a block of code only if a specified condition is true.
A statement that repeats a block of code a certain number of times.
A statement that defines a variable or a function.
A statement that ends the execution of a function.
What is a Boolean?
A) A type of value that is either true or false, often used in conditionals.
B) A type of loop in programming.
C) A function that returns a number.
D) A syntax error in code.
Decomposition in programming is the process of breaking down a complex problem into smaller, more manageable parts. Which of the following best describes this concept?
Combining multiple tasks into one large task
Breaking down a complex problem into smaller parts
Ignoring the problem altogether
Solving the problem without any planning
Debugging in programming is the process of:
writing code
testing code
finding and fixing errors in code
compiling code
The purpose of a comment in code is to:
Explain the code to humans
Execute a part of the code
Increase the speed of code execution
Reduce the size of the code
What is indentation in programming?
The practice of organizing code using spaces or tabs to make it easier to read.
A type of loop in programming.
A function that returns a number.
A syntax error in code.
