What is the purpose of an if statement?
Quiz: Programming Basics Review

Quiz
•
Information Technology (IT)
•
11th Grade
•
Easy
Tarra Jackson
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
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
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Ulangan Harian Informatika

Quiz
•
9th - 12th Grade
10 questions
Operating System(2)

Quiz
•
10th Grade - University
11 questions
Mail Merge

Quiz
•
10th Grade - University
15 questions
MakeCode Arcade Questions

Quiz
•
10th Grade - University
15 questions
Understanding Loops in C Programming

Quiz
•
1st Grade - University
10 questions
Network secutiry

Quiz
•
9th Grade - University
15 questions
CodeHS Principles of Computing 6.8.1 The Internet Quiz

Quiz
•
9th - 12th Grade
10 questions
Logical Reasoning & Learning to Code

Quiz
•
11th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University