
Basic Python Concepts for Students
Quiz
•
Journalism
•
8th Grade
•
Practice Problem
•
Hard
Keegan Aherne
Used 1+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to declare a variable in Python?
let x = 10
x := 10
var x : int = 10
x = 10
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a list in Python?
You create a list in Python by using parentheses, e.g., my_list = (1, 2, 3).
You create a list in Python with the list() function, e.g., my_list = list(1, 2, 3).
You create a list in Python using square brackets, e.g., my_list = [1, 2, 3].
You create a list in Python using curly braces, e.g., my_list = {1, 2, 3}.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What symbol is used for comments in Python?
#
;
//
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function is used to print output to the console?
output()
log()
print()
display()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you define a function in Python?
function_name(parameters) =>
def function_name(parameters):
function function_name(parameters)
create function function_name(parameters)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of 5 + 3 in Python?
8
6
10
9
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a loop that runs 5 times in Python?
for i in range(10): pass
for i in range(5): pass
while i < 5: pass
for i in range(5, 10): pass
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
20 questions
Summative Assessment over Prof. Comm. using Bloom’s Taxonom
Quiz
•
8th Grade - University
20 questions
Scatter Plots Review
Quiz
•
8th - 9th Grade
15 questions
Current Events and Scientific Concepts
Quiz
•
7th Grade - University
15 questions
Scratch Game Development Challenge
Quiz
•
8th Grade
20 questions
YB 360 Page Editor Videos - "Text Panel" and "Photo Panel"
Quiz
•
6th - 8th 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
Discover more resources for Journalism
5 questions
Legends, Leaders, & Changemakers: Maya Angelou
Interactive video
•
6th - 8th Grade
10 questions
Understanding Poetry and Literary Devices
Interactive video
•
4th - 8th Grade
15 questions
Product of Powers Property A1 U7
Quiz
•
8th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
20 questions
Laws of Exponents
Quiz
•
8th Grade
16 questions
8th U5L5 Graphs of Functions
Quiz
•
8th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
