
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
PAA10503-Q4-Chap4
Quiz
•
University - Professi...
10 questions
Kuiz Keselamatan Siber KPM
Quiz
•
Professional Development
15 questions
Python Skills
Quiz
•
1st Grade - Professio...
10 questions
Ai BG-Q#
Quiz
•
Professional Development
10 questions
Senz AIoT Savants - ML & C++
Quiz
•
Professional Development
11 questions
Java Fundamentals
Quiz
•
Professional Development
14 questions
Presentation Software
Quiz
•
10th Grade - Professi...
10 questions
04 - Python - Lists
Quiz
•
University - Professi...
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...