
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
15 questions
Latihan Kuis Kihajar
Quiz
•
4th - 6th Grade
12 questions
Ką žinau apie kompiuterį
Quiz
•
5th Grade
10 questions
Scratch
Quiz
•
5th - 6th Grade
10 questions
Κανόνες καλής συμπεριφοράς στο διαδίκτυο
Quiz
•
4th - 6th Grade
10 questions
ÔN TẬP HK2 TIN 5 23 - 24
Quiz
•
5th Grade
15 questions
Minecraft
Quiz
•
1st - 12th Grade
15 questions
Introduction to Scratch
Quiz
•
3rd - 5th Grade
10 questions
ICT grade 5 revision
Quiz
•
5th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Computers
8 questions
2 Step Word Problems
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
13 questions
The Life of Dr. Martin Luther King, Jr. - MLK Day! (Animated)
Interactive video
•
5th Grade
22 questions
Nonfiction Text Structures
Quiz
•
5th Grade
10 questions
Martin Luther King, Jr. For Kids
Interactive video
•
1st - 12th Grade
18 questions
Add and Subtract fractions and Mixed numbers
Quiz
•
5th Grade
13 questions
Martin Luther King, Jr. Holiday Lesson
Interactive video
•
5th Grade
