PYTHON -- variables

PYTHON -- variables

Assessment

Flashcard

Computers, Fun

9th - 12th Grade

Practice Problem

Hard

Created by

Wayground 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.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?