Correct Answer: Lists the attribute names of an object.
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Python Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Python MCQ Questions
Which will return the 10th element of a list, or None if no such element exists?
What is a list comprehension?
When opening a file, what is the difference between text mode and binary mode?
What gets printed: a = [0] b = [a] *4 a[0] = 2 print(b)
What is a persistent dictionary?
Correct answer from the given options. double = lambda x: x * 2 mt = [1, 5, 4, 6, 8, 11, 3, 12] ns = list(filter(lambda x: (x%2 == 0) , mt)) print(double(6)) print(ns)
This question is based on the graphic shown below. Which option will be the correct output of the given Python code?
Output of the following Python code? print (5/2) print (-5/2) print (5.0/2) print (-5.0/2)
Output of the following Python code. import collections c1 = { 'a' : 1, 'b' : 2 } c2 = { 'b' : 3, 'c' : 4 } c3 = { 'f' : 5 } ch = collections.ChainMap(c1, c2) #print (ch.maps) ch1 = ch.new_child(c3) #print (ch1.maps) print (ch1['b']) ch1.maps = reversed(ch1.maps) print (ch1['b'])
Output of the following Python code? def ps(a,b): s = a + b return (s, a) s, a = ps(0,4) a=a+4 s1 = 1 i = 1 while i <= a: s1 = s1 + i i = i+1 print(s1)