Search Header Logo

Q4_Quiz2_CompSciLoyalty

Authored by michael manalo

Computers

7th Grade

Used 4+ times

Q4_Quiz2_CompSciLoyalty
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

21 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

It is a collection which is ordered and unchangeable, and written with round brackets.

List

Tuple

Set

Dictionary

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Tuple items are ordered, unchangeable, and allow duplicate values.

True

False

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Since tuples are indexed, they cannot have items with the same value.

True

False

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Tuples are unchangeable, meaning that we cannot change, but we can add or remove items after the tuple has been created.

True

False

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

To determine how many items a tuple has, use the _____ function.

type()

tuple()

append()

len()

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

You can access tuple items by referring to the _____, inside square brackets.

index number

key

value

data type

7.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

To print the fourth item in the tuple below, what should be the code?

car = ("Mazda", "Ford", "Nissan", "Cadillac", "BMW", "Ferrari")

print(car[4])

print(car[3])

print(thistuple[3])

print([car:4])

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?