If b is a dictionary, what does any(b) do?
Anonymous Quiz
45%
Returns True if any key of the dictionary is true
26%
Returns False if dictionary is empty
20%
Returns True if all keys of the dictionary are true
9%
Returns True if all keys of the dictionary are true
Which method can be used to return a string in upper case letters?
Anonymous Quiz
58%
upper()
18%
upperCase()
18%
uppercase()
7%
ToUpperCase()
What is the correct syntax to output the type of a variable or object in Python?
Anonymous Quiz
9%
print(typeOf(x))
77%
print(type(x))
5%
print(typeof x)
9%
print(typeof(x))
The `minsplit` parameter to split() specifies the minimum number of splits to make to the input string.
Anonymous Quiz
75%
True
25%
False
🤯4
What is the output of the following function call
Anonymous Quiz
18%
5
35%
15
21%
(5, 15)
26%
Syntax Error
👍1
Choose the correct function declaration of fun1() so that we can execute the function call successfully
Anonymous Quiz
20%
def fun1(**kwargs)
19%
No, it is not possible in Python
27%
def fun1(args*)
33%
def fun1(*data)
👍2
What will this code output?
Anonymous Quiz
18%
[(‘first’, 100), (‘second’, 200), (‘third’, 300)]
18%
Options: SyntaxError: invalid syntax
64%
{‘first’: 1, ‘second’: 2, ‘third’: 3}
What is the output of the set operation
Anonymous Quiz
28%
{‘Yellow’, ‘Orange’, ‘Red’, ‘Black’, ‘Green’, ‘Blue’}
41%
{‘Yellow’, ‘Orange’, ‘Black’, [“Blue”, “Green”, “Red”]}
31%
TypeError: update() doesn’t allow list as a argument.