
Python Basics Challenge

Quiz
•
Other
•
8th Grade
•
Hard
Rubies Technologies
Used 1+ times
FREE Resource
23 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
What are the basic data types in Python?
char, decimal, array, object
int, float, str, bool, list, tuple, set, dict
integer, real, text, map
string, number, boolean, collection
2.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
What is the output of the expression 5 + 3 * 2?
11
8
16
10
3.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
How do you create a list in Python?
You create a list in Python by using the list() function, e.g., my_list = list(1, 2, 3).
You create a list in Python using parentheses, e.g., my_list = (1, 2, 3).
You create a list in Python using curly braces, e.g., my_list = {1, 2, 3}.
You create a list in Python using square brackets, e.g., my_list = [1, 2, 3].
4.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
What method would you use to add an item to the end of a list?
push()
append()
add()
insert()
5.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
What is the difference between a list and a tuple?
A list is defined with {}, while a tuple is defined with []
A list is immutable and defined with [], while a tuple is mutable and defined with ().
A list can only contain numbers, while a tuple can contain any data type.
A list is mutable and defined with [], while a tuple is immutable and defined with ().
6.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Charlotte has a list of her favorite books named 'my_list'. How does she access the first book in that list?
my_list.first()
my_list[1]
first(my_list)
my_list[0]
7.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Aria is playing a game where she needs to pick a random number between 1 and 10. What does the random.randint(1, 10) function do in this context?
It returns a random integer N such that N < 1 or N > 10.
It returns a random integer N such that 1 <= N <= 10.
It selects a random element from a list of integers between 1 and 10.
It generates a random float between 1 and 10.
Create a free account and access millions of resources
Similar Resources on Wayground
18 questions
Experimental Design

Quiz
•
6th - 8th Grade
20 questions
Music Genres

Quiz
•
6th - 12th Grade
20 questions
Google Drive

Quiz
•
7th - 8th Grade
20 questions
Season 5 #Spaic Python Weekly Quiz

Quiz
•
KG - Professional Dev...
21 questions
Coding Quiz

Quiz
•
3rd - 9th Grade
22 questions
Programming with Karel

Quiz
•
3rd - 8th Grade
18 questions
MYP Command Terms

Quiz
•
6th - 10th Grade
23 questions
Label Reading

Quiz
•
8th - 12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Other
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
24 questions
Flinn Lab Safety Quiz

Quiz
•
5th - 8th Grade
15 questions
Wren Pride and School Procedures Worksheet

Quiz
•
8th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade
10 questions
Converting Repeating Decimals to Fractions

Quiz
•
8th Grade