
Quiz: Programming Basics Review
Authored by Tarra Jackson
Information Technology (IT)
11th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What is the purpose of an if statement?
To repeat code
To make decisions
To define a variable
To display output
2.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Which of the following is NOT a valid variable name?
user_name
2nd_place
favoriteColor
total_amount
3.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What does a return statement do in a function?
Prints output to the screen
Ends the program
Sends a value back to the caller
Defines a new variable
4.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Which symbol is used for assignment in Python?
==
=
:
=>
5.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What is the output of print(5 + "5")?
10
"55"
Error
None
6.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What is the main advantage of using functions?
They make programs longer
They help avoid repetition and improve readability
They replace all loops
They make the program run faster
7.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Which of these is an example of a loop?
if-else
for
return
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 Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?