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
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# :
02
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# :
03
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# :
04
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# :
05
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# :
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
Which is a valid Constant in python
जो कि पायथन में एक मान्य स्थिरांक है
A.
Hello
Hello
B.
949227
949227
C.
True
True
D.
"2'
"2'
Question No# :
08
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# :
09
out of 50
Report Bug
Bookmark
The data type whose representation is known 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# :
10
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# :
11
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# :
12
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# :
13
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# :
14
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# :
15
out of 50
Report Bug
Bookmark
Which of the following variable declaration is incorrect?
निम्नलिखित में से कौन सी वैरिएबल डिक्लेरेशन गलत है ?
A.
a_=3
a_=3
B.
_a=3
_a=3
C.
a?=3
a?=3
D.
All of these
सभी
Question No# :
16
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# :
17
out of 50
Report Bug
Bookmark
What is the result of the following operation? print(3%7)
निम्नलिखित ऑपरेशन का रिजल्ट क्या है? print(3%7)
A.
4
4
B.
3
3
C.
2
2
D.
1
1
Question No# :
18
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# :
19
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# :
20
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# :
21
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# :
22
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# :
23
out of 50
Report Bug
Bookmark
Which of the following is the exponentiation operator in Python?
निम्नलिखित में से कौन पायथन में एक्सपोनेंटिएशन ऑपरेटर है?
A.
^
^
B.
**
**
C.
^^
^^
D.
exp()
exp()
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
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# :
26
out of 50
Report Bug
Bookmark
Which of the following is not a valid identifier?
निम्न में से कौन सा वैध पहचानकर्ता नहीं है?
A.
student
student
B.
s12
s12
C.
123
123
D.
_123
_123
Question No# :
27
out of 50
Report Bug
Bookmark
Which of the following is not a token ?
A.
Interpreter
Interpreter
B.
Identifiers
Identifiers
C.
Keyword
Keyword
D.
Operators
Operators
Question No# :
28
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# :
29
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# :
30
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# :
31
out of 50
Report Bug
Bookmark
____is a string literal denoted by triple quotes for providing the specifications of certain program elements.
____एक स्ट्रिंग अक्षर है जिसे कुछ प्रोग्राम एलिमेन्टो के स्पेशिफिकेशन को प्रोवाइड करने के लिए ट्रिपल कोट्स द्वारा दर्शाया जाता है।
A.
Interface
इंटरफेस
B.
Modularity
मॉड्यूलेरिटी
C.
Client
क्लाइंट
D.
Docstring
डॉकस्ट्रिंग
Question No# :
32
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# :
33
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# :
34
out of 50
Report Bug
Bookmark
Which of the following is not a keyword ?
निम्नलिखित में से कौन सा कीवर्ड नहीं है?
A.
eval
eval
B.
nonlocal
nonlocal
C.
assert
assert
D.
finally
finally
Question No# :
35
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# :
36
out of 50
Report Bug
Bookmark
Select the reserve keyword in Python
A.
else
else
B.
import
import
C.
print
print
D.
all of these
all of these
Question No# :
37
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# :
38
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# :
39
out of 50
Report Bug
Bookmark
Python is ________ Programming Language
पायथन एक _____ प्रोग्रामिंग है
A.
High Level
High Level
B.
Object Oriented
Object Oriented
C.
Low Level
Low Level
D.
Both A and B
Both A and B
Question No# :
40
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# :
41
out of 50
Report Bug
Bookmark
function returns the current position of file pointer.
फ़ंक्शन फ़ाइल पॉइंटर की वर्तमान स्थिति प्रस्तुत करता है ।
A.
get()
get()
B.
seek()
seek()
C.
tell()
tell()
D.
cur()
cur()
Question No# :
42
out of 50
Report Bug
Bookmark
Which of the following is correct about Python
निम्नलिखित में से कौन पायथन के बारे में सही है
A.
It supports automatic garbage collection
It supports automatic garbage collection
B.
It can be easily integrated with C,C++,COM, ActiveX, CORBA, and java
It can be easily integrated with C,C++,COM, ActiveX, CORBA, and java
C.
Both of the above
Both of the above
D.
None of the above
None of the above
Question No# :
43
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# :
44
out of 50
Report Bug
Bookmark
You don't have to pay for Python and you can view its source code too. It means Python is ..........
आपको पायथन के लिए भुगतान करने की आवश्यकता नहीं है और आप इसका स्रोत कोड भी देख सकते हैं। इसका मतलब है कि पायथन
A.
Free and open source
Free and open source
B.
freeware
freeware
C.
open source
open source
D.
shareware
shareware
Question No# :
45
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# :
46
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# :
47
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# :
48
out of 50
Report Bug
Bookmark
Which character is used in Python to make a single line comment?
पायथन में सिंगल लाइन कमेंट करने के लिए किस कैरेक्टर का उपयोग किया जाता है?
A.
/
/
B.
//
//
C.
#
#
D.
!
!
Question No# :
49
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# :
50
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
कोई नहीं
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