Python Variables

Python Variables

Assessment

Flashcard

Computers

6th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

8 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What type of variable is the following?: Y = False

Back

Boolean

2.

FLASHCARD QUESTION

Front

What does the following Python program print?
X = "Hello World!"
Y = "I can code "
Z = " In Python"
print( X + Y + Z)

Back

Hello World!I can code In Python

3.

FLASHCARD QUESTION

Front

Variables have three things:

Back

name, type, value

4.

FLASHCARD QUESTION

Front

When you want to print something to the screen you should use

Back

a print statement

5.

FLASHCARD QUESTION

Front

print("Python " * 3); will print out what

Back

Python Python Python

6.

FLASHCARD QUESTION

Front

Which of the following is a correct way to declare a string in Python? Options: str = "Hello", str = Hello", str = "Hello", str = Hello

Back

str = "Hello"

7.

FLASHCARD QUESTION

Front

In Python, the variable type that stores a whole number is...

Back

integer

8.

FLASHCARD QUESTION

Front

If my_variable = "lunch", what is the data type of my_variable?

Back

string