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
16 questions
Understanding Python Lists

Quiz
•
10th Grade
20 questions
Python IF statements Part 4

Quiz
•
9th - 12th Grade
17 questions
Intro to Python Project Stem U4 Repetition Loops Vocab Quiz

Quiz
•
9th - 12th Grade
18 questions
LO13 Lesson 6

Quiz
•
10th Grade
18 questions
Intro to Python Project Stem Unit 8 Vocab Test

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

Quiz
•
10th Grade - University
16 questions
Intro to Coding Week 4

Quiz
•
9th - 12th Grade
15 questions
Q2 Comprog Summative Test I

Quiz
•
10th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Instructional Technology
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
20 questions
Understanding Linear Equations and Slopes

Quiz
•
9th - 12th Grade