PYTHON -- variables

PYTHON -- variables

9th - 12th Grade

12 Qs

quiz-placeholder

Similar activities

Python - Variables and Expressions

Python - Variables and Expressions

9th Grade

10 Qs

Python2

Python2

8th Grade - University

15 Qs

Python Boolean

Python Boolean

11th - 12th Grade

11 Qs

Python basics

Python basics

9th - 12th Grade

16 Qs

Python Introduction Quiz

Python Introduction Quiz

8th - 9th Grade

12 Qs

Python3

Python3

4th Grade - University

10 Qs

2) Python Variables

2) Python Variables

8th - 11th Grade

16 Qs

Python Syntax

Python Syntax

6th - 12th Grade

14 Qs

PYTHON -- variables

PYTHON -- variables

Assessment

Quiz

Computers, Fun

9th - 12th Grade

Hard

Created by

Jami Campbell

Used 5+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

30 sec • 5 pts

Variable names _____________.

Check all that apply.

must not begin with a number

can only contain the characters A-Z, a-z, 0-9, and _ .

must be in lower case

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

Yes, they are interchangeable

No, only single quotes can be used

No, only double quotes can be used

No, strings cannot be declared with quotes

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, are variable names case-sensitive?

Yes, variable names are case-sensitive

No, variable names are not case-sensitive

Only the first character in the variable name is case-sensitive

Case sensitivity depends on the version of Python

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

In the following code, what value will be assigned to the variable "cat"?


mouse + cat + dog = "small" + "medium" + "large"

small, medium, large

small

medium

large

Nothing, that operation will throw an error

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Num = 90

Num = 20

print(Num)

90

4.5

20

1800

6.

MULTIPLE SELECT QUESTION

30 sec • 5 pts

Which of the following options are valid variable names?

Check all that apply.

1st_name

first_name

first Name

f1_name

firstName

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Variables are used _________.

to store data

to print data

to produce functions

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?