Python Variables

Quiz
•
Computers
•
University
•
Hard
Lintang Wisesa
Used 10+ 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
Typescript

Quiz
•
University
15 questions
Python Programming 1: print, strings, variables, casting

Quiz
•
9th Grade - University
10 questions
Python

Quiz
•
University
20 questions
Python for beginners

Quiz
•
University
14 questions
Python L1

Quiz
•
8th Grade - University
10 questions
Python Basics

Quiz
•
University
10 questions
Python Unit 3

Quiz
•
University
20 questions
Python Programming II CSE A

Quiz
•
12th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University