Tuples

Tuples

11th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

Internet

Internet

6th - 12th Grade

13 Qs

Evaluación Final UNDECIMO 11

Evaluación Final UNDECIMO 11

11th Grade

10 Qs

网络与通讯

网络与通讯

12th Grade

15 Qs

Access - Lesson 14

Access - Lesson 14

9th - 12th Grade

10 Qs

مراجعة حاسب2 ثلاث وحدات

مراجعة حاسب2 ثلاث وحدات

11th Grade

16 Qs

4.6.4 Logic Gates

4.6.4 Logic Gates

10th Grade - Professional Development

15 Qs

CCEA Digital Technology Chapter 14 Multimedia Applications

CCEA Digital Technology Chapter 14 Multimedia Applications

11th Grade

20 Qs

Wee Word Intro

Wee Word Intro

7th - 12th Grade

12 Qs

Tuples

Tuples

Assessment

Quiz

Computers

11th - 12th Grade

Hard

Created by

Thomas Martinez

FREE Resource

AI

Enhance your content

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following tuple operation

(aTuple = (100, 200, 300, 400, 500)

aTuple.pop(2)

print(aTuple)

(100, 200, 400, 500)

(100, 300, 400, 500)

AttributeError

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the type of the following variable

aTuple = ("Orange")

print(type(aTuple))

list

tuple

array

str

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select which is true for Python tuple

A tuple maintains the order of items

A tuple is unordered

We can change the tuple once created

In tuples memory is overallocated

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following

tuple1 = (1120, 'a')

print(max(tuple1))

TypeError

1120

‘a’

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code

aTuple = (100, 200, 300, 400, 500)

aTuple[1] = 800

print(aTuple)

TypeError

(100, 800, 200, 300, 400, 500)

(800, 100, 200, 300, 400, 500)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following

aTuple = (10, 20, 30, 40, 50, 60, 70, 80)

print(aTuple[2:5], aTuple[:4], aTuple[3:])

(30, 40, 50) (10, 20, 30, 40) (40, 50, 60, 70, 80) (20, 30, 40, 50) (

10, 20, 30, 40) (30, 40, 50, 60, 70, 80)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the correct way to access value 20 from the following tuple

aTuple = ("Orange", [10, 20, 30], (5, 15, 25))

aTuple[1:2][1]

aTuple[1:2](1)

aTuple[1:2][1]

aTuple[1][1]

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?