
PYTHON -- variables

Quiz
•
Computers, Fun
•
9th - 12th Grade
•
Hard
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
Similar Resources on Wayground
15 questions
Python Introduction

Quiz
•
9th Grade
11 questions
Python Boolean

Quiz
•
11th - 12th Grade
15 questions
Python - Chpt 1 - Review

Quiz
•
9th - 12th Grade
10 questions
Python Variables

Quiz
•
7th - 12th Grade
10 questions
Comments and Variables in Python Programming

Quiz
•
11th Grade
14 questions
Python Syntax

Quiz
•
6th - 12th Grade
14 questions
year 8 lesson 2 quiz - python

Quiz
•
8th - 10th Grade
17 questions
Python - Quiz

Quiz
•
9th - 11th Grade
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade