Menu mobile
Home
Programming
Python Tutorial
Java Tutorial
C Tutorial
C++ Tutorial
Web Technology
HTML
CSS
Java Script
PHP
React JS
Node JS
Assignment
MS Office
HTML
CSS
Bootstrap
Java Script
JQuery
AngularJs
Project
Blog
QUIZ ON : python - INTRODUCTION TO PYTHON
INTRODUCTION TO PYTHON
00:00:00
English
Hindi
Question No# :
01
out of 50
Who developed Python ?
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# :
02
out of 50
Which of the following cannot be a variable?
निम्नलिखित में से कौन सा एक वैरिएबल नहीं हो सकता है?
A.
__init__
__init__
B.
in
in
C.
it
it
D.
on
on
Question No# :
03
out of 50
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# :
04
out of 50
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# :
05
out of 50
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# :
06
out of 50
<p></p><p>What will be the output of the following Python code</p> <pre><span style="font-size: 12.6px;">def func(a, b=5, c=10): print('a is', a, 'and b is', b, 'and c is', c) func(13, 17) func(a=2, c=4) func(5,7,9)</span></pre> <p><span style="font-size: 14px;">(A) a is 13 and b is 15 and c is 10</span></p><p><span style="font-size: 14px;"> a is 2 and b is 5 and c is 4</span></p><p><span style="font-size: 14px;"> a is 5 and b is 7 and c is 9</span></p><p><span style="font-size: 14px;">(B) a is 13 and b is 17 and cis 10</span></p><p><span style="font-size: 14px;"> a is 2 and b is 4 and c is 4</span></p><p><span style="font-size: 14px;"> a is 5 and b is 9 and c is 7</span></p><p><span style="font-size: 14px;">(C) a is 13 and b is 17 and c is 10</span></p><p><span style="font-size: 14px;"> a is 2 and b is 5 and cis 4</span></p><p><span style="font-size: 14px;"> a is 5 and b is 7 and c is 9</span></p><p><span style="font-size: 14px;">(D) None of the above</span></p>
<p style="letter-spacing: 0.14px;">What will be the output of the following Python code</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">def func(a, b=5, c=10): print('a is', a, 'and b is', b, 'and c is', c) func(13, 17) func(a=2, c=4) func(5,7,9)</pre><p style="letter-spacing: 0.14px;">(A) a is 13 and b is 15 and c is 10</p><p style="letter-spacing: 0.14px;"> a is 2 and b is 5 and c is 4</p><p style="letter-spacing: 0.14px;"> a is 5 and b is 7 and c is 9</p><p style="letter-spacing: 0.14px;">(B) a is 13 and b is 17 and cis 10</p><p style="letter-spacing: 0.14px;"> a is 2 and b is 4 and c is 4</p><p style="letter-spacing: 0.14px;"> a is 5 and b is 9 and c is 7</p><p style="letter-spacing: 0.14px;">(C) a is 13 and b is 17 and c is 10</p><p style="letter-spacing: 0.14px;"> a is 2 and b is 5 and cis 4</p><p style="letter-spacing: 0.14px;"> a is 5 and b is 7 and c is 9</p><p style="letter-spacing: 0.14px;">(D) None of the above</p>
A.
option A
option A
B.
option B
option B
C.
option C
option C
D.
option D
option D
Question No# :
07
out of 50
What is the return type of function id?
फ़ंक्शन आईडी का रिटर्न प्रकार क्या है?
A.
int
int
B.
float
float
C.
bool
bool
D.
dict
dict
Question No# :
08
out of 50
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
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# :
10
out of 50
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# :
11
out of 50
<p>What will the following code output?</p><p> <pre>a=55 <br>b=55 <br>print( a is not b)</pre></p>
<p>निम्नलिखित कोड आउटपुट क्या होगा? </p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">a=55 <br>b=55 <br>print( a is not b)</pre>
A.
True
True
B.
False
False
C.
55
55
D.
TypeError
TypeError
Question No# :
12
out of 50
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# :
13
out of 50
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
Python uses a/an _______ to convert source code
सोर्स कोड को परिवर्तित करने के लिए पायथन _______ का उपयोग करता है
A.
Interpreter
इंटरप्रेटर
B.
Compiler
कम्पाइलर
C.
Combination of Compiler and Interpreter
कंपाइलर और इंटरप्रेटर का संयोजन
D.
all of these
ऊपर के सभी
Question No# :
15
out of 50
Which of the following is NOT a valid Python keyword?
निम्नलिखित में से कौन सा वैलिड पायथन कीवर्ड नहीं है?
A.
None
None
B.
True
True
C.
False
False
D.
equal
equal
Question No# :
16
out of 50
Which of the following is not a keyword ?
निम्नलिखित में से कौन सा कीवर्ड नहीं है?
A.
eval
eval
B.
nonlocal
nonlocal
C.
assert
assert
D.
finally
finally
Question No# :
17
out of 50
To give a different separator with print() ______ argument is sued.
To give a different separator with print() ______ argument is sued.
A.
sep
sep
B.
separator
separator
C.
end
end
D.
tab
tab
Question No# :
18
out of 50
<p>What will the following code output? </p><pre>a=‘INFOMAX’ <br>a=10 <br>print(type(a))</pre>
<p>निम्नलिखित कोड आउटपुट क्या होगा? </p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">a=‘INFOMAX’ <br>a=10 <br>print(type(a))</pre>
A.
<class 'int'>
<class 'int'>
B.
<class ‘str'>
<class ‘str'>
C.
<class ‘bool'>
<class ‘bool'>
D.
Error
एरर
Question No# :
19
out of 50
The tiny individual unit in python program is known as
पायथन प्रोग्राम में छोटी व्यक्तिगत इकाई को कहा जाता है
A.
Keywords
Keywords
B.
Identifires
Identifires
C.
Token
Token
D.
Statement
Statement
Question No# :
20
out of 50
Which symbol is used to write single line comment ?
सिंगल लाइन कमेंट लिखने के लिए किस चिन्ह का प्रयोग किया जाता है ?
A.
.
.
B.
#
#
C.
/
/
D.
?
?
Question No# :
21
out of 50
Which of the following is not a valid identifier?
निम्न में से कौन सा वैध पहचानकर्ता नहीं है?
A.
student
student
B.
s12
s12
C.
123
123
D.
_123
_123
Question No# :
22
out of 50
______ are additional readable information to clarify the statement in python.
______ पायथन में कथन को स्पष्ट करने के लिए अतिरिक्त पठनीय जानकारी है।
A.
Comments
Comments
B.
Expressions
Expressions
C.
Tokens
Tokens
D.
Flow of control
Flow of control
Question No# :
23
out of 50
<p>What will be the output of the following Python code?</p><pre><span style="font-size: 14px;">print('ab12'.isalnum())</span></pre>
<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">print('ab12'.isalnum())</span></pre>
A.
True
सही
B.
False
गलत
Question No# :
24
out of 50
Which is a valid Constant in python
जो कि पायथन में एक मान्य स्थिरांक है
A.
Hello
Hello
B.
949227
949227
C.
True
True
D.
"2'
"2'
Question No# :
25
out of 50
Which of the following is incorrect regarding variables in Python?
पायथन में वेरिएबल्स के संबंध में निम्नलिखित में से कौन सा गलत है?
A.
Variable names in Python cannot start with number. However, it can contain number in any other position of variable name.
Python में वेरिएबल नेम नंबर से शुरू नहीं हो सकते हैं। हालाँकि, इसमें वेरिएबल नेम की किसी अन्य स्थिति में संख्या हो सकती है।
B.
Variable names can start with an underscore.
वेरिएबल नेम अंडरस्कोर से शुरू हो सकते हैं।
C.
Data type of variable names should not be declared.
डेटा प्रकार के वेरिएबल नेम डिक्लेयर नहीं किए जाने चाहिए।
D.
None of the above.
उपरोक्त में से कोई नहीं
Question No# :
26
out of 50
____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# :
27
out of 50
function returns the current position of file pointer.
फ़ंक्शन फ़ाइल पॉइंटर की वर्तमान स्थिति प्रस्तुत करता है ।
A.
get()
get()
B.
seek()
seek()
C.
tell()
tell()
D.
cur()
cur()
Question No# :
28
out of 50
In what language is the Python programming language written?
पायथॉन प्रोग्रामिंग भाषा किस भाषा में लिखी गई है?
A.
C
C
B.
C++
C++
C.
JAVA
JAVA
D.
PHP
PHP
Question No# :
29
out of 50
<p>What will be the output of the following Python code?</p><pre><span style="font-size: 12.6px;">def power(x, y=2): r=1 for i in range(y): r=r*x return r print(power(3)) print(power(3,3))</span><br></pre><div><span style="font-size: 14px;">(A) <span style="white-space:pre"> </span>212</span></div><div><span style="font-size: 14px;"> <span style="white-space:pre"> </span>32</span></div><div><span style="font-size: 14px;">(B) <span style="white-space:pre"> </span>9</span></div><div><span style="font-size: 14px;"> <span style="white-space:pre"> </span>27</span></div><div><span style="font-size: 14px;">(C) <span style="white-space:pre"> </span>567</span></div><div><span style="font-size: 14px;"> <span style="white-space:pre"> </span>98</span></div><div><span style="font-size: 14px;">(D) None of the above</span></div>
<p><p> निम्नलिखित पायथन कोड का आउटपुट क्या होगा?</p><pre style=""><span style="font-size: 12.6px;">def power(x, y=2): r=1 for i in range(y): r=r*x return r print(power(3)) print(power(3,3))</span></pre></p><div style="letter-spacing: 0.14px;">(A) <span style="white-space: pre;"> </span>212</div><div style="letter-spacing: 0.14px;"> <span style="white-space: pre;"> </span>32</div><div style="letter-spacing: 0.14px;">(B) <span style="white-space: pre;"> </span>9</div><div style="letter-spacing: 0.14px;"> <span style="white-space: pre;"> </span>27</div><div style="letter-spacing: 0.14px;">(C) <span style="white-space: pre;"> </span>567</div><div style="letter-spacing: 0.14px;"> <span style="white-space: pre;"> </span>98</div><div style="letter-spacing: 0.14px;">(D) None of the above</div>
A.
Option A
Option A
B.
Option B
Option B
C.
Option C
Option C
D.
Option D
Option D
Question No# :
30
out of 50
Which file extension is used to save Python files?
पायथन फ़ाइलों को सेव करने के लिए किस फ़ाइल एक्सटेंशन का यूज़ किया जाता है?
A.
.py
.py
B.
.python
.python
C.
.pt
.pt
D.
.pyt
.pyt
Question No# :
31
out of 50
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# :
32
out of 50
Which of the following is not a token ?
Which of the following is not a token ?
A.
Interpreter
Interpreter
B.
Identifiers
Identifiers
C.
Keyword
Keyword
D.
Operators
Operators
Question No# :
33
out of 50
What is the output of this code? print(bool(0))
इस कोड का आउटपुट क्या है? print(bool(0))
A.
True
सही
B.
False
ग़लत
C.
0
शून्य
D.
Error
एरर
Question No# :
34
out of 50
Which of the following is not a Python IDE
निम्नलिखित में से कौन सा Python IDE नहीं है
A.
IDLE
IDLE
B.
Spyder
Spyder
C.
Jupyter Notes
Jupyter Notes
D.
Sublime Test
Sublime Test
Question No# :
35
out of 50
In which year was the Python language developed?
पायथन भाषा का विकास किस वर्ष हुआ था?
A.
1995
1995
B.
1972
1972
C.
1981
1981
D.
1991
1991
Question No# :
36
out of 50
Which of these are keyword?
इनमें से कौन से कीवर्ड हैं ?
A.
in
in
B.
is
is
C.
assert
assert
D.
All
सभी
Question No# :
37
out of 50
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# :
38
out of 50
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# :
39
out of 50
What will be the output of the following pseudo code, where & represent AND operation ?<br><pre>Integer a, b, c<br>Set b= 5, a = 1<br>c= a & b<br>Print c</pre>
<p>निम्नलिखित स्यूडोकोड का आउटपुट क्या होगा, जहाँ And ऑपरेशन का प्रतिनिधित्व करता हैं</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">Integer a, b, c<br>Set b= 5, a = 1<br>c= a & b<br>Print c</pre><p> </p>
A.
1
1
B.
3
3
C.
5
5
D.
7
7
Question No# :
40
out of 50
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# :
41
out of 50
In which datatype we can store True/False type values
किस डेटाटाइप में हम सही/गलत प्रकार के मूल्यों को स्टोर कर सकते हैं
A.
Boolean
Boolean
B.
Integer
Integer
C.
Float
Float
D.
String
String
Question No# :
42
out of 50
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# :
43
out of 50
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# :
44
out of 50
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# :
45
out of 50
Is Python case sensitive when dealing with identifiers?
क्या पहचानकर्ताओं के साथ व्यवहार करते समय पायथन केस सेंसिटिव है?
A.
yes
हाँ
B.
no
नहीं
C.
machine dependent
मशीन डिपेंडेंट
D.
none of the mentioned
उल्लेखित कोई नहीं
Question No# :
46
out of 50
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# :
47
out of 50
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# :
48
out of 50
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# :
49
out of 50
Which is/are the valid statement to print Hello Word in Python ?
हैलो वर्ड को पायथन में प्रिंट करने के लिए वैध कथन कौन सा है/हैं?
A.
print('Hello Word')
print('Hello Word')
B.
print("Hello Word")
print("Hello Word")
C.
print(Hello Word)
print(Hello Word)
D.
Both A and B
Both A and B
Question No# :
50
out of 50
Select the reserved keyword in python
पायथन में आरक्षित कीवर्ड का चयन करें
A.
else
else
B.
raise
raise
C.
import
import
D.
All of the mentioned
इनमे से सभी
Latest Current Affairs 2025
Online Exam Quiz for One day Exam
Online Typing Test
CCC Online Test 2025
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
Best Java Training Institute in Prayagraj (Allahabad)
Best Python Training Institute in Prayagraj (Allahabad)
O Level Online Test in Hindi
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Naukari Notification
Best Website and Software Company in Allahabad
Sarkari Exam Quiz