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
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
Q11.
निम्नलिखित में से कौन सा बिटवाइज़ XOR ऑपरेटर का प्रतिनिधित्व करता है?

Which of the following represents the bitwise XOR operator?
A. &
B. ^
C. |
D. !
View Answer
Q12.
निम्नलिखित का आउटपुट क्या है?

What is the output of the following?
x = ['ab', 'cd']
for i in x:
    i.upper()
print(x)
A. ['ab', 'cd']
B. ['AB', 'CD']
C. [None, None]
D. none of the mentioned
View Answer
Q13.
निम्नलिखित का आउटपुट क्या है?

What is the output of the following?
i = 1
while True:
    if i%3 == 0:
        break
    print(i)
    i+=1
A. 1 2
B. 1 2 3
C. error
D. none of the mentioned
View Answer
Q14.
निम्नलिखित स्टेटमेंट्स के बाद आउटपुट क्या होगा?

What will be the output after the following statements?
m = 28
n = 5
print(m // n)
A. 5.0
B. 6
C. 5
D. 4.0
View Answer
Q15.
निम्नलिखित स्टेटमेंट्स के बाद आउटपुट क्या होगा?

What will be the output after the following statements?
m = 33
if m > 33:
    print('A')
elif m == 30:
    print('B')
else:
    print('C')
A. C
B. B
C. A
D. 33
View Answer
Q16.
निम्नलिखित स्टेटमेंट्स के बाद आउटपुट क्या होगा?

What will be the output after the following statements?
m = 99
if m > 9 and m < 19:
    print('AA')
elif m > 19 and m < 39:
    print('BB')
elif m > 39 and m < 59:
    print('CC')
else:
    print('DD')
A. CC
B. DD
C. BB
D. AA
View Answer
Q17.
निम्नलिखित स्टेटमेंट्स के बाद आउटपुट क्या होगा?

What will be the output after the following statements?
m = 6
while m < 11:
    print(m, end='')
    m = m + 1
A. 6789
B. 5678910
C. 678910
D. 56789
View Answer
Q18.
निम्नलिखित स्टेटमेंट्स के बाद आउटपुट क्या होगा?

What will be the output after the following statements?
m, n = 2, 5
while n < 10:
    print(n, end=' ')
    m, n = n, m + n
A. 2 5
B. 5 8
C. 5 7 9
D. 5 7
View Answer
Q19.
एक ………………… स्टेटमेंट का उपयोग तब किया जाता है जब एक स्टेटमेंट की सिंटैक्टिक रूप से आवश्यकता होती है लेकिन आप नहीं चाहते कि कोई कोड निष्पादित हो।

A ………………… statement is used when a statement is required syntactically but you do not want any code to execute.
A. break
B. pass
C. continue
D. None of these
View Answer
Q20.
निम्नलिखित स्टेटमेंट्स के बाद आउटपुट क्या होगा?

What will be the output after the following statements?
for m in range(6,9):
    if m == 8:
        continue
    print(m, end=' ')
A. 6 7
B. 6 7 9
C. 6 7 8
D. 6 7 8 9
View Answer
Q21.
निम्नलिखित स्टेटमेंट्स के बाद आउटपुट क्या होगा?

What will be the output after the following statements?
m = 36 / 4 % 2 * 5**3
print(m)
A. 125.0
C. 36
D. 14.0
View Answer
Q22.
निम्नलिखित का आउटपुट क्या है?

What is the output of the following?
x = 123
for i in x:
    print(i)
A. 1 2 3
B. 123
C. Error
D. None of these
View Answer
Q23.
निम्नलिखित का आउटपुट क्या है?

What is the output of the following?
m = 0
while m < 5:
    print(m)
    m+=1
    if m == 3:
        break
    else:
        print(0)
A. 0 1 2 0
B. 0 1 2
C. 0 0 1 0 2
D. Error
View Answer
Q24.
निम्नलिखित स्टेटमेंट्स के बाद आउटपुट क्या होगा?

What will be the output after the following statements?
m = 20 * 10 // 30
n = 20 * 10.0 // 40
o = 20.0 * 10 / 50
print(m, n, o)
A. 6.5 5.0 4.5
B. 6.0 5.0 4
C. 5 6.0 4.0
D. 6 5.0 4.0
View Answer
Q25.
पायथन भाषा में, निम्नलिखित में से कौन सा ऑपरेटर k को घात 1 तक बढ़ाने के लिए सही विकल्प है?

In Python language, which of the following operators is the correct option for raising k to the power 1?
A. k ^ 1
B. k ** 1
C. k ^^ 1
D. k ^ * 1
View Answer
Q26.
निम्नलिखित में से कौन सा पायथन में एक वैध अंकगणितीय ऑपरेटर है?

Which of the following is a valid arithmetic operator in Python?
A. //
B. ?
C. <
D. and
View Answer
Q27.
निम्नलिखित स्टेटमेंट्स के बाद आउटपुट क्या होगा?

What will be the output after the following statements?
m = 2
for n in range(3, 15, 5):
    n += m + 2
print(n)
A. 14
B. 16
C. 17
D. 19
View Answer
Q28.
निम्नलिखित का आउटपुट क्या है?

What is the output of the following?
while range(1, 7, -1):
    if n == 2:
        continue
    print(n)
A. 5 4 3 1 0
B. 4 3 1 0
C. 4 3 2
D. None of these
View Answer
Q29.
पायथन भाषा में कोड के ब्लॉक को परिभाषित करने के लिए निम्न में से किसका प्रयोग किया जाता है?

Which of the following is used to define a block of code in Python language?
A. try
B. brackets
C. indentation
D. catch
View Answer
Q30.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

What will be the output of the following Python code?
i = 4
while True:
    if i%0O7 == 0:
        break
    print(i)
    i += 1
A. 1 2 3 4 5 6
B. 1 2 3 4 5 6 7
C. error
D. 4 5 6
View Answer
Q31.
निम्नलिखित में से किस ऑपरेटर की सर्वोच्च प्राथमिकता है?

Which of the following operators has the highest precedence?
A. &
B. *
C. not
D. +
View Answer
Q32.
__________ तुरंत एक लूप को पूरी तरह से समाप्त कर देता है।

__________ immediately terminates a loop entirely.
A. break
B. continue
C. pass
D. none of these
View Answer
Q33.
मान लीजिये की 4 बाइनरी में 100 है और 11 1011 है, तो निम्नलिखित बिटवाइज ऑपरेटर का आउटपुट क्या होगा?

Let us assume 4 is 100 in binary and 11 is 1011. What is the output of the following bitwise operators?
a = 4
b = 11
print(a | b)
print(a >> 2)
A. 15 1
B. 14 1
C. 17 2
D. 16 2
View Answer
Q34.
निम्नलिखित का आउटपुट क्या होगा?

What is the output of the following?
i = 2
while True:
    if i%3 == 0:
        break
    print(i,end=" " )
    i += 2
A. 2 4 6 8 10…...
B. 2 4
C. 2 3
D. error
View Answer
Q35.
निम्नलिखित का आउटपुट क्या होगा?

What is the output of the following?
for i in range(10):
    if i == 5:
        break
    else:
        print(i)
else:
    print("Here")
A. 0 1 2 3 4 Here
B. 0 1 2 3 4 5 Here
C. 0 1 2 3 4
D. 1 2 3 4 5
View Answer
Q36.
निम्नलिखित का आउटपुट क्या होगा?

What is the output of the following code?
a = 15
b = 6
print(a and b)
print(a or b)
A. True True
B. False False
C. 6 15
D. 15 6
View Answer
Q37.
निम्नलिखित कोड का आउटपुट क्या होगा?

What is the output of
print((-3)**2)
A. -9
B. 6
C. -6
D. 9
View Answer
Q38.
निम्नलिखित कोड सेगमेंट का आउटपुट क्या होगा?

What will following code segment print?
a = True
b = False
c = False
if a or b and c:
    print("HELLO")
else:
    print("hello")
A. HELLO
B. hello
C. HellO
D. None of these
View Answer
Q39.
निम्नलिखित का आउटपुट क्या होगा?

What is the output of the following?
x = 'abcd'
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
Q40.
निम्नलिखित का आउटपुट क्या होगा?

What is the output of the following code?
a = 50
b = a = a*5
print(b)
A. 250
B. 10
C. 50
D. Syntax Error
View Answer
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
Q46.
निम्नलिखित स्टेटमेंट का आउटपुट क्या होगा ?

What will be the output after the following statements?
for i in range(1,6):
    print(i, end=' ')
    if i == 3:
        break
A. 1 2
B. 1 2 3
C. 1 2 3 4
D. 1 2 3 4 5
View Answer
Q47.
निम्नलिखित को हल करने पर आउटपुट क्या होगा ?

What value does the following expression evaluate to?
print(5 + 8 * ((3* 5)-9) /10)
A. 9.0
B. 9.8
C. 10
D. 10.0
View Answer
Q48.
निम्नलिखित को हल करने पर आउटपुट क्या होगा ?

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
Q49.
निम्नलिखित एक्सप्रेशन का आउटपुट क्या होगा?

What will be the output of the following expression?
x = 4
print(x << 2)
A. 4
B. 16
C. 6
D. 2
View Answer
Q50.
निम्नलिखित एक्सप्रेशन का आउटपुट क्या होगा ?

What will be the output of the following expression?
print(7//2)
print(-7//2)
A. 3 -3
B. 4 -4
C. 3 -4
D. 3 3
View Answer
Q51.
निम्नलिखित का आउटपुट क्या होगा ?

What is the output of the following ?
y = 'klmn'
for i in range(len(y)):
    print(y)
A. klmn klmn klmn klmn
B. k
C. k k k
D. None of these
View Answer
Q52.
"for loop" के अंदर की सामग्री को इसके द्वारा अलग किया जाता है:

The contents inside the “for loop” are separated by
A. colon
B. comma
C. semicolon
D. hyphen
View Answer
Q53.
निम्नलिखित पायथन कोड पर विचार करें

Let consider the following Python code
a = True
b = False
c = False
if a or b and c:
    print("TRUE")
else:
    print("FALSE")
A. TRUE
B. FALSE
C. Error in Code
D. None of these
View Answer
Q54.
निम्नलिखित में से किसकी एक्सप्रेशन में सर्वोच्च प्राथमिकता है?

Which one of the following has the highest precedence in the expression?
A. Exponential
B. Addition
C. Multiplication
D. Parentheses
View Answer
Q55.
एडिशन और सब्ट्रेक्सन का एक ही पूर्वता स्तर है।

Addition and Subtraction has the same precedence level.
A. True
B. False
C. Can’t Say
D. None of these
View Answer
Q56.
निम्नलिखित स्टेटमेंट का आउटपुट क्या होगा ?

What will be the output after the following statements?
x = 2
if x < 5:
    print(x)
else:
    pass
A. 2 3 4
B. 1 2 3 4
C. 2
D. None of these
View Answer
Q57.
Python में नेस्टेड if-else की अनुमति है।

nested if-else are allowed in Python.
A. True
B. False
C. Can’t say
D. None of these
View Answer
Q58.
स्टेटमेंट का आउटपुट क्या है:

What is the output of the expression:
3*1**3
A. 27
B. 9
C. 3
D. 1
View Answer
Q59.
निम्नलिखित प्रोग्राम का आउटपुट क्या है

What is the output of the following program
i=0
while i < 3:
    print(i)
    i+=1
else:
    print(0)
A. 0 1 2 3 0
B. 0 1 2 0
C. 0 1 2
D. Error
View Answer
Q60.
निम्नलिखित कोड सेगमेंट क्या प्रिंट करेगा ?

What will following code segment print ?
a = True
b = False
c = False
if not a or b:
    print(1)
elif not a or not b and c:
    print (2)
elif not a or b or not b and a:
    print (3)
else:
    print (4)
A. 1
B. 3
C. 2
D. 4
View Answer
Q61.
निम्नलिखित पाइथन कोड का आउटपुट क्या होगा ?

What is the output of following Python code?
print(5*(2//3))
A. 3
B. 3.3
D. Error
View Answer
Q62.
................. ऑपरेटर दो स्ट्रिंग को जोड़ने के लिए प्रयोग किया जाता है

The operator used for concatenating two strings
A. +
B. //
C. *
D. =
View Answer
Q63.
एरर चेकिंग के लिए किस स्टेटमेंट का प्रयोग होता है

Statement used for error checking
A. assert
B. bug
C. loop
D. for
View Answer
Q64.
विभाजन के बाद शेष की गणना के लिए प्रयोग किया जाने वाला ऑपरेटर

The operator used to calculate remainder after division
A. //
B. /
C. %
D. *
View Answer
Q65.
..................स्टेटमेंट प्रोग्राम को बिना कोई क्रिया किये कोड के पीस से गुजरने देता है |

The __________ statement lets the program go through the piece of code without performing any action.
A. break
B. continue
C. pass
D. assert
View Answer
Q66.
............. ऑपरेटर दिए गये आइटमो की संख्या के लिए एक सूची दोहराता है |

__________ operator repeats a list for the given number of items.
A. for
B. while
C. range
D. None of these
View Answer
Q67.
आउटपुट निर्धारित करें |

Determine the output:
for i in range(20,30,10):
    j=i/2
    print(j)
A. 10 15
B. 10.0 15.0
C. 10.0
D. None of these
View Answer
Q68.
निम्नलिखित एक्सप्रेशन का आउटपुट क्या होगा ?

What will be the output of the following expression ?
x = 14
print(x>>2)
A. 14
B. 1
C. 3
D. 2
View Answer
Q69.
किसी विशेष टास्क को दोहराने के लिए, हम .......... का उपयोग करते है |

To repeat a particular task, we use __________.
A. Input
B. Loop
C. Output
D. Condition
View Answer
Q70.
निम्नलिखित का आउटपुट क्या होगा ?

What is the output of the following ?
x = 'abcd'
for i in range(len(x)):
    i.upper()
    print(x)
A. a b c d
B. 0 1 2 3
C. error
D. none of the mentioned
View Answer