Search Header Logo

Tuples

Authored by Preethi Rajasekaran

Computers

4th Grade - Professional Development

Used 38+ times

Tuples
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Choose the correct about Tuples

Collection of items which are ordered

tuples cannot be changed

tuples uses square brackets

values of tuples can be accessed by indexing

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Choose the correct syntax of Tuple

tuple=[200,50]

tuple=(200,50)

tuple={200,50}

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How to get the index of any value of tuple

tuple.index(value)

tuple.index[value]

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

tuple1=(5,25,15,10,30)

print(max(tuple1))


What is printed in console?

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

tuple2=('p','s','r','d','b')

print(max(tuple2))

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

tuple1=(5,25,15,10,30, 'abc', 'pqr',2010)

print(max(tuple1))

Type error: max and min are not supported between instances of integer and string

2010, pqr

2010

pqr

7.

MULTIPLE SELECT QUESTION

1 min • 1 pt

True about max and min of tuples

can be applied with tuples having only integers or only alphabets

cannot be applied with tuples having only integers or only alphabets

cannot be applied to the mixed datatypes values in a tuple

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?