adplus-dvertising

Welcome to the Dictionary and Built in Functions MCQs Page

Dive deep into the fascinating world of Dictionary and Built in Functions with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of Dictionary and Built in Functions, a crucial aspect of Python. In this section, you will encounter a diverse range of MCQs that cover various aspects of Dictionary and Built in Functions, from the basic principles to advanced topics. Each question is thoughtfully crafted to challenge your knowledge and deepen your understanding of this critical subcategory within Python.

frame-decoration

Check out the MCQs below to embark on an enriching journey through Dictionary and Built in Functions. Test your knowledge, expand your horizons, and solidify your grasp on this vital area of Python.

Note: Each MCQ comes with multiple answer choices. Select the most appropriate option and test your understanding of Dictionary and Built in Functions. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

Dictionary and Built in Functions MCQs | Page 12 of 13

Explore more Topics under Python

Q111.
What is the output of the function shown below?
oct(7)
oct(โ€˜7โ€™)
Discuss
Answer: (c).0o7
Error
Q112.
What is the output of the below program?
def printMax(a, b):
    if a > b:
        print(a, 'is maximum')
    elif a == b:
        print(a, 'is equal to', b)
    else:
        print(b, 'is maximum')
printMax(3, 4)
Discuss
Answer: (c).4 is maximum
Q113.
What is the output of the below program ?
x = 50
def func(x):
    print('x is', x)
    x = 2
    print('Changed local x to', x)
func(x)
print('x is now', x)
Discuss
Answer: (a).x is now 50
Q114.
What is the output of the below program?
x = 50
def func():
    global x
    print('x is', x)
    x = 2
    print('Changed global x to', x)
func()
print('Value of x is', x)
Discuss
Answer: (b).x is 50
Changed global x to 2
Value of x is 2
Q115.
What is the output of below program?
def say(message, times = 1):
    print(message * times)
say('Hello')
say('World', 5)
Discuss
Answer: (a).Hello
WorldWorldWorldWorldWorld
Discuss
Answer: (c).a is 3 and b is 7 and c is 10
a is 25 and b is 5 and c is 24
a is 100 and b is 5 and c is 50
Q117.
What is the output of below program?
def maximum(x, y):
    if x > y:
        return x
    elif x == y:
        return 'The numbers are equal'
    else:
        return y
 
print(maximum(2, 3))
Discuss
Answer: (b).3
Discuss
Answer: (d).All of the mentioned
Q119.
Lambda is a statement.
Discuss
Answer: (b).False
Q120.
Lambda contains block of statements.
Discuss
Answer: (b).False

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!