
Python Basics Quiz - Variables Round 2
Authored by Angelito Villalon
Computers
9th - 12th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
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
13 questions
EXAMEN-2°AÑO-INFORMATICA P3-2021
Quiz
•
1st - 9th Grade
10 questions
Hệ Điều Hành Của Máy Tính
Quiz
•
10th Grade - University
14 questions
TRẮC NGHIỆM BÀI 5_KHỐI 11
Quiz
•
12th Grade
15 questions
Parcial - Módulo IV
Quiz
•
1st Grade - University
15 questions
Integrasi Aplikasi Office 365
Quiz
•
10th Grade
15 questions
Getting Started With PowerPoint
Quiz
•
9th Grade
10 questions
Tipos de bases de datos
Quiz
•
10th Grade - University
10 questions
Printers
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade