
VBIT CSM-A PYTHON QUIZ 3

Quiz
•
Computers
•
University
•
Medium
naresh kumar
Used 1+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
57 questions
Kahoot Exam 3 - List Concepts

Quiz
•
University
63 questions
CSS

Quiz
•
10th Grade - University
60 questions
IT 325 Midterm Reviewer

Quiz
•
University
60 questions
Джанго 3

Quiz
•
University
60 questions
Doors

Quiz
•
1st Grade - Professio...
56 questions
Flask Basics - 60 MCQs

Quiz
•
University
62 questions
ÔN TẬP Giữa Kỳ Môn Tin Học 8

Quiz
•
7th Grade - University
62 questions
Building and Securing a Small Network

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University