Python Data Strucures

Python Data Strucures

Assessment

Quiz

Computers

11th Grade - University

Practice Problem

Medium

Created by

Kalyani Bedekar

Used 28+ times

FREE Resource

Student preview

quiz-placeholder

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is correct?

List is immutable and Tuple is mutable

List is mutable and Tuple is immutable

Both are Mutable.

Both are Immutable

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose a list with name arr, contains 5 elements. You can get the 2nd element from the list using:

arr[-2]

arr[2]

arr[-1]

arr[1]

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to get last element of list in python? Suppose we have list with name arr, contains 5 elements.

arr[0]

arr[5]

arr[last]

arr[-1]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of the following is immutable data type?

dict

int

set

list

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of the following is mutable data type?

tuple

str

int

set

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following program :

print((1, 2) + (3, 4))

(1, 2), (3, 4)

(4, 6)

(1, 2, 3, 4)

Invalid Syntax

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Can tuple be used as dictionary key in python?

True

False

Tuple is not used in python

None of the above

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?