page-banner
Chapter-6 (Part-1) Python Function
Q46.
निम्नलिखित पाइथन कोड का आउटपुट क्या होगा |

What will be the output of the following Python code?
from math import *
floor(3.7)
A. 3
B. 4
C. 3.0
D. None of these
View Answer
Q47.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

What will be the output of the following Python code?
def cube(x):
    return x * x * x
x = cube(3)
print(x)
A. 9
B. 3
C. 27
D. 30
View Answer
Q48.
निम्नलिखित कोड द्वारा कितनी संख्याएँ प्रिंट की जाएंगी?

How many numbers will be printed by the following code?
def fun(a,b):
    for x in range(a,b+1):
        if x%3==0:
            print(x, end=" ")
fun(100,120)
A. 7
B. 8
C. 6
D. 9
View Answer
Q49.
निम्नलिखित कोड क्या प्रिंट करता है?

What does the following code print?
x = 'mohan'
for i in range(len(x)):
    x[i].upper()
print(x)
A. mohan
B. MOHAN
C. Error
D. None of these
View Answer
Q50.
नीचे दिए गए प्रोग्राम का आउटपुट क्या है?

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))
A. 2
B. 3
C. The numbers are equal
D. None of the options
View Answer

Create Account