
data structure

Quiz
•
Computers
•
Professional Development
•
Hard
Shashi Weerasooriya
FREE Resource
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"}
Create a free account and access millions of resources
Similar Resources on Wayground
8 questions
Google Chrome working with Tabs

Quiz
•
Professional Development
13 questions
Accessories @ Apple

Quiz
•
Professional Development
10 questions
Mentes Brillantes

Quiz
•
Professional Development
10 questions
IOS

Quiz
•
Professional Development
15 questions
lastpy

Quiz
•
Professional Development
8 questions
Apple 2022

Quiz
•
3rd Grade - Professio...
8 questions
ITF - Quiz 2.5 - Apple macOS and iOS

Quiz
•
Professional Development
5 questions
data type

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade