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

What will be the output of the following Python code?

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

Questions No: 2/50

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

Questions No: 3/50

What will be the value of the following Python expression?

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

Questions No: 4/50

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

Questions No: 5/50

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

Questions No: 6/50

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

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

Questions No: 7/50

what will the output of : 34//5+34%5 in python
पायथन में: 34//5+34%5 का आउटपुट क्या होगा

Questions No: 8/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: 9/50

What is the output of the following code? print(not False)
निम्नलिखित कोड का परिणाम क्या है? print(not False)

Questions No: 10/50

What will be the output of the following Python code?

for i in range(int(2.0)):
    print(i)

Questions No: 11/50

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

Questions No: 12/50

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

x = 2
for i in range(x):
    x += 1
    print (x)

Questions No: 13/50

What will be the output of the following Python code?

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

Questions No: 14/50

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

Questions No: 15/50

What does the following code print ?

if 2 + 5 == 8:
    print("TRUE")
else:
    print("FALSE")
print("TRUE")

Questions No: 16/50

What will be the output of the following expression ?

x =4
print(x<<2)

Questions No: 17/50

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

Questions No: 18/50

What will be the output of the following Python statement?

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

Questions No: 19/50

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

Questions No: 20/50

find the output of following code:

import math
print(math.fabs(-3.4))

Questions No: 21/50

It is a combination of Operators, Operands and Constants

Questions No: 22/50

Function range(10, 5, -2) will yield an iterable sequence like
फंक्शन range(10, 5, -2) एक पुनरावर्तनीय अनुक्रम उत्पन्न करेगा जैसे

Questions No: 23/50

What will be the output of the following Python code?

for i in range(5):
    if i == 5:
        break
    else:
        print(i)
else:
    print("Here")

Questions No: 24/50

What will be the output of the following Python code?

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

Questions No: 25/50

If the else statement is used with a while loop, the else statement is executed when the condition becomes _____ .
यदि else स्टेटमेंट का प्रयोग 'व्हाइल' लूप के साथ किया जाता है, तो else स्टेटमेंट तब निष्पादित होता है जब कंडीशन हो जाती है।

Questions No: 26/50

In python language, which of the following operators is the correct option for raising k to the power 1?
पायथन भाषा में, k को पावर 1 तक बढ़ाने के लिए निम्नलिखित में से कौन सा ऑपरेटर सही विकल्प है?

Questions No: 27/50

What will be the value of the following Python expression?

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

Questions No: 28/50

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

Questions No: 29/50

What will the following code output?

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

Questions No: 30/50

What will be the output of the following Python code?

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

Questions No: 31/50

What will be the output of the following Python code?

from math import*
print(floor(3.7))

Questions No: 32/50

What value does the following expression evaluate to ?

print(5 + 8 * ((3*5)-9)/10)

Questions No: 33/50

Operations to be repeated a certain number of times are done by
संक्रियाओं को एक निश्चित संख्या में बार-बार दोहराए जाने के द्वारा किया जाता है

Questions No: 34/50

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

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

Questions No: 35/50

____ is the output you get when '2'==2 is executed
____ वह आउटपुट है जो आपको तब मिलता है जब '2'==2 निष्पादित होता है-

Questions No: 36/50

_____ function convert an integer to octal string in python.
पायथन में ______ फंक्शन एक इंटीजर को ऑक्टल स्ट्रिंग में परिवर्तित करता है।

Questions No: 37/50

The output of this expression, >>>6*1**3 is ____ .
इस एक्सप्रेशन >>>6*1**3 का आउटपुट ____ है।

Questions No: 38/50

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

Questions No: 39/50

What is the output of : print(2*3**3*4)
इसका आउटपुट क्या है: print(2*3**3*4)

Questions No: 40/50

Which of the following operators has the highest precedence?
निम्नलिखित में से किस ऑपरेटर की सर्वोच्च प्राथमिकता है?

Questions No: 41/50

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

Questions No: 42/50

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

Questions No: 43/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: 44/50

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

Questions No: 45/50

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

Questions No: 46/50

What will be the output of the following expression ?

print (7//2)
print (-7//2)

Questions No: 47/50

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: 48/50

Provide the output for the expression: list = [1, 2] + [3, 4]
list= [1, 2] + [3, 4] का आउटपुट क्या होगा

Questions No: 49/50

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

Questions No: 50/50

range(3) in Python is equivalent to:
पायथन में रेंज (3) के बराबर है:

" allowfullscreen>