
Python Basics Quiz
Authored by Twilla Walton
Computers
5th Grade
DOK Level 2: Skill/Concept covered
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 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
What will be the output of the following code? ```python x = 5 if x > 3: print("Hello") else: print("Goodbye") ```
`Goodbye`
`Hello`
`5`
`Error`
Tags
DOK Level 2: Skill/Concept
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to define a function in Python?
`def myFunction:`
`function myFunction():`
`def myFunction():`
`myFunction() = def`
Tags
DOK Level 2: Skill/Concept
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? ```python def add(a, b): return a + b result = add(3, 4) print(result) ```
`7`
`34`
`3`
`Error`
Tags
DOK Level 2: Skill/Concept
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the first element of a list named `myList` in Python?
`myList[0]`
`myList[1]`
`myList.first()`
`myList[0:1]`
Tags
DOK Level 2: Skill/Concept
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? ```python myList = [1, 2, 3, 4] print(myList[2]) ```
`1`
`2`
`3`
`4`
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
Linux-2 Quiz 2 -- LAMP
Quiz
•
1st - 12th Grade
10 questions
ICT Yr 5 - Programming in LOGO (Part 1)
Quiz
•
5th Grade
11 questions
Ôn tập Lớp 3
Quiz
•
4th - 12th Grade
13 questions
Phần mềm ứng dụng WXP 26 tháng 9 năm 2023
Quiz
•
1st - 5th Grade
12 questions
Метод координат
Quiz
•
5th Grade
10 questions
BÀI KIỂM TRA GIỮA KÌ 2 - LỚP 3
Quiz
•
1st - 10th Grade
11 questions
Cyber Safety
Quiz
•
3rd - 6th Grade
10 questions
Pregledavane mrežnih stranica
Quiz
•
5th 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