
Python Basics: Variables and Loops Quiz
Authored by Z Begum
Computers
8th Grade
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to declare a variable called `age` with the value 13 in Python?
int age = 13
age = 13
age : int = 13
declare age = 13
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the data type of the value `"Hello"` in Python?
int
float
str
bool
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used to add two numbers in Python?
+
&
%
$
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? ```python print(3 + 4) ```
34
7
3+4
Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct way to concatenate two strings `first` and `last` in Python?
first + last
first . last
first, last
first * last
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? ```python print("Good" + " " + "Morning") ```
GoodMorning
Good Morning
Good+Morning
Good Morning (with two spaces)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid Python data type?
integer
number
str
decimal
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
26 questions
html
Quiz
•
KG - 12th Grade
26 questions
Motherboard Connections and parts
Quiz
•
6th - 12th Grade
27 questions
Chromebook Shortcuts
Quiz
•
2nd - 12th Grade
26 questions
Keyboard Letters
Quiz
•
1st - 12th Grade
31 questions
Quiz
•
6th - 10th Grade
33 questions
VEX IQ
Quiz
•
8th Grade
33 questions
MS Office Applications
Quiz
•
7th - 8th Grade
25 questions
Hidden Figures
Quiz
•
7th - 8th 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