
Python Basics Quiz - Variables Round 2
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
Angelito Villalon
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you assign a value to a variable in Python?
x <- 1
x = 1
x == 1
x : 1
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable name in Python?
my-var
2myvar
_myvar
my var
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type would be used to represent the value 2.2 in Python?
str
float
int
char
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you output the value of a variable in Python?
console.log(x)
print(x)
output(x)
echo(x)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a rule for creating variable names in Python?
Cannot contain spaces
Can start with a number
Case-sensitive
Can contain alpha-numeric characters and underscores
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of print(type(1))?
error
type1
type(1)
(type(1))
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a string in Python?
True
None
'Hello'
123
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
emtech
Quiz
•
12th Grade
10 questions
Visual Basic 2010
Quiz
•
8th Grade - University
9 questions
IT related jobs
Quiz
•
9th Grade
10 questions
Trắc nghiệm bài 12 tin học 11
Quiz
•
11th Grade
10 questions
1 Herramientas Digitales
Quiz
•
6th Grade - University
10 questions
ICT as Platform for Change
Quiz
•
11th - 12th Grade
12 questions
Clase de Computación: Excel
Quiz
•
11th Grade
13 questions
Pengenalan Aplikasi Blender
Quiz
•
11th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Computers
15 questions
Internet Vocabulary Notebook Check #2 - CTEA(2024)
Quiz
•
12th Grade
11 questions
Internet Terms Vocabulary- Notebook Check #1- CTEA
Quiz
•
12th Grade
39 questions
UNIT 7 and UNIT 8 — Multiple Choice Question Bank (Extracted)
Quiz
•
9th Grade
50 questions
Money Matters Fall 2025 Final Exam — Worksheet Questions
Quiz
•
12th Grade
47 questions
CSF Final Exam Practice
Quiz
•
9th - 12th Grade
