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
How do you insert a comment in Python?
आप पायथन में कमेंट कैसे इन्सर्ट करते हैं?
A.
<!-- This is Comment -->
<!-- This is Comment -->
B.
// This is Comment
// This is Comment
C.
/* This is Comment */
/* This is Comment */
D.
# This is Comment
# This is Comment
Question No# :
02
out of 50
The Python prompt indicates that Interpreter is ready to accept instruction.
The Python prompt indicates that Interpreter is ready to accept instruction.
A.
>>>
>>>
B.
<<<
<<<
C.
#
#
D.
<<
<<
Question No# :
03
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# :
04
out of 50
Which one of the following is not a python's predefined data type?
निम्नलिखित में से कौन सा एक पायथन का पूर्वनिर्धारित डेटा टाइप नहीं है
A.
Class
क्लास
B.
List
लिस्ट
C.
Dictionary
डिक्शनरी
D.
Tuple
ट्यूपल
Question No# :
05
out of 50
Which operator is used for bitwise OR in Python?
बिटवाइज़ या पायथन में किस ऑपरेटर का यूज़ किया जाता है?
A.
|
|
B.
||
||
C.
or
or
D.
&
&
Question No# :
06
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# :
07
out of 50
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# :
08
out of 50
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# :
09
out of 50
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# :
10
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# :
11
out of 50
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# :
12
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# :
13
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# :
14
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# :
15
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# :
16
out of 50
Python is a/an _________ language.
Python is a/an _________ language.
A.
High Level
High Level
B.
Low Level
Low Level
C.
Procedural
Procedural
D.
Difficult
Difficult
Question No# :
17
out of 50
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# :
18
out of 50
Which is Special type of literal in Python
जो पाइथन में विशेष प्रकार का शाब्दिक है
A.
Integer
Integer
B.
Complex Number
Complex Number
C.
None
None
D.
String
String
Question No# :
19
out of 50
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# :
20
out of 50
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# :
21
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# :
22
out of 50
Special meaning words of Pythons, fixed for specific functionality are called ___
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# :
23
out of 50
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# :
24
out of 50
This symbol is used to print more than one item on a single line.
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# :
25
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# :
26
out of 50
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# :
27
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# :
28
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# :
29
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# :
30
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# :
31
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# :
32
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# :
33
out of 50
Which of the following is the exponentiation operator in Python?
निम्नलिखित में से कौन पायथन में एक्सपोनेंटिएशन ऑपरेटर है?
A.
^
^
B.
**
**
C.
^^
^^
D.
exp()
exp()
Question No# :
34
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# :
35
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# :
36
out of 50
Which of the following is not a keyword in python?
निम्नलिखित में से कौन सा पायथन में एक कीवर्ड नहीं है?
A.
raise
raise
B.
try
try
C.
val
val
D.
with
with
Question No# :
37
out of 50
In which language is Python written?
पायथन किस भाषा में लिखा गया है?
A.
English
इंग्लिश
B.
PHP
पीएचपी
C.
C
सी
D.
All of the above
उपर्युक्त सभी
Question No# :
38
out of 50
Which of these are keyword?
इनमें से कौन से कीवर्ड हैं ?
A.
in
in
B.
is
is
C.
assert
assert
D.
All
सभी
Question No# :
39
out of 50
Which of the following character is used to give comments in Python Program ?
Which of the following character is used to give comments in Python Program ?
A.
#
#
B.
&
&
C.
@
@
D.
$
$
Question No# :
40
out of 50
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# :
41
out of 50
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# :
42
out of 50
<p>What will be the datatype of the var in the below code snippet?</p><pre><span style="font-size: 14px;">var = 10<br></span><span style="font-size: 14px;">print(type(var))<br></span><span style="font-size: 14px;">var = "Hello"<br></span><span style="font-size: 14px;">print(type(var))</span></pre>
<p>नीचे दिए गए कोड स्निपेट में var का डेटाटाइप क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">var = 10<br></span><span style="font-size: 14px;">print(type(var))<br></span><span style="font-size: 14px;">var = "Hello"<br></span><span style="font-size: 14px;">print(type(var))</span></pre>
A.
Str and int
Str and int
B.
int and int
int and int
C.
str and str
str and str
D.
int and str
int and str
Question No# :
43
out of 50
You do not have pay Python and you can view its source code too. it means Python is _______
You do not have pay 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# :
44
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# :
45
out of 50
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# :
46
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# :
47
out of 50
Who developed Python?
पायथन का डेवलप किसने किया?
A.
James Gosling
जेम्स गोसलिंग
B.
Guido van Rossum
गुइडो वैन रोसुम
C.
Dennis Ritchie
डेनिस रिची
D.
Bjarne Stroustrup
बज़्ने स्ट्रॉस्ट्रुप
Question No# :
48
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# :
49
out of 50
Which of the following is a membership operator in Python?
निम्नलिखित में से कौन पायथन में मेम्बरशिप ऑपरेटर है?
A.
is
is
B.
in
in
C.
on
on
D.
at
at
Question No# :
50
out of 50
The data type whose representation is unknown are called
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
Online Exam Quiz for One day Exam
Online Typing Test
CCC Online Test 2026
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
Best Website and Software Company in Allahabad