data structure

data structure

Professional Development

10 Qs

quiz-placeholder

Similar activities

Help customers see the value of iPad

Help customers see the value of iPad

Professional Development

15 Qs

Tecnología

Tecnología

Professional Development

10 Qs

Moringa JavaScript Arrays

Moringa JavaScript Arrays

5th Grade - Professional Development

10 Qs

Python List and Tuples

Python List and Tuples

Professional Development

15 Qs

Exploring Frozen Products

Exploring Frozen Products

Professional Development

10 Qs

Mac mini +iPad Mini

Mac mini +iPad Mini

Professional Development

10 Qs

operators

operators

Professional Development

5 Qs

Metricas ACSE

Metricas ACSE

Professional Development

12 Qs

data structure

data structure

Assessment

Quiz

Computers

Professional Development

Hard

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?