PYTHON -- variables

PYTHON -- variables

Assessment

Flashcard

Computers, Fun

9th - 12th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

10 questions

Show all answers

1.

FLASHCARD QUESTION

Front

In Python, can string variables be declared using both single and double quotes?

Back

Yes, they are interchangeable

2.

FLASHCARD QUESTION

Front

In Python, are variable names case-sensitive?

Back

Yes, variable names are case-sensitive

3.

FLASHCARD QUESTION

Front

In the following code, what value will be assigned to the variable "cat"?
mouse + cat + dog = "small" + "medium" + "large"

Back

Nothing, that operation will throw an error

4.

FLASHCARD QUESTION

Front

What will be printed by the following code?
Num = 90 Num = 20 print(Num)

Back

20

5.

FLASHCARD QUESTION

Front

Variables are used _________.

Back

to store data

6.

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

7.

FLASHCARD QUESTION

Front

Why is the variable name '1st_Name' invalid for Python?

Back

The variable name starts with a number.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?