Question
x = ['ab', 'cd']
print(map(len, x))
a.
[‘ab’, ‘cd’].
b.
[2, 2].
c.
[‘2’, ‘2’].
d.
none of the mentioned
Posted under Python
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What is the output of the following?
Similar Questions
Discover Related MCQs
Q. Is Python code compiled or interpreted?
View solution
Q. Which of these is the definition for packages in Python?
View solution
Q. Which of these is false about a package?
View solution
Q. Which of these definitions correctly describes a module?
View solution
Q. Which of the following is not an advantage of using modules?
View solution
Q. Program code making use of a given module is called a ______ of the module.
View solution
Q. ______ is a string literal denoted by triple quotes for providing the specifications of certain program elements.
View solution
Q. Which of the following is true about top-down design process?
View solution
Q. In top-down design every module is broken into same number of submodules? True or False?
View solution
Q. What is returned by math.ceil(3.4)?
View solution
Q. What is the value returned by math.floor(3.4)?
View solution
Q. What is the output of print(math.copysign(3, -1))?
View solution
Q. What is displayed on executing print(math.fabs(-3.4))?
View solution
Q. Is the output of the function abs() the same as that of the function math.fabs()?
View solution
Q. What is the value returned by math.fact(6)?
View solution
Q. What is the value of x if x = math.factorial(0)?
View solution
Q. What is math.factorial(4.0)?
View solution
Q. What is the output of print(math.factorial(4.5))?
View solution
Q. What is math.floor(0o10)?
View solution
Q. What does the function math.frexp(x) return?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Python? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!
Operating System
Dive deep into the core of computers with our Operating System MCQs. Learn about...
Software Engineering
Learn about the systematic approach to developing software with our Software...