
Programming Basics Quiz
Authored by Tenzin Choezang
Arts
4th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does a for loop do?
Repeats code until a condition is true
Repeats code for a specific number of times
Runs code only once
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which type of loop is best for repeating code while a condition is true?
if loop
while loop
for loop
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a function in programming?
A command to store information
A block of code that performs a specific task
A condition to check values
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you call a function called moveMonkey()?
moveMonkey();
call moveMonkey{}
if (moveMonkey)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why is it useful to use functions in your code?
It makes your code shorter and easier to understand
It makes your code run faster
It prevents errors
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does an if statement do?
Repeats a block of code
Checks if a condition is true, then runs a block of code
Stores a value
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you add an alternative condition to an if statement?
By using else
By using while
By using repeat
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?