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 : INTRODUCTION TO PYTHON For NIELIT O Level Exam
INTRODUCTION TO PYTHON For NIELIT O Level Exam
00:00:00
English
Hindi
Question No# :
01
out of 50
Report Bug
Bookmark
How can assertions be disabled in Python?
पायथन में अभिकथनों को कैसे अक्षम किया जा सकता है?
A.
Passing –O when running python
Passing –O when running python
B.
Assertions are disabled by default
Assertions are disabled by default
C.
Both A and B are wrong
Both A and B are wrong
D.
Assertions cannot be disabled in python
Assertions cannot be disabled in python
Question No# :
02
out of 50
Report Bug
Bookmark
Which of the following words is not a keyword of python language?
निम्नलिखित में से कौन सा शब्द नहीं पायथन लैंग्वेज का कीवर्ड है?
A.
val
val
B.
raise
raise
C.
try
try
D.
with
with
Question No# :
03
out of 50
Report Bug
Bookmark
The program must be able to handle unexpected situation like wrong input or no input.
A.
Error
Error
B.
Expression
Expression
C.
Portability
Portability
D.
Reliability
Reliability
Question No# :
04
out of 50
Report Bug
Bookmark
Which of the following is a logical operator in Python?
निम्नलिखित में से कौन सा पायथन में एक लॉजिकल ऑपरेटर है?
A.
and
and
B.
or
or
C.
not
not
D.
All of the these
ये सभी
Question No# :
05
out of 50
Report Bug
Bookmark
Which of the following is an invalid statement?
निम्नलिखित में से कौन सा एक इनवैलिड स्टेटमेंट है?
A.
abc = 1,000,000
abc = 1,000,000
B.
a b c = 1000 2000 3000
a b c = 1000 2000 3000
C.
a,b,c = 1000, 2000, 3000
a,b,c = 1000, 2000, 3000
D.
a_b_c = 1,000,000
a_b_c = 1,000,000
Question No# :
06
out of 50
Report Bug
Bookmark
Which one of the following is not a python's predefined data type?
निम्नलिखित में से कौन सा एक पायथन का पूर्वनिर्धारित डेटा टाइप नहीं है
A.
Class
क्लास
B.
List
लिस्ट
C.
Dictionary
डिक्शनरी
D.
Tuple
ट्यूपल
Question No# :
07
out of 50
Report Bug
Bookmark
What will be the output of the following code? print(10 // 3)
निम्नलिखित कोड का आउटपुट क्या होगा? print(10 // 3)
A.
3.33
3.33
B.
3
3
C.
4
4
D.
Error
एरर
Question No# :
08
out of 50
Report Bug
Bookmark
Python uses a/an _______ to convert source code
सोर्स कोड को परिवर्तित करने के लिए पायथन _______ का उपयोग करता है
A.
Interpreter
इंटरप्रेटर
B.
Compiler
कम्पाइलर
C.
Combination of Compiler and Interpreter
कंपाइलर और इंटरप्रेटर का संयोजन
D.
all of these
ऊपर के सभी
Question No# :
09
out of 50
Report Bug
Bookmark
Which of the following environment variable for Python tells the Python interpreter where to locate the module files imported into a program ?
पायथन के लिए निम्नलिखित में से कौन सा पर्यावरण चर पायथन इंटरप्रेटर को बताता है कि प्रोग्राम में आयात की गई मॉड्यूल फाइलों का पता कहाँ लगाया जाए?
A.
PYTHONPATH
PYTHONPATH
B.
PYTHONSTARTUP
PYTHONSTARTUP
C.
PYTHONCASEOK
PYTHONCASEOK
D.
PYTHONHOME
PYTHONHOME
Question No# :
10
out of 50
Report Bug
Bookmark
In what language is the Python programming language written?
पायथॉन प्रोग्रामिंग भाषा किस भाषा में लिखी गई है?
A.
C
C
B.
C++
C++
C.
JAVA
JAVA
D.
PHP
PHP
Question No# :
11
out of 50
Report Bug
Bookmark
Which of these is not a core data type ?
इनमें से कौन कोर डेटा टाइप नहीं है?
A.
Lists
Lists
B.
Dictionary
Dictionary
C.
Tuples
Tuples
D.
Class
Class
Question No# :
12
out of 50
Report Bug
Bookmark
Which of the following is an invalid variable?
निम्नलिखित में से कौन सा एक इनवैलिड वैरिएबल है?
A.
my_string_1
my_string_1
B.
1st_string
1st_string
C.
foo
foo
D.
_myvar
_myvar
Question No# :
13
out of 50
Report Bug
Bookmark
Which of the following is not a legal integer type value in Python
A.
Decimal
Decimal
B.
Octal
Octal
C.
Hexadecimal
Hexadecimal
D.
Roman
Roman
Question No# :
14
out of 50
Report Bug
Bookmark
Which file extension is used to save Python files?
पायथन फ़ाइलों को सेव करने के लिए किस फ़ाइल एक्सटेंशन का यूज़ किया जाता है?
A.
.py
.py
B.
.python
.python
C.
.pt
.pt
D.
.pyt
.pyt
Question No# :
15
out of 50
Report Bug
Bookmark
How many keywords are there in Python 3.0 version?
Python 3.0 संस्करण में कितने कीवर्ड हैं?
A.
33
33
B.
45
45
C.
35
35
D.
30
30
Question No# :
16
out of 50
Report Bug
Bookmark
Who developed Python ?
A.
Ritche
Ritche
B.
Guido Van Rossum
Guido Van Rossum
C.
Bill Gates
Bill Gates
D.
Sunder Pitchai
Sunder Pitchai
Question No# :
17
out of 50
Report Bug
Bookmark
To print the value of a variable, Python uses
A.
Print Statement
Print Statement
B.
Print Function()
Print Function()
C.
print Statement
print Statement
D.
print() Function
print() Function
Question No# :
18
out of 50
Report Bug
Bookmark
Which of the following is not a keyword in Python
निम्नलिखित में से कौन पायथन में एक कीवर्ड नहीं है?
A.
eval
eval
B.
assert
assert
C.
nonlocal
nonlocal
D.
pass
pass
Question No# :
19
out of 50
Report Bug
Bookmark
Which data type is used to store a sequence of characters in Python?
पायथन में कैरेक्टर्स के सीक्वेंस को स्टोर करने के लिए किस डेटा प्रकार का यूज़ किया जाता है?
A.
int
int
B.
float
float
C.
str
str
D.
list
list
Question No# :
20
out of 50
Report Bug
Bookmark
Is Python case sensitive when dealing with identifiers?
क्या पहचानकर्ताओं के साथ व्यवहार करते समय पायथन केस सेंसिटिव है?
A.
yes
हाँ
B.
no
नहीं
C.
machine dependent
मशीन डिपेंडेंट
D.
none of the mentioned
उल्लेखित कोई नहीं
Question No# :
21
out of 50
Report Bug
Bookmark
What will be the output of the following code? print(2 ** 3 ** 2)
निम्नलिखित कोड का आउटपुट क्या होगा?
A.
64
64
B.
512
512
C.
729
729
D.
Error
एरर
Question No# :
22
out of 50
Report Bug
Bookmark
Data Items having fixed value are called ______
A.
Identifiers
Identifiers
B.
Functions
Functions
C.
keywords
keywords
D.
Literals
Literals
Question No# :
23
out of 50
Report Bug
Bookmark
Which of the following is the correct way to declare a variable in Python?
पायथन में वेरिएबल डिक्लेअर करने का सही तरीका निम्नलिखित में से कौन सा है?
A.
int x = 10
int x = 10
B.
x = 10
x = 10
C.
var x = 10
var x = 10
D.
x: 10
x: 10
Question No# :
24
out of 50
Report Bug
Bookmark
Which can not be a variable in python
जो कि Python में वेरिएबल नहीं हो सकता
A.
_py_
_py_
B.
var
var
C.
_var
_var
D.
try
try
Question No# :
25
out of 50
Report Bug
Bookmark
Which of the following are valid escape sequences in Python ?
निम्नलिखित में से कौन से पायथन में वैध एस्केप सिक्वेन्स हैं?
A.
\n
\n
B.
\t
\t
C.
\\
\\
D.
All of the above
उपर्युक्त सभी
Question No# :
26
out of 50
Report Bug
Bookmark
What is the purpose of the in operator in Python?
पायथन में इन ऑपरेटर का उद्देश्य क्या है?
A.
Checks if an element exists within a sequence.
चेक करता है कि कोई एलिमेंट्स किसी सीक्वेंस में मौजूद है या नहीं।
B.
Checks for inequality between two variables.
दो वैरिएबल्स के बीच इनक्वॉलिटी को चेक करता है।
C.
Checks if two variables refer to the same object.
चेक करता है कि क्या दो वैरिएबल्स एक ही ऑब्जेक्ट् को रेफर करते हैं।
D.
Checks the length of a sequence.
किसी सीक्वेंस की लेंथ को चेक करता है
Question No# :
27
out of 50
Report Bug
Bookmark
Python Programs are typed in
Python प्रोग्राम टाइप किये जाते हैं
A.
Interactive Mode
Interactive Mode
B.
Script Mode
Script Mode
C.
Both Interactive Mode or Script Mode
Both Interactive Mode or Script Mode
D.
None of These
None of These
Question No# :
28
out of 50
Report Bug
Bookmark
Which is a valid Constant in python
जो कि पायथन में एक मान्य स्थिरांक है
A.
Hello
Hello
B.
949227
949227
C.
True
True
D.
"2'
"2'
Question No# :
29
out of 50
Report Bug
Bookmark
In which datatype we can store True/False type values
किस डेटाटाइप में हम सही/गलत प्रकार के मूल्यों को स्टोर कर सकते हैं
A.
Boolean
Boolean
B.
Integer
Integer
C.
Float
Float
D.
String
String
Question No# :
30
out of 50
Report Bug
Bookmark
To convert the read value through input() into integer type, ______ () is used
A.
floating
floating
B.
float
float
C.
int
int
D.
integer
integer
Question No# :
31
out of 50
Report Bug
Bookmark
Which is/are the the valid string value in Python
पायथन में मान्य स्ट्रिंग मान कौन सा है
A.
"12345"
"12345"
B.
"@#$%"
"@#$%"
C.
"Rajesh"
"Rajesh"
D.
All of These
All of These
Question No# :
32
out of 50
Report Bug
Bookmark
What will the following code output? print(chr(98))
निम्नलिखित कोड आउटपुट क्या होगा? print(chr(98))
A.
a
a
B.
b
b
C.
A
A
D.
B
B
Question No# :
33
out of 50
Report Bug
Bookmark
Which symbol is used to write single line comment ?
सिंगल लाइन कमेंट लिखने के लिए किस चिन्ह का प्रयोग किया जाता है ?
A.
.
.
B.
#
#
C.
/
/
D.
?
?
Question No# :
34
out of 50
Report Bug
Bookmark
What is the maximum possible length of an identifier for better redability? -
एक आइडेंटिफायर की अधिकतम संभव लंबाई क्या है?
A.
31 characters
31 कैरेक्टर
B.
63 characters
63 कैरेक्टर
C.
No limit but 79 characters for better redability
कोई नहीं परन्तु 79 कैरेक्टर
D.
All of the above.
उपर्युक्त में से कोई नहीं
Question No# :
35
out of 50
Report Bug
Bookmark
What is the output of the following code? print(5 > 3 and 5 < 10)
निम्नलिखित कोड का परिणाम क्या है? print(5 > 3 and 5 < 10)
A.
True
सही
B.
False
ग़लत
C.
Error
एरर
D.
None
कोई नहीं
Question No# :
36
out of 50
Report Bug
Bookmark
PVM is often called
PVM को अक्सर कहा जाता है
A.
Python Interpreter.
Python Interpreter.
B.
Python compiler
Python compiler
C.
Python Volatile machine
Python Volatile machine
D.
Portable virtual machine
Portable virtual machine
Question No# :
37
out of 50
Report Bug
Bookmark
Which of the following is NOT a valid Python token?
निम्नलिखित में से कौन सा वैलिड पायथन टोकन नहीं है?
A.
Keywords
कीवर्ड
B.
Identifiers
आइंडेंटीफायर्स
C.
Operators
ऑपरेटर्स
D.
Statements
स्टेटमेंट्स
Question No# :
38
out of 50
Report Bug
Bookmark
Which of the following is a feature of DocString?
निम्नलिखित में से कौन सी DocString की एक विशेषता है ?
A.
Provide a convenient way of associating documentation with Python modules, functions, classes, and methods.
पायथन मॉड्यूल, फंक्शनो, क्लॉसो और मेथेडो के साथ डाक्यूमेन्टेशन को जोड़ने का एक सुविधाजनक तरीका प्रदान करता है।
B.
All functions should have a docstring.
सभी फंक्शनो में एक डॉकस्ट्रिंग होना चाहिए
C.
Docstrings can be accessed by the ___doc_attribute on objects.
Docstrings को ऑब्जेक्ट पर __doc__ ऐट्रीब्यूट द्वारा एक्सेस किया जा सकता है।
D.
All of the mentioned.
उल्लिखित सभी
Question No# :
39
out of 50
Report Bug
Bookmark
Which operator is used for bitwise OR in Python?
बिटवाइज़ या पायथन में किस ऑपरेटर का यूज़ किया जाता है?
A.
|
|
B.
||
||
C.
or
or
D.
&
&
Question No# :
40
out of 50
Report Bug
Bookmark
Which of the following is not valid Python identifiers?
निम्नलिखित में से कौन वैध पायथन आइडेंटिफायर नहीं है?
A.
email
email
B.
ca$h
ca$h
C.
marks10
marks10
D.
Python2Shar
Python2Shar
Question No# :
41
out of 50
Report Bug
Bookmark
The data type whose representation is unknown are called
A.
Built in datatype
Built in datatype
B.
Derived datatype
Derived datatype
C.
Concrete datatype
Concrete datatype
D.
Abstract datatype
Abstract datatype
Question No# :
42
out of 50
Report Bug
Bookmark
It refers to the ability of an application to run on different platforms with or without minimal changes.
यह किसी एप्लिकेशन की न्यूनतम परिवर्तनों के साथ या उसके बिना विभिन्न प्लेटफ़ॉर्म पर चलने की क्षमता को संदर्भित करता है
A.
Error
Error
B.
Flexibility
Flexibility
C.
Portability
Portability
D.
Reliability
Reliability
Question No# :
43
out of 50
Report Bug
Bookmark
Which of the following is an escape sequence for a new line character
निम्नलिखित में से कौन सा एक नए लाइन कैरेक्टर के लिए एस्केप सीक्वेंस कैरेक्टर है
A.
\a
\a
B.
\t
\t
C.
\n
\n
D.
\b
\b
Question No# :
44
out of 50
Report Bug
Bookmark
names Given to different parts of a Python program are_____
पायथन प्रोग्राम के विभिन्न भागों को दिए गए नाम_____ हैं
A.
Identifiers
Identifiers
B.
Function
Function
C.
Keywords
Keywords
D.
Literals
Literals
Question No# :
45
out of 50
Report Bug
Bookmark
Python supports the creation of anonymous functions at runtime, using a construct called
पायथन नामक एक कंस्ट्रक का उपयोग करते हुए रनटाइम पर अनाम कार्यो के निर्माण को सपोर्ट करता है
A.
pi
pi
B.
anonymous
अनाम
C.
lambda
lambda
D.
none of the above
उपरोक्त में से कोई
Question No# :
46
out of 50
Report Bug
Bookmark
Which one of the following is the correct extension of the Python file ?
निम्नलिखित में से कौन सा पायथन फाइल का सही एक्सटेंशन है-
A.
.py
.py
B.
.python
.python
C.
.p
.p
D.
None of these
इनमें से कोई नहीं
Question No# :
47
out of 50
Report Bug
Bookmark
What is the extension of Python code File?
पायथन कोड फ़ाइल का विस्तार क्या है?
A.
.py
.py
B.
.python
.python
C.
.ppt
.ppt
D.
.pyt
.pyt
Question No# :
48
out of 50
Report Bug
Bookmark
To start Python from the command prompt, use the command
कमांड प्रॉम्प्ट से पायथन शुरू करने के लिए, कमांड का उपयोग करें
A.
execute python
execute python
B.
go python
go python
C.
python
python
D.
run python
run python
Question No# :
49
out of 50
Report Bug
Bookmark
What is the output of this code? print(bool(0))
इस कोड का आउटपुट क्या है? print(bool(0))
A.
True
सही
B.
False
ग़लत
C.
0
शून्य
D.
Error
एरर
Question No# :
50
out of 50
Report Bug
Bookmark
The default separator character of print() is ___
The default separator character of print() is ___
A.
tab
tab
B.
space
space
C.
newline
newline
D.
dot
dot
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