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
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# :
02
out of 50
What is the purpose of the in operator in Python?
पायथन में इन ऑपरेटर का उद्देश्य क्या है?
A.
Checks if an element exists within a sequence.
चेक करता है कि कोई एलिमेंट्स किसी सीक्वेंस में मौजूद है या नहीं।
B.
Checks for inequality between two variables.
दो वैरिएबल्स के बीच इनक्वॉलिटी को चेक करता है।
C.
Checks if two variables refer to the same object.
चेक करता है कि क्या दो वैरिएबल्स एक ही ऑब्जेक्ट् को रेफर करते हैं।
D.
Checks the length of a sequence.
किसी सीक्वेंस की लेंथ को चेक करता है
Question No# :
03
out of 50
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# :
04
out of 50
Who developed Python?
पायथन का डेवलप किसने किया?
A.
James Gosling
जेम्स गोसलिंग
B.
Guido van Rossum
गुइडो वैन रोसुम
C.
Dennis Ritchie
डेनिस रिची
D.
Bjarne Stroustrup
बज़्ने स्ट्रॉस्ट्रुप
Question No# :
05
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# :
06
out of 50
Which of the following is the exponentiation operator in Python?
निम्नलिखित में से कौन पायथन में एक्सपोनेंटिएशन ऑपरेटर है?
A.
^
^
B.
**
**
C.
^^
^^
D.
exp()
exp()
Question No# :
07
out of 50
Which of these in not a core data type in python?
इनमें से कौन एक कोर डेटा प्रकार नहीं है?
A.
Lists
लिस्ट्स
B.
Dictionary
ड़िक्शनरी
C.
Tuples
टपल्स
D.
Class
क्लास
Question No# :
08
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# :
09
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# :
10
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# :
11
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# :
12
out of 50
Which of the following can be a variable name in Python?
निम्नलिखित में से कौन सा पायथन में एक वेरिएबल नाम हो सकता है?
A.
123var
123var
B.
_var
_var
C.
if
if
D.
var-name
var-name
Question No# :
13
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# :
14
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# :
15
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# :
16
out of 50
How many keywords present in the python programming language?
पायथन प्रोग्रामिंग भाषा में कितने कीवर्ड मौजूद हैं?
A.
32
32
B.
64
64
C.
35
35
D.
29
29
Question No# :
17
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# :
18
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# :
19
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# :
20
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# :
21
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# :
22
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# :
23
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# :
24
out of 50
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# :
25
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# :
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
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# :
28
out of 50
Raw data assigned to a variable is called as
एक वेरिएबल को असाइन किए गए रॉ डेटा को कहा जाता है
A.
Variable
Variable
B.
Literals
Literals
C.
Identifiers
Identifiers
D.
Comment
Comment
Question No# :
29
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
Question No# :
30
out of 50
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# :
31
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# :
32
out of 50
Which character is used in Python to make a single line comment?
पायथन में सिंगल लाइन कमेंट करने के लिए किस कैरेक्टर का उपयोग किया जाता है?
A.
/
/
B.
//
//
C.
#
#
D.
!
!
Question No# :
33
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# :
34
out of 50
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# :
35
out of 50
Which symbol is used to write single line comment ?
सिंगल लाइन कमेंट लिखने के लिए किस चिन्ह का प्रयोग किया जाता है ?
A.
.
.
B.
#
#
C.
/
/
D.
?
?
Question No# :
36
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# :
37
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# :
38
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# :
39
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# :
40
out of 50
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# :
41
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# :
42
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# :
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
function returns the current position of file pointer.
फ़ंक्शन फ़ाइल पॉइंटर की वर्तमान स्थिति प्रस्तुत करता है ।
A.
get()
get()
B.
seek()
seek()
C.
tell()
tell()
D.
cur()
cur()
Question No# :
45
out of 50
What does the input() function do in Python?
पायथन में इनपुट() फ़ंक्शन क्या करता है?
A.
Displays a message to the user.
यूजर को एक मैसेज डिस्प्ले करता है.
B.
Receives input from the user as an integer.
यूजर से इन्टिजर के रूप में इनपुट रिसीव करता है।
C.
Receives input from the user as a string.
यूजर से एक स्ट्रिंग के रूप में इनपुट रिसीव करता है।
D.
Both A and C
ए और सी दोनों.
Question No# :
46
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# :
47
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# :
48
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# :
49
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# :
50
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
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