VBIT CSM-A PYTHON QUIZ 3

VBIT CSM-A PYTHON QUIZ 3

University

60 Qs

quiz-placeholder

Similar activities

DATA STRUCTURES

DATA STRUCTURES

University

60 Qs

EXAM

EXAM

University

60 Qs

Python Programming with modules

Python Programming with modules

University

61 Qs

săn đây CSI104

săn đây CSI104

University

60 Qs

Computer Skills - Chapter 1

Computer Skills - Chapter 1

University

60 Qs

Computer ٍSkills- Chapter 3

Computer ٍSkills- Chapter 3

1st Grade - University

62 Qs

แนวข้อสอบ 2567

แนวข้อสอบ 2567

6th Grade - University

60 Qs

Pengenalan TIK

Pengenalan TIK

University

61 Qs

VBIT CSM-A PYTHON QUIZ 3

VBIT CSM-A PYTHON QUIZ 3

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

naresh kumar

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

60 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

Which of the following are true for objects of Python’s set type:

The order of elements in a set is significant.

A given element can’t appear in a set more than once.

Sets are mutable.

A set may contain elements that are mutable.

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will be the output of the following Python code? *

x={1,3,5}

y={2,4,6}

x+y

{1,3,5,2,4}

{1,3,5,2,4,6}

Error as the duplicate item 6 is present in both sets

Error as unsupported operand type(s) for +: 'set' and 'set'

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following functions will return the symmetric difference between two sets, x and y? *

x | y

x ^ y

x & y

x – y

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will be the output of the following Python code?

x = {4,7,8,8,9}

print(x)

{4, 7, 9}

{8, 9, 4, 7}

{4, 7, 8, 8, 9}

Error

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following statements is used to create an empty set?

{ }

set()

[ ]

( )

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will be the output of the following Python code?

x = {6,5}

y = {2,3,5,6}

x<y

{1,2}

True

False

Invalid operation

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The _________ function removes the first element of a set and the last element of a list.

remove

pop

discard

dispose

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?

Discover more resources for Computers