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

What will be the output after the following statements?
a = 0
b = 3
while a + b < 8:
    a += 1
    print(a, end=' ')
A. 0 1 2 3 4
B. 1 2 3 4 5 6
C. 1 2 3 4 5
D. None of these
View Answer
Q42.
निम्नलिखित कोड का आउटपुट क्या होगा?

What does the following code print?
if 2 + 5 == 8:
    print("TRUE")
else:
    print("FALSE")
print("TRUE")
A. TRUE
B. TRUE FALSE
C. TRUE TRUE
D. FALSE TRUE
View Answer
Q43.
निम्नलिखित एक्सप्रेशन का आउटपुट क्या होगा?

What will be the output of the following expression?
a = 2
b = 8
print(a | b)
print(a >> 1)
A. 10 0
B. 10 2
C. 2 2
D. 10 1
View Answer
Q44.
निम्नलिखित एक्सप्रेशन का आउटपुट क्या होगा?

What will be the output of the following Python Code?
x = 'abcd'
for i in x:
    print(i.upper())
A. a B C D
B. a b c d
C. Error
D. A B C D
View Answer
Q45.
निम्नलिखित कोड क्या प्रिंट करेगा ?

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

Create Account