page-banner
Chapter-4 Operator, Expressions & Python Statement
Q1.
पायथन में प्राथमिकता का क्रम क्या है?

What is the order of precedence in Python?
i) Parentheses
ii) Exponential
iii) Multiplication
iv) Division
v) Addition
vi) Subtraction
A. ii,i,iii,iv,v,vi
B. ii,i,iv,iii,v,vi
C. i,ii,iii,iv,vi,v
D. i,ii,iii,iv,v,vi
View Answer
Q2.
निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा?

What will be the output of the following code snippet?
print(2**3 + (5 + 6)**(1 + 1))
A. 129
B. 8
C. 121
D. None of these
View Answer
Q3.
निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा?

What will be the output of the following code snippet?
count = 0
while(True):
    if count % 3 == 0:
        print(count, end = " ")
    if(count > 15):
        break
    count += 1
A. 0 1 2 …………….15
B. Infinite Loop
C. 0 3 6 9 12 15
D. 0 3 6 9 12
View Answer
Q4.
निम्नलिखित कोड सेगमेंट क्या प्रिंट करेगा?

What will following code segment print?
if True or True:
    if False and True or False:
        print('A')
    elif False and False or True and True:
        print('B')
    else:
        print('C')
else:
    print('D')
A. A
B. B
C. C
D. D
View Answer
Q5.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

What will be the output of the following Python code?
x = (i for i in range(3))
for i in x:
    print(i)
A. 0 1 2
B. error
C. 0 1 2 0 1 2
D. none of the mentioned
View Answer