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
20 questions
AI BootCamp: 2024 Edition- Session 1

Quiz
•
University
20 questions
Python Functions and Error Handling

Quiz
•
10th Grade - University
11 questions
Python Round 3

Quiz
•
University
10 questions
Python Generators

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

Quiz
•
University
20 questions
Python Data Types Quiz

Quiz
•
10th Grade - University
20 questions
Basics of programming - Quiz - 01

Quiz
•
University - Professi...
20 questions
PYTHON REVISION

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade