
Python Fundamentals: Variables and Printing
Quiz
•
Computers
•
4th Grade
•
Practice Problem
•
Medium
Surrey Clayton Teacher Best Brains
Used 9+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a variable in Python?
A type of Python snake
A container for storing data values
A print command
A mathematical constant
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct variable assignment in Python?
variable = 'Hello, World!'
2variable = 'Hello, World!'
variable-name = 'Hello, World!'
$variable = 'Hello, World!'
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code print? ```python print("Hello\nWorld") ```
Hello World
HelloWorld
Hello\nWorld
Hello World
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the `\n` symbol represent in Python?
A new tab
A new line
A space
A backslash
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? ```python x = 10 print(x) ```
x
10
'x'
'10'
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a valid variable name in Python?
my_variable
myVariable
1stVariable
variable1
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? ```python a = 5 b = 10 print(a + b) ```
5 + 10
15
a + b
510
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
10 questions
Computación - 6to de básica
Quiz
•
6th Grade
11 questions
Challenge 3 Fourth grade
Quiz
•
4th Grade
15 questions
Algoritma dan Pemrograman Bab 1
Quiz
•
University
7 questions
ESBrotherX_Medical AI_Lecture
Quiz
•
University
10 questions
TIN 11 - PYTHON - PHÉP TOÁN - BIỂU THỨC - CÂU LỆNH GÁN
Quiz
•
11th Grade
14 questions
Мотылек
Quiz
•
6th - 8th Grade
10 questions
คอมพิวเตอร์ในชีวิตประจำวัน
Quiz
•
12th Grade
11 questions
Computer Education 7
Quiz
•
7th 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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
