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
16 questions
Quiz on List and Tuples

Quiz
•
University
15 questions
Python Programming - Introduction

Quiz
•
University
15 questions
PYTHON BOOTCAMP

Quiz
•
University
19 questions
Get started with python

Quiz
•
University
20 questions
Basic Python

Quiz
•
University
20 questions
Introduction to Python

Quiz
•
University
10 questions
TIU Quiz-9

Quiz
•
University
20 questions
CodeHS - Intro to Python - Basics and Console Interaction

Quiz
•
9th Grade - Professio...
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University