Python Training

Python Training

University

14 Qs

quiz-placeholder

Similar activities

DBMS

DBMS

University

10 Qs

Relational Data

Relational Data

University

9 Qs

Idiomatic Python

Idiomatic Python

University

13 Qs

Python basic 2

Python basic 2

University

15 Qs

Python Basic Quiz 01

Python Basic Quiz 01

University

17 Qs

Q2 - Python

Q2 - Python

University

10 Qs

Knowledge Knockout[Quiz Round](2nd-4th years)

Knowledge Knockout[Quiz Round](2nd-4th years)

University

15 Qs

PROGRAMMING IN PYTHON - UNIT II - TEST 2 - MCQS

PROGRAMMING IN PYTHON - UNIT II - TEST 2 - MCQS

University

15 Qs

Python Training

Python Training

Assessment

Quiz

Computers

University

Hard

Created by

Devanjali Relan

Used 2+ times

FREE Resource

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Set is:

Mutable

Distinct

Unordered

Sorted

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code?

s={1,2,3}

s[0]=10

print(s)

{10,2,3}

{1,2,10}

{1,2,3}

TypeError

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following code?

111

123

321

Runtime error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is mutable?

List

String

Tuple

Set

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code?

nums=list({1:'one',2:'two'})

print(nums)

Syntex error

[1, 2]

[‘one', ‘two']

Runtime error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an invalid list object?

list(“Hello”)

[10, 1.234. 2+3j, ‘Python']

[(1,2), (3,4)]

All are valid

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If ['one', 'four', 'three', 'two'] is a list object, the sort() function will return _____.

['four', 'three', 'two', 'one']

['four', 'one', 'three', 'two']

['one', 'two', 'three', 'four']

None of the above

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?