Python - Operators And Expressions
Questions No: 1/24

What will be the output of the following expression ?

x =4
print(x<<2)

Questions No: 2/24

Which of the following is not a logical operator?
निम्नलिखित में से कौन एक लॉजिकल ऑपरेटर नहीं है?

Questions No: 3/24

Which of the following will give error ?
निम्नलिखित में से कौन त्रुटि देगा?

Questions No: 4/24

which one is an Assignment Operator
एसाइन्मेंट आपरेटर है :

Questions No: 5/24

What will be the result of the expression : print(10 or 0) ?
print(10 or 0 ) : का परिणाम क्या होगा?

Questions No: 6/24

What will be the output of the following pseudocode, where ^ represent XOR operation ?

Integer a, b, c
set b = 4, a = 3
c =a ^ b
Print c

Questions No: 7/24

Which symbol is used for bitwise XOR operator
बिटवाइज़ XOR ऑपरेटर के लिए कौन सा प्रतीक प्रयोग किया जाता है?

Questions No: 8/24

What will the following code output?

a,b,c=3,5,6 
b,c,a=a,b,c
print(a,” ”,b,” ”,c)

Questions No: 9/24

Which of the following is an invalid statement in python.
निम्नलिखित में से कौन सा पायथन मे इनवैलिड स्टेटमेन्ट है ।

Questions No: 10/24

What will be the result of the expression: 15 and 10?
व्यंजक 15 और 10 का परिणाम क्या होगा?

Questions No: 11/24

What will the following code output?

a=5 
a*=10
print(a)

Questions No: 12/24

Which translator is used to convert assembly language into machine language?
असेंबली भाषा को मशीन भाषा में को बदलने के लिए किस अनुवादक का उपयोग किया जाता है

Questions No: 13/24

What will the following code output? print(4 & 5)
निम्नलिखित कोड आउटपुट क्या होगा? print(4 & 5)

Questions No: 14/24

what will the output of : print(5&3)
इसका आउटपुट क्या होगा: print(5&3)

Questions No: 15/24

What will the following code output? print(2 << 2)
निम्नलिखित कोड आउटपुट क्या होगा? print(2 << 2)

Questions No: 16/24

What will the following code output?

a=5;b=7	
b=a
print(a,” ”,b)

Questions No: 17/24

What will the value of a if a=~100
यदि a=~100 है तो a का मान क्या है?

Questions No: 18/24

Which of the following is not a relational opeartor in Python?
निम्नलिखित में से कौन पायथन में एक रिलेशनल ऑपरेटर नहीं है?

Questions No: 19/24

Which statement can be use to swap the values of an and b
a और b के मानों को स्वैप करने के लिए किस कथन का उपयोग किया जा सकता है?

Questions No: 20/24

What is the output of the following?
n=5
while n>0:
    n-=1
    if n==2:
        continue
    print(n,end=' ')

Questions No: 21/24

What will the following code output?

a,b,c=3,5,6 
b,c,a=a+1,b+2,c+3
print(a,” ”,b,” ”,c)

Questions No: 22/24

Which expression is equivalent to A=A*8
कौन सा व्यंजक A=A*8 के समतुल्य है

Questions No: 23/24

What will be the output of the following Python code snippet?

print(not(3>4))
print(not(1&1))

Questions No: 24/24

Give the output of: print(2^5)
इसका आउटपुट क्या होगा : print(2^5)