page-banner
Chapter-4 Operator, Expressions & Python Statement
Q6.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

What will be the output of the following Python code?
x = 'GyanXp'
for i in range(x):
    print(i)
A. a b c d
B. 0 1 2 3
C. error
D. none of the mentioned
View Answer
Q7.
इस फ़ंक्शन के लिए निम्न में से किसका सही मूल्यांकन किया गया है?

Which of the following is correctly evaluated for this function?
pow(x,y,z)
A. (x**y) / z
B. (x / y) * z
C. (x**y) % z
D. (x / y) / z
View Answer
Q8.
इस प्रोग्राम का आउटपुट क्या होगा?

What will be the output of this program?
print(int(6 == 6.0) * 3 + 4 % 5)
A. 22
B. 18
C. 20
D. 7
View Answer
Q9.
इस प्रोग्राम का आउटपुट क्या होगा?

What will be the output of this program?
a = 0
i = 1
while(a < 3):
    if i < 4:
        i = a * i + 5
    a = a + 1
print(i)
A. 12
B. 4
C. 11
D. 5
View Answer
Q10.
यह प्रोग्राम कितनी बार लूप चलाएगा?

How many times will this program run the loop?
a = 2
while(a > -100):
    a = a - 1
    print(a)
A. Infinite
B. 102
C. 2
D. 1
View Answer

Create Account