COMPUTER PROGRAMMING PYTHON MCQ
COMPUTER PROGRAMMING PYTHON MCQ
CAT 1 QUESTIONS
MCQ QUESTIONS
8. What is the output of the line of code shown below, if s1= {1, 2, 3}?
s1.issubset(s1)
a) True
b) False
c) Error
d) No output
Ans :- A
20. If a is a dictionary with some key-value pairs, what does a.popitem() do?
a) Removes an arbitrary element
b) Invalid method for dictionary
c) Removes all the key-value pairs
d) Removes the key-value pair for the key given as an argument
Ans :- A