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

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

Questions No: 2/50

What will be the output of following code

import math
print(math.pi)

Questions No: 3/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: 4/50

Which keyword does nothing?
कौन सा कीवर्ड कुछ भी नहीं करता है?

Questions No: 5/50

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

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

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

Questions No: 8/50

What will be the output of the following Python code?

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

Questions No: 9/50

What will be the output of the following Python expression?

print(4.00/(2.0+2.0))

Questions No: 10/50

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

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

Questions No: 12/50

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

Questions No: 13/50

Which of the following types of loops are not supported in Python?
निम्नलिखित में से किस प्रकार के लूप पायथन में सपोर्ट नहीं करता हैं?

Questions No: 14/50

The data type of an expression int(m)/int(n) will result in:
एक अभिव्यक्ति का डेटा प्रकार int(m)/int(n) परिणाम देगा:

Questions No: 15/50

What is the output of this expression, 3*1**3?
इस एक्सप्रेशन का आउटपुट क्या है, 3 * 1 ** 3?

Questions No: 16/50

What will be the output of the following python code?

from math import *
 floor(11.7)

Questions No: 17/50

What is the output?

x = 5
print(bool(x))

Questions No: 18/50

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

Questions No: 19/50

What will the following code output?

x=0
if x:
print("True")
else:
print("False")

Questions No: 20/50

What will be the output of the following ?

import math
print(math.fact(5))

Questions No: 21/50

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

Questions No: 22/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: 23/50

An empty/null statement in Python is
पायथन में एक खाली/शून्य कथन है

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

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

Questions No: 26/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: 27/50

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

Questions No: 28/50

What will the following code output?

a=555 
b=55
print( b in a)

Questions No: 29/50

What will the following code output?

a=55	
b=’55’
print( a is not b)

Questions No: 30/50

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

Questions No: 31/50

What is true about a break statement?
ब्रेक स्टेटमेंट के बारे में क्या सच है?

Questions No: 32/50

What will be the output of the following Python code?

from math import*
print(floor(3.7))

Questions No: 33/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: 34/50

What will be the output : 24//6%3,24//4//2
इसका आउटपुट क्या होगा: 24//6%3,24//4//2

Questions No: 35/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: 36/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: 37/50

Which of the following is a floor division operator?
निम्न में से कौन फ्लोर डिवीजन ऑपरेटर है?

Questions No: 38/50

What will be the value of the following Python expression?

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

Questions No: 39/50

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

Questions No: 40/50

What will the following code output?

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

Questions No: 41/50

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

Questions No: 42/50

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

Questions No: 43/50

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

Questions No: 44/50

What will be the output of the following expression ?

x =4
print(x<<2)

Questions No: 45/50

Which is the most comfortable loop?
सबसे सरल लूप कौन सा है?

Questions No: 46/50

Which of the following expressions is an example of type conversion?
निम्न में से कौन सा एक्सप्रेशन्स कन्वर्श़न प्रकार का एक उदाहरण है?

Questions No: 47/50

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

Questions No: 48/50

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

Questions No: 49/50

The for loop in Python is an ____ .
पॉयथन में फॉर लूप...... है ।

Questions No: 50/50

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