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
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 many keywords present in the python programming language?
पायथन प्रोग्रामिंग भाषा में कितने कीवर्ड मौजूद हैं?
A.
32
32
B.
64
64
C.
35
35
D.
29
29
Question No# :
02
out of 50
Report Bug
Bookmark
What does the is keyword do in Python?
पायथन में is कीवर्ड क्या करता है?
A.
Checks if two variables have the same value.
चेक करता है कि क्या दो वैरिएबल की वैल्यू समान है।
B.
Checks if two variables refer to the same object in memory.
चेक करता है कि क्या दो वेरिएबल मेमोरी में एक ही ऑब्जेक्ट को रेफर करते हैं।
C.
Assigns a value to a variable.
किसी वेरिएबल को एक वैल्यू असाइन करता है.
D.
None of the above
इनमे से कोई भी नहीं
Question No# :
03
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# :
04
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# :
05
out of 50
Report Bug
Bookmark
Given a function that does not return any value, What value is thrown by default when executed in shell.
ऐसे फ़ंक्शन को देखते हुए जो किसी भी वैल्यू को रिटर्न नहीं करता है, शेल में एक्सक्यूटेड होने पर डिफ़ॉल्ट रूप से कौन सी वैल्यू को हटा दिया जाता है।
A.
int
int
B.
bool
bool
C.
void
void
D.
None
कोई नहीं
Question No# :
06
out of 50
Report Bug
Bookmark
To print a line a text without ending it with a newline, ____ argument is used with print()
A.
sep
sep
B.
newline
newline
C.
end
end
D.
next
next
Question No# :
07
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# :
08
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# :
09
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# :
10
out of 50
Report Bug
Bookmark
Which character is used in Python to make a single line comment?
पायथन में सिंगल लाइन कमेंट करने के लिए किस कैरेक्टर का उपयोग किया जाता है?
A.
/
/
B.
//
//
C.
#
#
D.
!
!
Question No# :
11
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# :
12
out of 50
Report Bug
Bookmark
This symbol is used to print more than one item on a single line.
A.
Semicolon(;)
Semicolon(;)
B.
Dollor($)
Dollor($)
C.
comma(,)
comma(,)
D.
Colon(:)
Colon(:)
Question No# :
13
out of 50
Report Bug
Bookmark
The Python prompt indicates that Interpreter is ready to accept instruction.
A.
>>>
>>>
B.
<<<
<<<
C.
#
#
D.
<<
<<
Question No# :
14
out of 50
Report Bug
Bookmark
What does the // operator do in Python?
// ऑपरेटर पायथन में क्या करता है?
A.
Performs integer division and returns the integer part.
इन्टिजर डिवीज़न करता है और इन्टिजर पार्ट रिटर्न करता है।
B.
Performs normal division and returns a float.
नॉर्मल डिवीज़न करता है और एक फ़्लोट रिटर्न करता है।
C.
Performs modulus operation.
मॉडुलुस ऑपरेशन करता है
D.
Performs exponential calculation.
एक्सपोनेंशियल कैलकुलेशन करता है.
Question No# :
15
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
Question No# :
16
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# :
17
out of 50
Report Bug
Bookmark
The input() returns the value as ____ type.
A.
Integer
Integer
B.
String
String
C.
Floating point
Floating point
D.
None of these
None of these
Question No# :
18
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# :
19
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# :
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
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# :
22
out of 50
Report Bug
Bookmark
Which function is used to get the Data Type of any value?
किसी भी मूल्य का डेटा प्रकार प्राप्त करने के लिए किस फ़ंक्शन का उपयोग किया जाता है?
A.
type()
type()
B.
data_type()
data_type()
C.
datatype()
datatype()
D.
dataType()
dataType()
Question No# :
23
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# :
24
out of 50
Report Bug
Bookmark
What will the following code output? print(‘\\n’)
निम्नलिखित कोड आउटपुट क्या होगा? print(‘\\n’)
A.
\\n
\\n
B.
\n
\n
C.
New line
New line
D.
Error
एरर
Question No# :
25
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# :
26
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# :
27
out of 50
Report Bug
Bookmark
Which of these are keyword?
इनमें से कौन से कीवर्ड हैं ?
A.
in
in
B.
is
is
C.
assert
assert
D.
All
सभी
Question No# :
28
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# :
29
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# :
30
out of 50
Report Bug
Bookmark
In which year was the Python language developed?
पायथन भाषा का विकास किस वर्ष हुआ था?
A.
1995
1995
B.
1972
1972
C.
1981
1981
D.
1991
1991
Question No# :
31
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# :
32
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# :
33
out of 50
Report Bug
Bookmark
Special meaning words of Pythons, fixed for specific functionality are called ___
A.
Identifiers
Identifiers
B.
Functions
Functions
C.
Keywords
Keywords
D.
Literals
Literals
Question No# :
34
out of 50
Report Bug
Bookmark
How do you convert the string "123" to an integer in Python?
आप पायथन में स्ट्रिंग "123" को इन्टिजर में कैसे कन्वर्ट करते हैं?
A.
int("123")
int("123")
B.
integer("123")
integer("123")
C.
int["123“]
int["123“]
D.
(int) “123”
(int) “123”
Question No# :
35
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# :
36
out of 50
Report Bug
Bookmark
Which one of the following is the correct extension of the Python file?
निम्नलिखित में से कौन सा पायथन फ़ाइल का सही एक्सटेंशन है?
A.
.python
.python
B.
.py
.py
C.
.p
.p
D.
.pyt
.pyt
Question No# :
37
out of 50
Report Bug
Bookmark
How many keywords are there in python 3.7?
पायथन 3.7 में कितने कीवर्ड होते है?
A.
32
32
B.
33
33
C.
31
31
D.
30
30
Question No# :
38
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# :
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 words is not a keyword of python language?
निम्नलिखित में से कौन सा शब्द नहीं पायथन लैंग्वेज का कीवर्ड है?
A.
val
val
B.
raise
raise
C.
try
try
D.
with
with
Question No# :
41
out of 50
Report Bug
Bookmark
Which of the following is the exponentiation operator in Python?
निम्नलिखित में से कौन पायथन में एक्सपोनेंटिएशन ऑपरेटर है?
A.
^
^
B.
**
**
C.
^^
^^
D.
exp()
exp()
Question No# :
42
out of 50
Report Bug
Bookmark
in python a variable named 'num' ,which type of value we can store in this variable
पायथन में 'num' नाम का एक वेरिएबल है जिसे हम इस वेरिएबल में स्टोर कर सकते हैं
A.
Integer
Integer
B.
Float
Float
C.
String
String
D.
All of These
All of These
Question No# :
43
out of 50
Report Bug
Bookmark
Python code can run on a variety of platforms, it means Python is a _____ language.
पायथन कोड विभिन्न प्लेटफार्मों पर चल सकता है, इसका मतलब है कि पायथन एक _____ भाषा है।
A.
Graphical
Graphical चित्रात्मक
B.
Cross-Platform
क्रॉस-प्लेटफॉर्म
C.
Platform Dependent
प्लेटफार्म पर निर्भर
D.
All of these
ऊपर के सभी
Question No# :
44
out of 50
Report Bug
Bookmark
What will the following code output? print(ord(‘A’))
निम्नलिखित कोड आउटपुट क्या होगा? print(ord(‘A’))
A.
65
65
B.
97
97
C.
32
32
D.
67
67
Question No# :
45
out of 50
Report Bug
Bookmark
Which of the following is not a Keyword in Python ?
A.
break
break
B.
while
while
C.
continue
continue
D.
operators
operators
Question No# :
46
out of 50
Report Bug
Bookmark
Which of these in not a core data type in python?
इनमें से कौन एक कोर डेटा प्रकार नहीं है?
A.
Lists
लिस्ट्स
B.
Dictionary
ड़िक्शनरी
C.
Tuples
टपल्स
D.
Class
क्लास
Question No# :
47
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# :
48
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# :
49
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# :
50
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
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