O Level Exam : Student Portal
Email address
Password
Remember me
Forgot password?
Sign In
Google
Facebook
Don't have an account?
Register now
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
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
Which character is used in Python to make a single line comment?
पायथन में सिंगल लाइन कमेंट करने के लिए किस कैरेक्टर का उपयोग किया जाता है?
A.
/
/
B.
//
//
C.
#
#
D.
!
!
Question No# :
02
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# :
03
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# :
04
out of 50
Report Bug
Bookmark
What will the following code produce? print(type(10))
निम्नलिखित कोड क्या प्रोड्यूस करेगा? print(type(10))
A.
<class 'float’>
<class 'float’>
B.
<class 'int'>
<class 'int'>
C.
<class 'string'>
<class 'string'>
D.
<class 'number'>
<class 'number'>
Question No# :
05
out of 50
Report Bug
Bookmark
Which of the following is the exponentiation operator in Python?
निम्नलिखित में से कौन पायथन में एक्सपोनेंटिएशन ऑपरेटर है?
A.
^
^
B.
**
**
C.
^^
^^
D.
exp()
exp()
Question No# :
06
out of 50
Report Bug
Bookmark
What will be the output of following code? print(“5”+5)
निम्नलिखित कोड का आउटपुट क्या होगा? print(“5”+5)
A.
55
55
B.
10
10
C.
5
5
D.
Type Error
एरर टाइप करें
Question No# :
07
out of 50
Report Bug
Bookmark
What is the full form of IDLE in Python
पायथन में IDLE का पूर्ण रूप क्या है
A.
Integrated Development and Learning Environment
Integrated Development and Learning Environment
B.
Interpreted Development and Language Environment
Interpreted Development and Language Environment
C.
Integrated Development and Language Environment
Integrated Development and Language Environment
D.
Integrated Designing and Language Environment
Integrated Designing and Language Environment
Question No# :
08
out of 50
Report Bug
Bookmark
Which can contain multiple lines of text.
जिसमें टेक्स्ट की कई पंक्तियाँ हो सकती हैं।
A.
Docstring
डॉकस्ट्रिंग
B.
Python Package Index
पायथन पैकेज इंडेक्स
C.
both a & b
a तथा b दोनों
D.
none of the mentioned
उल्लिखित कोई नहीं
Question No# :
09
out of 50
Report Bug
Bookmark
Which is Special type of literal in Python
जो पाइथन में विशेष प्रकार का शाब्दिक है
A.
Integer
Integer
B.
Complex Number
Complex Number
C.
None
None
D.
String
String
Question No# :
10
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# :
11
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# :
12
out of 50
Report Bug
Bookmark
In python we can change the value of variable
पायथन में हम वेरिएबल के मान को बदल सकते हैं
A.
One Time
One Time
B.
Two Time
Two Time
C.
Any Number of Time
Any Number of Time
D.
we can not change the value of variable
we can not change the value of variable
Question No# :
13
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# :
14
out of 50
Report Bug
Bookmark
Which of the following is a membership operator in Python?
निम्नलिखित में से कौन पायथन में मेम्बरशिप ऑपरेटर है?
A.
is
is
B.
in
in
C.
on
on
D.
at
at
Question No# :
15
out of 50
Report Bug
Bookmark
What does the input() function do in Python?
पायथन में इनपुट() फ़ंक्शन क्या करता है?
A.
Displays a message to the user.
यूजर को एक मैसेज डिस्प्ले करता है.
B.
Receives input from the user as an integer.
यूजर से इन्टिजर के रूप में इनपुट रिसीव करता है।
C.
Receives input from the user as a string.
यूजर से एक स्ट्रिंग के रूप में इनपुट रिसीव करता है।
D.
Both A and C
ए और सी दोनों.
Question No# :
16
out of 50
Report Bug
Bookmark
Which of the following declaration is incorrect?
निम्नलिखित में से कौन सा कथन गलत है?
A.
a_=3
a_=3
B.
_a=3
_a=3
C.
a?=3
a?=3
D.
All of These
All of These
Question No# :
17
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# :
18
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# :
19
out of 50
Report Bug
Bookmark
Raw data assigned to a variable is called as
एक वेरिएबल को असाइन किए गए रॉ डेटा को कहा जाता है
A.
Variable
Variable
B.
Literals
Literals
C.
Identifiers
Identifiers
D.
Comment
Comment
Question No# :
20
out of 50
Report Bug
Bookmark
To give a different separator with print() ______ argument is sued.
A.
sep
sep
B.
separator
separator
C.
end
end
D.
tab
tab
Question No# :
21
out of 50
Report Bug
Bookmark
Which symbol is used to write single line comment ?
सिंगल लाइन कमेंट लिखने के लिए किस चिन्ह का प्रयोग किया जाता है ?
A.
.
.
B.
#
#
C.
/
/
D.
?
?
Question No# :
22
out of 50
Report Bug
Bookmark
Which of the following data types is not supported in python?
पायथन में निम्नलिखित में से कौन सा डेटा टाइप सपोर्ट नहीं करता है।
A.
Number
नंबर
B.
String
स्ट्रिंग
C.
List
लिस्ट
D.
Slice
स्लाइस
Question No# :
23
out of 50
Report Bug
Bookmark
What is can be the length of python identifier
पाइथन पहचानकर्ता की लंबाई क्या हो सकती है
A.
100
100
B.
128
128
C.
256
256
D.
No Limit
No Limit
Question No# :
24
out of 50
Report Bug
Bookmark
Which operator is used for bitwise OR in Python?
बिटवाइज़ या पायथन में किस ऑपरेटर का यूज़ किया जाता है?
A.
|
|
B.
||
||
C.
or
or
D.
&
&
Question No# :
25
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# :
26
out of 50
Report Bug
Bookmark
The ______ mode of Python gives instant result of typed statement
A.
Interactive Mode
Interactive Mode
B.
Script Mode
Script Mode
C.
Combination of Interactive and Script modes
Combination of Interactive and Script modes
D.
All of these
All of these
Question No# :
27
out of 50
Report Bug
Bookmark
Which of the following cannot be a variable?
निम्नलिखित में से कौन सा एक वैरिएबल नहीं हो सकता है?
A.
__init__
__init__
B.
in
in
C.
it
it
D.
on
on
Question No# :
28
out of 50
Report Bug
Bookmark
Which of the following will run without errors?
निम्नलिखित में से कौन सी त्रुटियों के बिना चलेगा?
A.
round(45.8)
round(45.8)
B.
round(6352.898,2,5)
round(6352.898,2,5)
C.
round()
round()
D.
round(7463.123,2,1)
round(7463.123,2,1)
Question No# :
29
out of 50
Report Bug
Bookmark
What is the result of the following code? print(10 / 2.0)
निम्नलिखित कोड का रिजल्ट क्या है? print(10 / 2.0)
A.
5
5
B.
5.0
5.0
C.
10
10
D.
Error
एरर
Question No# :
30
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# :
31
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# :
32
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# :
33
out of 50
Report Bug
Bookmark
What will the following code output? print(5 ^ 3)
निम्नलिखित कोड आउटपुट क्या होगा? print(5 ^ 3)
A.
6
6
B.
1
1
C.
2
2
D.
Error
एरर
Question No# :
34
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# :
35
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# :
36
out of 50
Report Bug
Bookmark
What type of language is Python?
पायथन किस प्रकार की लैंग्वेज है?
A.
Compiled Language
कम्पाईल्ड लैंग्वेज
B.
Markup Language
मार्कअप लैंग्वेज
C.
Interpreted Language
इंटरप्रेटेड लैंग्वेज
D.
Assembly Language
असेंबली लैंग्वेज
Question No# :
37
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# :
38
out of 50
Report Bug
Bookmark
Escape sequences are treated as ____
A.
Strings
Strings
B.
Characters
Characters
C.
Integers
Integers
D.
None of These
None of These
Question No# :
39
out of 50
Report Bug
Bookmark
Python is a/an _________ language.
A.
High Level
High Level
B.
Low Level
Low Level
C.
Procedural
Procedural
D.
Difficult
Difficult
Question No# :
40
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# :
41
out of 50
Report Bug
Bookmark
What is mean by dynamically typed language
डायनामिक टाइप की लैंग्वेज भाषा का क्या अर्थ है
A.
A variable can store any datatype type of value
A variable can store any datatype type of value
B.
A variable can store only numeric value
A variable can store only numeric value
C.
A variable can store only one type of value
A variable can store only one type of value
D.
A value of a variable is change each type when it run
A value of a variable is change each type when it run
Question No# :
42
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# :
43
out of 50
Report Bug
Bookmark
Which of these are keyword?
इनमें से कौन से कीवर्ड हैं ?
A.
in
in
B.
is
is
C.
assert
assert
D.
All
सभी
Question No# :
44
out of 50
Report Bug
Bookmark
What will the following code output? print(‘re\new’)
निम्नलिखित कोड आउटपुट क्या होगा? print(‘re\new’)
A.
re\new
re\new
B.
new
new
C.
re new
re new
D.
re ew
re ew
Question No# :
45
out of 50
Report Bug
Bookmark
Select the reserved keyword in python
पायथन में आरक्षित कीवर्ड का चयन करें
A.
else
else
B.
raise
raise
C.
import
import
D.
All of the mentioned
इनमे से सभी
Question No# :
46
out of 50
Report Bug
Bookmark
Which of the following is not a features of Python?
निम्नलिखित में से कौन पायथन की विशेषता नहीं है?
A.
platform-independent
platform-independent
B.
Low Level Language
Low Level Language
C.
Python is open-source and free to use
Python is open-source and free to use
D.
Object Oriented Programming
Object Oriented Programming
Question No# :
47
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# :
48
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# :
49
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# :
50
out of 50
Report Bug
Bookmark
which of the following is an escape sequence for a tab character
A.
\a
\a
B.
\t
\t
C.
\n
\n
D.
\b
\b
Latest Current Affairs 2025
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