What is a variable in Python?

Python Quiz

Quiz
•
Instructional Technology
•
10th Grade
•
Hard
Heidi Holland
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A function that prints text
A way to store information
A type of loop
A way to start a program
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct way to start a loop in Python?
for i to 10
loop i from 1 to 10
for i in range(10)
while i = 10
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the print function do in Python?
It adds two numbers
It prints a document
It displays text or variables on the screen
It starts a new line
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which symbol is used for comments in Python?
#
@
//
*
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to define a function in Python?
function myFunction()
def myFunction:
define myFunction()
def myFunction():
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Variables can change their values during the execution of a program.
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The if statement is used to make decisions in a program.
True
False
Create a free account and access millions of resources
Similar Resources on Quizizz
17 questions
Intro to Python Project Stem U4 Repetition Loops Vocab Quiz

Quiz
•
9th - 12th Grade
16 questions
M05 - Estruturas de Dados Python

Quiz
•
10th Grade - University
17 questions
12/3 Classes & Objects

Quiz
•
9th - 11th Grade
15 questions
Sistemas Embarcados I

Quiz
•
10th Grade
15 questions
Q2 Comprog Summative Test I

Quiz
•
10th Grade
16 questions
Understanding Tuples in Python

Quiz
•
10th Grade
15 questions
PTS INFORMATIKA X SEM GENAP

Quiz
•
10th Grade
20 questions
CORE Module 10 Intro to Material Handling Trade Terms (25)

Quiz
•
9th - 12th 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 Instructional Technology
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