
Python Basics Quiz
Quiz
•
Computers
•
5th Grade
•
Practice Problem
•
Hard
Standards-aligned
Twilla Walton
Used 7+ times
FREE Resource
Enhance your content in a minute
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to declare a variable in Python?
`var x = 10`
`x = 10`
`int x = 10`
`x : 10`
Tags
DOK Level 2: Skill/Concept
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a string data type in Python?
`10`
`10.5`
`"Hello"`
`True`
Tags
DOK Level 2: Skill/Concept
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you take input from the user in Python?
`input("Enter your name: ")`
`get("Enter your name: ")`
`read("Enter your name: ")`
`scan("Enter your name: ")`
Tags
DOK Level 2: Skill/Concept
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? ```python print("Hello, World!") ```
`Hello World`
`Hello, World!`
`Hello, World`
`Hello World!`
Tags
DOK Level 2: Skill/Concept
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct if statement in Python?
`if x = 5:`
`if x == 5:`
`if (x == 5)`
`if x equals 5:`
Tags
DOK Level 2: Skill/Concept
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? ```python x = 10 if x > 5: print("x is greater than 5") else: print("x is not greater than 5") ```
`x is not greater than 5`
`x is greater than 5`
`x is 10`
`x is less than 5`
Tags
DOK Level 2: Skill/Concept
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following loops will execute exactly 5 times?
`for i in range(5):`
`while i < 5:`
`for i in range(1, 5):`
`while i <= 5:`
Tags
DOK Level 2: Skill/Concept
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
17 questions
امتحان حاسوب
Quiz
•
4th - 6th Grade
11 questions
Gr3-Scratch - Revision
Quiz
•
3rd - 5th Grade
10 questions
Ki Hajar STEM - 2
Quiz
•
3rd - 5th Grade
16 questions
Scratch 3.0 Alıştırma 1
Quiz
•
5th - 6th Grade
14 questions
Simulacro-Aplicaciones informáticas EF
Quiz
•
1st - 5th Grade
15 questions
ÔN TẬP HKII
Quiz
•
5th Grade
15 questions
K5_ÔN TẬP HỌC KÌ 1
Quiz
•
5th Grade
10 questions
Chapter 4 - Latihan
Quiz
•
1st - 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
