page-banner
Python M3-R5.1 MCQs SET-12
Q6.
किसी समस्या को चरण दर चरण हल करने के तरीके को __________ के रूप में जाना जाता है।

The way for solving a problem step by step is known as __________.
A. Design
B. Planning
C. Algorithm
D. Execution
View Answer
Q7.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

What will be the output of the following Python code ?
def calc(x):
    r=2*x**2
    return r
print(calc(5))
A. Error
B. 50
C. 100
D. 20
View Answer
Q8.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

What will be the output of the following Python code ?
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)
A. 3
B. 4
C. 4 is maximum
D. None of the mentioned
View Answer
Q9.
निम्नलिखित expression किस मान का मूल्यांकन करता है?

What value does the following expression evaluate to ?
x = 5
while x < 10:
    print(x, end='')
A. Closed loop
B. One time loop
C. Infinite loop
D. Evergreen loop
View Answer
Q10.
निम्नलिखित कोड का परिणाम क्या है?

What is the output of the following code ?
x = 50
def func(x):
    x = 2
func(x)
print('x is now', x)
A. x is now 50
B. x is now 2
C. x is now 100
D. Error
View Answer

Create Account