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
Python uses a/an _______ to convert source code
सोर्स कोड को परिवर्तित करने के लिए पायथन _______ का उपयोग करता है
A.
Interpreter
इंटरप्रेटर
B.
Compiler
कम्पाइलर
C.
Combination of Compiler and Interpreter
कंपाइलर और इंटरप्रेटर का संयोजन
D.
all of these
ऊपर के सभी
Question No# :
02
out of 50
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# :
03
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# :
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 an invalid variable?
निम्नलिखित में से कौन सा एक इनवैलिड वैरिएबल है?
A.
my_string_1
my_string_1
B.
1st_string
1st_string
C.
foo
foo
D.
_myvar
_myvar
Question No# :
06
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# :
07
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# :
08
out of 50
Which of the following is not a legal integer type value in Python
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# :
09
out of 50
Select the reserve keyword in Python
Select the reserve keyword in Python
A.
else
else
B.
import
import
C.
print
print
D.
all of these
all of these
Question No# :
10
out of 50
The program must be able to handle unexpected situation like wrong input or no input.
The program must be able to handle unexpected situation like wrong input or no input.
A.
Error
Error
B.
Expression
Expression
C.
Portability
Portability
D.
Reliability
Reliability
Question No# :
11
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# :
12
out of 50
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# :
13
out of 50
Which of the following is NOT a valid Python token?
निम्नलिखित में से कौन सा वैलिड पायथन टोकन नहीं है?
A.
Keywords
कीवर्ड
B.
Identifiers
आइंडेंटीफायर्स
C.
Operators
ऑपरेटर्स
D.
Statements
स्टेटमेंट्स
Question No# :
14
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# :
15
out of 50
How is a code block indicated in Python?
पायथन में कोड ब्लॉक को कैसे दर्शाया जाता है?
A.
Brackets
Brackets
B.
Indentation
Indentation
C.
Key
Key
D.
None of the above
None of the above
Question No# :
16
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# :
17
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# :
18
out of 50
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# :
19
out of 50
What type of language is Python?
पायथन किस प्रकार की लैंग्वेज है?
A.
Compiled Language
कम्पाईल्ड लैंग्वेज
B.
Markup Language
मार्कअप लैंग्वेज
C.
Interpreted Language
इंटरप्रेटेड लैंग्वेज
D.
Assembly Language
असेंबली लैंग्वेज
Question No# :
20
out of 50
Find the invalid variable among the following:
निम्नलिखित में से कौन सा वेरिएबल मान्य नहीं है
A.
1st_string
1st_string
B.
my_string_1
my_string_1
C.
_mySring
_mySring
D.
infomax
infomax
Question No# :
21
out of 50
Which operator is used for bitwise OR in Python?
बिटवाइज़ या पायथन में किस ऑपरेटर का यूज़ किया जाता है?
A.
|
|
B.
||
||
C.
or
or
D.
&
&
Question No# :
22
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# :
23
out of 50
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# :
24
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# :
25
out of 50
Which of the following is the exponentiation operator in Python?
निम्नलिखित में से कौन पायथन में एक्सपोनेंटिएशन ऑपरेटर है?
A.
^
^
B.
**
**
C.
^^
^^
D.
exp()
exp()
Question No# :
26
out of 50
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# :
27
out of 50
The input() returns the value as ____ type.
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# :
28
out of 50
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# :
29
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# :
30
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# :
31
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# :
32
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# :
33
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# :
34
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# :
35
out of 50
Data Items having fixed value are called ______
Data Items having fixed value are called ______
A.
Identifiers
Identifiers
B.
Functions
Functions
C.
keywords
keywords
D.
Literals
Literals
Question No# :
36
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# :
37
out of 50
Which can not be a variable in python
जो कि Python में वेरिएबल नहीं हो सकता
A.
_py_
_py_
B.
var
var
C.
_var
_var
D.
try
try
Question No# :
38
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# :
39
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# :
40
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# :
41
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# :
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
Is Python case sensitive when dealing with identifiers?
क्या पहचानकर्ताओं के साथ व्यवहार करते समय पायथन केस सेंसिटिव है?
A.
yes
हाँ
B.
no
नहीं
C.
machine dependent
मशीन डिपेंडेंट
D.
none of the mentioned
उल्लेखित कोई नहीं
Question No# :
44
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# :
45
out of 50
Which of the following are valid escape sequences in Python ?
निम्नलिखित में से कौन से पायथन में वैध एस्केप सिक्वेन्स हैं?
A.
\n
\n
B.
\t
\t
C.
\\
\\
D.
All of the above
उपर्युक्त सभी
Question No# :
46
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# :
47
out of 50
Python Programs are typed in
Python प्रोग्राम टाइप किये जाते हैं
A.
Interactive Mode
Interactive Mode
B.
Script Mode
Script Mode
C.
Both Interactive Mode or Script Mode
Both Interactive Mode or Script Mode
D.
None of These
None of These
Question No# :
48
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# :
49
out of 50
Which symbol is used to write single line comment ?
सिंगल लाइन कमेंट लिखने के लिए किस चिन्ह का प्रयोग किया जाता है ?
A.
.
.
B.
#
#
C.
/
/
D.
?
?
Question No# :
50
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
उल्लिखित कोई नहीं
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