
Python Basics Quiz
Authored by Amira Abd El-aziz
Information Technology (IT)
1st Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to declare a variable in Python?
a) x : int = 5
b) int x = 5
c) x = 5
d) declare x = 5
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a valid variable name?
a) student_name
b) 3score
c) _age
d) price$
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the data type of the following variable? num = 10.5
a) int
b) float
c) str
d) bool
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? x = "10" y = 5 print(x + y)
a) 15
b) 105
c) Error
d) "10 5"
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following data types can store decimal numbers?
a) int
b) bool
c) float
d) str
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? print("Hello", "World", sep="-")
a) Hello-World
b) Hello World
c) Hello, World
d) Hello- World
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of print(5, 10, 15, end="!")?
a) 5 10 15
b) 5 10 15!
c) 5, 10, 15
d) Error
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
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
Discover more resources for Information Technology (IT)
20 questions
Telling Time to the Hour and Half hour
Quiz
•
1st Grade
10 questions
Exploring Rosa Parks and Black History Month
Interactive video
•
1st - 5th Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
13 questions
Fractions
Quiz
•
1st - 2nd Grade
20 questions
CVC Words
Quiz
•
KG - 1st Grade
15 questions
Place Value tens and ones
Quiz
•
1st Grade
16 questions
Money - Coins
Lesson
•
1st - 2nd Grade
20 questions
Halves and Fourths
Quiz
•
1st Grade