
data structure
Authored by Shashi Weerasooriya
Computers
Professional Development

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
Print the second item in the fruits list.
fruits = ["apple", "banana", "cherry"]
print(.................)
fruits(2)
fruits(1,2)
fruits[2]
fruit[1]
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Change the value from "apple" to "kiwi", in the fruits list.
fruits = ["apple", "banana", "cherry"]
.....................=.........................
fruit[0]='kiwi'
fruit[1]='kiwi'
fruits[1]='kiwi'
fruits[0]='kiwi'
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Use the append method to add "orange" to the fruits list.
fruits = ["apple", "banana", "cherry"]
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Use the correct syntax to print the first item in the fruits tuple.
fruits = ("apple", "banana", "cherry")
print(...........................)
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Use the correct syntax to print the number of items in the fruits tuple.
fruits = ("apple", "banana", "cherry")
print(...................)
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Use negative indexing to print the last item in the tuple.
fruits = ("apple", "banana", "cherry")
print()
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Use the discard method to remove "banana" from the fruits set.
fruits = {"apple", "banana", "cherry"}
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
CodeHS - Intro to Python - Conditionals Quiz
Quiz
•
9th Grade - Professio...
13 questions
Python Module 1
Quiz
•
University - Professi...
10 questions
DP-100 day 3
Quiz
•
University - Professi...
10 questions
Функции, модули random/time Модуль 3 PS1
Quiz
•
Professional Development
12 questions
Guess the Controller 3
Quiz
•
KG - Professional Dev...
15 questions
JF UIT 2022 - Game 2
Quiz
•
Professional Development
10 questions
it-квиз
Quiz
•
Professional Development
10 questions
How much do you really know about Augmented Reality?
Quiz
•
Professional Development
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 Computers
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...