O Level - Operators Expressions And Python Statements
Questions No: 1/50

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

x = 'abcd'
for i in range(len(x)):
    print(x)
    x = 'a'

Questions No: 2/50

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

Questions No: 3/50

What will be the output of the following Python code?

from math import pow
print(math.pow(2,3))

Questions No: 4/50

The contents inside the "for loop" are separated by?
लूप के अंदर की सामग्री को _____ द्वारा अलग किया जाती है?

Questions No: 5/50

What will be the output of this code? print(2 ** 3)
इस कोड का आउटपुट क्या होगा? print(2 ** 3)

Questions No: 6/50

What will be the output of the following Python code?

i = 1
while True:
    if i%2 == 0:
        break
    print(i)
    i += 2

Questions No: 7/50

What will be the value of p when p= int(17/2+11.5)?
p का ​​मान क्या होगा जब p= int(17/2+11.5)?

Questions No: 8/50

What will be the output of the following Python code?

i = 1
while True:
    if i%7 == 0:
        break
    print(i)
    i += 1

Questions No: 9/50

What will be the value of the following Python expression?

print(4+2**5//10)

Questions No: 10/50

What will be the output of the following Python code?

i = 0
while i < 3:
    print(i)
    i += 1
else:
    print(0)

Questions No: 11/50

What will be the output after the following statements?

a = 0
b = 3
while a + b < 8:
       a += 1
       print(a, end='')

Questions No: 12/50

Give the output of : print((range(4)))
print((range(4))) का आउटपुट क्या होगा

Questions No: 13/50

What will be the output of the following Python code?

i = 2
while True:
    if i%3 == 0:
        break
    print(i)
    i += 2

Questions No: 14/50

which one is a mathematical function?
कौन सा एक गणितीय फंक्शन है?

Questions No: 15/50

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

Questions No: 16/50

What will be the output of the following Python code?

 x = "abcdef"
i = "a"
while i in x:
    print('i', end = " ")

Questions No: 17/50

What will be the value of the following Python expression?

print(float(4+int(2.39)%2))

Questions No: 18/50

What will be the output of the following Python expression?

print(4.00/(2.0+2.0))

Questions No: 19/50

For two objects x and y, the expression x is y will yield True, if and only if
दो वस्तुओं x और y के लिए, व्यंजक x, y है, सत्य प्राप्त करेगा, यदि और केवल यदि

Questions No: 20/50

What is the return value of trunc()?
trunc() फंक्शन क्या रिटर्न करेगा ?

Questions No: 21/50

What will be the output of the following Python statement?

print(chr(ord('b')+1))

Questions No: 22/50

Which of the following is a valid arithmetic operator in Python ?
निम्नलिखित में से कौन पायथन में एक मान्य अंकगणित ऑपरेटर है?

Questions No: 23/50

_____ is not used as loop in python
पायथन में लूप के रूप में _____ का उपयोग नहीं किया जाता है

Questions No: 24/50

What will return by math.trunc() function in python
पायथन में Math.trunc() फ़ंक्शन द्वारा क्या लौटाया जाएगा

Questions No: 25/50

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

Questions No: 26/50

what will be the output of :print( 22//3+3/3)
निम्नलिखित कोड का आउटपुट क्या होगा? print( 22//3+3/3)

Questions No: 27/50

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

Questions No: 28/50

What will be the output of the following expression

x=14
print(x>>2)


Questions No: 29/50

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

Questions No: 30/50

What will be the value of X in the following Python expression?

x = 2+9*((3*12)-8)/10

Questions No: 31/50

What does the following code will print ?

x=5
if x>3:
    print("Hello")

Questions No: 32/50

which function is used to get the ASCII value of any Character in PYthon?
पायथन में किसी भी वर्ण का ASCII मान प्राप्त करने के लिए किस फ़ंक्शन का उपयोग किया जाता है?

Questions No: 33/50

What will be the output after the following statements?

for i in range(1,6):
    print(i, end='')
    if i == 3:
        break

Questions No: 34/50

How many times will loop run? for a in "56247839"
लूप कितनी बार चलेगा? for a in "56247839"

Questions No: 35/50

Which of the following function returns the ASCII/Unicode value character?
निम्नलिखित में कौन सा फक्शन ASCII/Unicode वैल्यू कैरेक्टर रिटर्न करता है?

Questions No: 36/50

What will be the output of following code

import math
print(math.pi)

Questions No: 37/50

What is the output of the code print (9//2)
कोड प्रिंट का आउटपुट क्या है (9//2)

Questions No: 38/50

What is the the value of x when x=math.factorial(0)
x का मान क्या है जब x=math.factorial(0)

Questions No: 39/50

How many control statements python supports?
पाइथॉन कितने नियंत्रण कथनों का समर्थन करता है?

Questions No: 40/50

What will be the output of the following Python code?

for i in range(0):
    print(i)

Questions No: 41/50

What will be the output of the following Python code?

i = 1
while False:
    if i%2 == 0:
        break
    print(i)
    i += 2

Questions No: 42/50

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

Questions No: 43/50

___ in Python is a counter-controlled loop.
पायथन में काउन्टर कन्ट्रोल्ड लूप है ।

Questions No: 44/50

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

Questions No: 45/50

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

Questions No: 46/50

Changing one data type to another is known as
एक डेटा प्रकार को दूसरे में बदलना कहलाता है

Questions No: 47/50

What will be the output of the following :print( (5*2-4*8)%7)
निम्नलिखित कोड का आउटपुट क्या होगा? : print( (5*2-4*8)%7)

Questions No: 48/50

What is the output of the following ?

print(int())

Questions No: 49/50

The result of abs() is equal to math.fabs()?
क्या abs() फंक्शन math.fabs() के बराबर है?

Questions No: 50/50

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

x = 'abcd'
for i in range(len(x)):
    i.upper()
print (x)