Python Variables

Quiz
•
Computers
•
University
•
Hard
Lintang Wisesa
Used 8+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a variable?
A number or text that meaningful
A container for storing data values
A message input by the user
A printout that show answer that user entered
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What symbol is used in python to assign values to a variable?
=
:
>>>
==
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What symbol is used in python to create a comment?
>>>
//
@
#
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Below are valid variable names in Python, except...
officeMail
SECRET_KEY
1stName
PhoneNumber
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, a variable may be assigned a value of one type, and then later assigned a value of a different type:
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements assigns the value 100 to the variable x in Python:
var x = 100
x := 100
x = 100
x == 100
7.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of the following are valid Python variable names:
my_age
version1.3
homeAddress
return
4square
Create a free account and access millions of resources
Similar Resources on Wayground
18 questions
CSE 102 Exam 3 Practice

Quiz
•
University
14 questions
Python Revision

Quiz
•
University
20 questions
[Python For All] Quiz 2 - Rewind.py

Quiz
•
University
20 questions
Basics of programming - Quiz - 01

Quiz
•
University - Professi...
20 questions
AI BootCamp: 2024 Edition- Session 1

Quiz
•
University
20 questions
Python Functions and Error Handling

Quiz
•
10th Grade - University
16 questions
PAP Module-3 Part-2

Quiz
•
University
20 questions
Python Data Types Quiz

Quiz
•
10th Grade - University
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