
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
Create a free account and access millions of resources
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
Ôn tập HK 2 - TIN HỌC LỚP 5
Quiz
•
5th Grade
10 questions
Image File Formats
Quiz
•
KG - 9th Grade
11 questions
Standby PSPM SC015
Quiz
•
1st - 5th Grade
15 questions
Kuis 1 Kelas 5 (Sketch Up)
Quiz
•
5th Grade
16 questions
Apresentações Google - Final
Quiz
•
1st - 10th Grade
8 questions
Kes-Kopyala-Yapıştır
Quiz
•
5th - 6th Grade
12 questions
Code.org (Introdução à programação)
Quiz
•
5th - 9th Grade
15 questions
Polski Youtube 2019/2020
Quiz
•
1st - 8th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
