O Level Online Exam
Menu mobile
Home
MCQ Topic Wise
INFORMATION TECHNOLOGY TOOLS AND NETWORK BASICS
New
WEB DESIGNING AND PUBLISHING
New
PROGRAMMING AND PROBLEM SOLVING THROUGH PYTHON
New
INTERNET OF THINGS AND ITS APPLICATIONS
New
Online Mock Test
INFORMATION TECHNOLOGY TOOLS AND NETWORK BASICS
New
WEB DESIGNING AND PUBLISHING
New
PROGRAMMING AND PROBLEM SOLVING THROUGH PYTHON
New
INTERNET OF THINGS AND ITS APPLICATIONS
New
Old Papers
Practical Questions
Videos
Projects
MCQ : OPERATORS EXPRESSIONS AND PYTHON STATEMENTS For NIELIT O Level Exam
OPERATORS EXPRESSIONS AND PYTHON STATEMENTS For NIELIT O Level Exam
00:00:00
English
Hindi
Question No# :
01
out of 50
Report Bug
Bookmark
What is range() Funciton ?
रेंज क्या है?
A.
generates a list of numbers, to iterate over with for loops
लिस्ट ऑफ नंबर्स को जनरेट करना ताकि वो फॉर लूप पर इटरेट हो ।
B.
immediate exit from the innermost loop structure.
इनरमोस्ट लूप में से इमीडियेट एग्जिट
C.
returned an iterator a sequence object.
सीक्वेंस ऑब्जेक्ट का इटरेटर रिटर्न करता है।
D.
Arranging numbers whether in ascending or descending order.
संख्याओं को आरोही या अवरोही क्रम में व्यवस्थित करना ।
Question No# :
02
out of 50
Report Bug
Bookmark
What is the purpose of the else block in a Python loop?
पायथन लूप में अन्य ब्लॉक का पर्पज क्या है?
A.
To execute when the loop is terminated using break.
ब्रेक का यूज़ करके लूप टर्मिनेट होने पर एक्सक्यूट करना।
B.
To execute after the loop completes without encountering a break.
लूप कम्पलीट होने के बाद बिना किसी रुकावट के एक्सक्यूट करना।
C.
To restart the loop.
लूप को रीस्टार्ट करने के लिए
D.
To execute before the loop starts
लूप रीस्टार्ट होने से पहले एक्सक्यूट करना
Question No# :
03
out of 50
Report Bug
Bookmark
What plays a vital role in Python programming?
A.
Statements
Statements
B.
Control
Control
C.
Structure
Structure
D.
Indentation
Indentation
Question No# :
04
out of 50
Report Bug
Bookmark
To increase the value of x five times using an augmented assignment operator, the correct expression will be
संवर्धित असाइनमेंट ऑपरेटर का उपयोग करके x के मान को पांच गुना बढ़ाने के लिए, सही अभिव्यक्ति होगी
A.
x += 5
x += 5
B.
x *= 5
x *= 5
C.
x = x ** 5
x = x ** 5
D.
none of these
none of these
Question No# :
05
out of 50
Report Bug
Bookmark
Which statement can be use to swap the values of an and b
a और b के मानों को स्वैप करने के लिए किस कथन का उपयोग किया जा सकता है?
A.
a=b,b=a
a=b,b=a
B.
a,b=b,a
a,b=b,a
C.
a=b;b=a
a=b;b=a
D.
a=b and b=a
a=b and b=a
Question No# :
06
out of 50
Report Bug
Bookmark
What is the value of the expression 100 // 25 ?
व्यंजक 100//25 का मान क्या है?
A.
4
4
B.
4.0
4.0
C.
2.5
2.5
D.
None of These
None of These
Question No# :
07
out of 50
Report Bug
Bookmark
In Python, a variable is assigned a value of one type, and then later assigned a value of a different type. This will yield
पायथन में, एक चर को एक प्रकार का मान दिया जाता है, और फिर बाद में एक अलग प्रकार का मान दिया जाता है। यह उपज देगा
A.
Warning
Warning
B.
Error
Error
C.
Error
Error
D.
No Error
No Error
Question No# :
08
out of 50
Report Bug
Bookmark
Which one of the following has the highest precedence in the expression?
निम्नलिखित में से किसकी एक्सप्रेशन में हाईएस्ट प्रेसिडेन्स है?
A.
Exponential
एक्सपोनेंशियल
B.
Addition
एडिशन
C.
Multiplication
मल्टीप्लिकेशन
D.
Parentheses
पैरेंथेसेस
Question No# :
09
out of 50
Report Bug
Bookmark
Give the output of: print(2^5)
इसका आउटपुट क्या होगा : print(2^5)
A.
32
32
B.
7
7
C.
10
10
D.
3
3
Question No# :
10
out of 50
Report Bug
Bookmark
What is the the value of x when x=math.factorial(0)
x का मान क्या है जब x=math.factorial(0)
A.
0
0
B.
1
1
C.
11
11
D.
10
10
Question No# :
11
out of 50
Report Bug
Bookmark
_____ is not used as loop in python
पायथन में लूप के रूप में _____ का उपयोग नहीं किया जाता है
A.
for
for
B.
while
while
C.
do while
do while
D.
None of the above
None of the above
Question No# :
12
out of 50
Report Bug
Bookmark
Which of the following refers to mathematical function?
निम्नलिखित में से कौन गणितीय फंक्शन को संदर्भित करता है
A.
sqrt
sqrt
B.
rhombus
rhombus
C.
add
add
D.
Sub
Sub
Question No# :
13
out of 50
Report Bug
Bookmark
What will be the output of : print((-3)**2)
इसका आउटपुट क्या होगा: print((-3)**2)
A.
-9
-9
B.
9
9
C.
6
6
D.
-6
-6
Question No# :
14
out of 50
Report Bug
Bookmark
The data type of an expression int(m)/int(n) will result in:
एक अभिव्यक्ति का डेटा प्रकार int(m)/int(n) परिणाम देगा:
A.
Int
Int
B.
Float
Float
C.
int or float
int or float
D.
None of these
None of these
Question No# :
15
out of 50
Report Bug
Bookmark
Which of the following is a floor division operator?
निम्न में से कौन फ्लोर डिवीजन ऑपरेटर है?
A.
%
%
B.
/
/
C.
//
//
D.
||
||
Question No# :
16
out of 50
Report Bug
Bookmark
Which of the following is NOT a valid use of a loop in Python?
निम्नलिखित में से कौन सा पायथन में लूप का वैलिड यूज़ नहीं है?
A.
Iterating over a list.
किसी लिस्ट को इटरेटिंग करना।
B.
Iterating over a string.
एक स्ट्रिंग पर इटरेटिंग.
C.
Iterating over a dictionary.
एक ड़िक्शनरी पर इटरेटिंग।
D.
None of the above
इनमे से कोई भी नहीं
Question No# :
17
out of 50
Report Bug
Bookmark
Function range(0, 5, 2) will yield on iterable sequence like
फ़ंक्शन रेंज (0, 5, 2) चलने योग्य अनुक्रम पर उत्पन्न होगी जैसे
A.
[0, 2, 4]
[0, 2, 4]
B.
[1, 3, 5]
[1, 3, 5]
C.
[0, 1, 2, 5]
[0, 1, 2, 5]
D.
[0, 5, 2]
[0, 5, 2]
Question No# :
18
out of 50
Report Bug
Bookmark
Which amongst this is not a jump statement ?
A.
for
for
B.
goto
goto
C.
continue
continue
D.
break
break
Question No# :
19
out of 50
Report Bug
Bookmark
What will be the value of p when p= int(17/2+11.5)?
p का मान क्या होगा जब p= int(17/2+11.5)?
A.
20
20
B.
20.0
20.0
C.
28
28
D.
28.0
28.0
Question No# :
20
out of 50
Report Bug
Bookmark
Which is the correct operator for power(x,y)?
A.
X^y
X^y
B.
X**y
X**y
C.
X^^y
X^^y
D.
None of the mentioned
None of the mentioned
Question No# :
21
out of 50
Report Bug
Bookmark
range(3) in Python is equivalent to:
पायथन में रेंज (3) के बराबर है:
A.
range(0,3,1)
range(0,3,1)
B.
range(1,4,1)
range(1,4,1)
C.
range(1,3)
range(1,3)
D.
range(1,3,0)
range(1,3,0)
Question No# :
22
out of 50
Report Bug
Bookmark
In Python, which of the following will create a block in a compound statement ?
पायथन में, निम्नलिखित में से कौन कंपाउंड स्टेटमेंट में ब्लॉक बनाएगा?
A.
colon
colon
B.
statements indented at a lower, same level
statements indented at a lower, same level
C.
indentation in any form
indentation in any form
D.
{ }
{ }
Question No# :
23
out of 50
Report Bug
Bookmark
Which of the following operators has the highest precedence?
निम्नलिखित में से किस ऑपरेटर की सर्वोच्च प्राथमिकता है?
A.
*
*
B.
**
**
C.
<
<
D.
==
==
Question No# :
24
out of 50
Report Bug
Bookmark
elif can be considered to be abbreviation of
elif किसका संक्षिप्त रूप माना जा सकता है
A.
nested if
nested if
B.
if..else
if..else
C.
else if
else if
D.
if..elif
if..elif
Question No# :
25
out of 50
Report Bug
Bookmark
What is the value of the expression 100 / 25 ?
व्यंजक 100/25 का मान क्या है?
A.
4
4
B.
4.0
4.0
C.
2.5
2.5
D.
none of these
none of these
Question No# :
26
out of 50
Report Bug
Bookmark
Which symbol is used for bitwise XOR operator
बिटवाइज़ XOR ऑपरेटर के लिए कौन सा प्रतीक प्रयोग किया जाता है?
A.
|
|
B.
&
&
C.
^
^
D.
!
!
Question No# :
27
out of 50
Report Bug
Bookmark
What is the value of the expression 10 + 3 ** 3 * 2?
व्यंजक 10 + 3 ** 3 * 2 का मान क्या है?
A.
28
28
B.
739
739
C.
829
829
D.
64
64
Question No# :
28
out of 50
Report Bug
Bookmark
What will the value of a if a=~100
यदि a=~100 है तो a का मान क्या है?
A.
100
100
B.
-100
-100
C.
-101
-101
D.
101
101
Question No# :
29
out of 50
Report Bug
Bookmark
What is the output of the code print(7%2).
कोड print(7%2) का आउटपुट क्या है।
A.
5.5
5.5
B.
3.5
3.5
C.
1
1
D.
None of the above
इनमें से कोई नहीं
Question No# :
30
out of 50
Report Bug
Bookmark
In the Python statement x = a + 5 - b : a and b are
पायथन कथन में x = a + 5 - b : a और b हैं
A.
Operands
Operands
B.
Expression
Expression
C.
operators
operators
D.
Equation
Equation
Question No# :
31
out of 50
Report Bug
Bookmark
Which is the most comfortable loop?
सबसे सरल लूप कौन सा है?
A.
do..while
do..while
B.
while
while
C.
for
for
D.
if..elif
if..elif
Question No# :
32
out of 50
Report Bug
Bookmark
Which of the following statement(s) will terminate only the current pass of the loop and proceed with the next iteration of the loop?
निम्नलिखित में से कौन सा कथन केवल लूप के वर्तमान पास को समाप्त करेगा और लूप के अगले पुनरावृत्ति के साथ आगे बढ़ेगा?
A.
pass
pass
B.
break
break
C.
continue
continue
D.
goto
goto
Question No# :
33
out of 50
Report Bug
Bookmark
Which operator is also called as Comparative operator?
A.
Arithmetic
Arithmetic
B.
Relational
Relational
C.
Logical
Logical
D.
Assignment
Assignment
Question No# :
34
out of 50
Report Bug
Bookmark
what will the output of : print(5&3)
इसका आउटपुट क्या होगा: print(5&3)
A.
1
1
B.
8
8
C.
True
True
D.
False
False
Question No# :
35
out of 50
Report Bug
Bookmark
What is the return value of trunc()?
trunc() फंक्शन क्या रिटर्न करेगा ?
A.
int
int
B.
bool
bool
C.
float
float
D.
None
None
Question No# :
36
out of 50
Report Bug
Bookmark
What is the output of the following code? print(not False)
निम्नलिखित कोड का परिणाम क्या है? print(not False)
A.
True
सही
B.
False
ग़लत
C.
None
कोई नहीं
D.
Error
एरर
Question No# :
37
out of 50
Report Bug
Bookmark
What will the following code output? print(5/0)
निम्नलिखित कोड आउटपुट क्या होगा? print(5/0)
A.
0
Zero
B.
infinite
इनफिनिट
C.
5
फाइव
D.
ZeroDivisionError
ज़ीरोडिविज़नएरर
Question No# :
38
out of 50
Report Bug
Bookmark
How many times will loop run? for a in "56247839"
लूप कितनी बार चलेगा? for a in "56247839"
A.
11
11
B.
8
8
C.
1
1
D.
0
0
Question No# :
39
out of 50
Report Bug
Bookmark
The contents inside the "for loop" are separated by?
लूप के अंदर की सामग्री को _____ द्वारा अलग किया जाती है?
A.
colon
कोलन
B.
comma
कॉमा
C.
semicolon
सेमीकोलन
D.
hyphen
हायफ़न
Question No# :
40
out of 50
Report Bug
Bookmark
In Python, a variable may be assigned a value of one type, and then later assigned a value of a different type. This concept is known as
पायथन में, एक चर को एक प्रकार का मान सौंपा जा सकता है, और फिर बाद में एक अलग प्रकार का मान निर्दिष्ट किया जा सकता है। इस अवधारणा को के रूप में जाना जाता है
A.
mutability
mutability
B.
static typing
static typing
C.
dynamic typing
dynamic typing
D.
immutability
immutability
Question No# :
41
out of 50
Report Bug
Bookmark
Which of the following is the correct syntax for a conditional statement in Python?
पायथन में कंडिशनल स्टेट्मेंट के लिए निम्नलिखित में से कौन सा सही सिंटेक्स है?
A.
if (x > 0):
if (x > 0):
B.
if x > 0
if x > 0
C.
if x > 0 then:
if x > 0 then:
D.
Both A and B
ए और बी दोनों
Question No# :
42
out of 50
Report Bug
Bookmark
Which of the following operators has the lowest precedence ?
निम्नलिखित में से किस ऑपरेटर की प्राथमिकता सबसे कम है?
A.
not
not
B.
%
%
C.
and
and
D.
+
+
Question No# :
43
out of 50
Report Bug
Bookmark
A loop block in python starts with a.. -
पायथन में एक लूप ब्लॉक एक... से शुरू होता है
A.
; (semicolon)
; (semicolon)
B.
,(Comma)
,(Comma)
C.
: (colan)
: (colan)
D.
None of these
कोई नही
Question No# :
44
out of 50
Report Bug
Bookmark
The .......... construct repeats a set of statements a specified number of times or as long as a condition is true.
............ निर्माण एक निर्दिष्ट संख्या में या जब तक कोई शर्त सत्य है, तब तक बयानों के एक सेट को दोहराता है।
A.
selection
selection
B.
repetition
repetition
C.
sequence
sequence
D.
flow
flow
Question No# :
45
out of 50
Report Bug
Bookmark
The condition in the if statement should be in the form of
if स्टेटमेंट में शर्त इस प्रकार होनी चाहिए
A.
Arithmetic or Relational expression
Arithmetic or Relational expression
B.
Arithmetic or Logical expression
Arithmetic or Logical expression
C.
Relational or Logical expression
Relational or Logical expression
D.
Arithmetic
Arithmetic
Question No# :
46
out of 50
Report Bug
Bookmark
What will be the output of the following :print( (5*2-4*8)%7)
निम्नलिखित कोड का आउटपुट क्या होगा? : print( (5*2-4*8)%7)
A.
7
7
B.
8
8
C.
10
10
D.
6
6
Question No# :
47
out of 50
Report Bug
Bookmark
What will return by math.trunc() function in python
पायथन में Math.trunc() फ़ंक्शन द्वारा क्या लौटाया जाएगा
A.
The truncated decimal part of a number
The truncated decimal part of a number
B.
The rounded integer value of a number.
The rounded integer value of a number.
C.
The truncated integer value of a number.
The truncated integer value of a number.
D.
The floor (largest integer less than or equal to the number).
The floor (largest integer less than or equal to the number).
Question No# :
48
out of 50
Report Bug
Bookmark
What does the continue statement do in a loop?
लूप में कंटीन्यू स्टेटमेंट क्या करता है?
A.
Exits the loop entirely.
लूप से पूरी तरह एग्जिट हो जाता है।
B.
Skips the rest of the code in the current iteration and moves to the next iteration.
प्रेजेंट इट्रेशन में रेस्ट कोड को स्किप्स कर देता है और नेक्स्ट इट्रेशन पर मूव हो जाता है।
C.
Restarts the loop.
लूप रीस्टार्ट करता है।
D.
Causes an error.
एरर का कारण बनता है.
Question No# :
49
out of 50
Report Bug
Bookmark
Which of the following expressions results in an error?
निम्नलिखित में से कौन सा एक्सप्रेशन में एक एरर है?
A.
float(‘10’)
float(‘10’)
B.
int(‘10’)
int(‘10’)
C.
float(’10.8’)
float(’10.8’)
D.
int(’10.8’)
int(’10.8’)
Question No# :
50
out of 50
Report Bug
Bookmark
It is a combination of Operators, Operands and Constants
A.
Identifier
Identifier
B.
Expression
Expression
C.
Syntax
Syntax
D.
Task
Task
Latest Current Affairs 2026
Online Exam Quiz for One day Exam
Online Typing Test
CCC Online Test
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
Online MBA 2 years
Online MCA
Online BCA
Best Website and Software Company in Allahabad