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
Raw data assigned to a variable is called as
एक वेरिएबल को असाइन किए गए रॉ डेटा को कहा जाता है
A.
Variable
Variable
B.
Literals
Literals
C.
Identifiers
Identifiers
D.
Comment
Comment
Question No# :
02
out of 50
Which of these are keyword?
इनमें से कौन से कीवर्ड हैं ?
A.
in
in
B.
is
is
C.
assert
assert
D.
All
सभी
Question No# :
03
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# :
04
out of 50
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# :
05
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# :
06
out of 50
In order to store values in terms of key and value we use what core data type.
की और वैल्यू के संदर्भ में वैल्यूज को स्टोर करने के लिए हम किस कोर डेटा प्रकार का यूज़ करते हैं।
A.
list
लिस्ट
B.
tuple
टपल
C.
class
क्लास
D.
dictionary
डिक्शनरी
Question No# :
07
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# :
08
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# :
09
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# :
10
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# :
11
out of 50
To start Python from the command prompt, use the command
कमांड प्रॉम्प्ट से पायथन शुरू करने के लिए, कमांड का उपयोग करें
A.
execute python
execute python
B.
go python
go python
C.
python
python
D.
run python
run python
Question No# :
12
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# :
13
out of 50
Which of the following is an invalid statement?
निम्नलिखित में से कौन सा एक इनवैलिड स्टेटमेंट है?
A.
abc = 1,000,000
abc = 1,000,000
B.
a b c = 1000 2000 3000
a b c = 1000 2000 3000
C.
a,b,c = 1000, 2000, 3000
a,b,c = 1000, 2000, 3000
D.
a_b_c = 1,000,000
a_b_c = 1,000,000
Question No# :
14
out of 50
<p>What is the output of the following code?</p><pre><span style="font-size: 14px;">a=set('abc')<br></span><span style="font-size: 14px;">b=set('cdef')<br></span><span style="font-size: 14px;">print(a&b)</span></pre>
<p>निम्नलिखित कोड का आउटपुट क्या होगा?</p><pre><span style="font-size: 14px;">a=set('abc')<br></span><span style="font-size: 14px;">b=set('cdef')<br></span><span style="font-size: 14px;">print(a&b)</span></pre>
A.
{'c'}
{'c'}
B.
{'a','b','c','d','e','r'}
{'a','b','c','d','e','r'}
C.
{c}
{c}
D.
None of these
इनमे से कोई नहीं
Question No# :
15
out of 50
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# :
16
out of 50
which of the following is an escape sequence for a tab character
which of the following is an escape sequence for a tab character
A.
\a
\a
B.
\t
\t
C.
\n
\n
D.
\b
\b
Question No# :
17
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# :
18
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# :
19
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# :
20
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# :
21
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# :
22
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# :
23
out of 50
What is the output of the following code? print(True and False)
निम्नलिखित कोड का आउटपुट क्या है? print(True and False)
A.
True
सही
B.
False
ग़लत
C.
Error
एरर
D.
None
कोई नहीं
Question No# :
24
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# :
25
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# :
26
out of 50
Which of the following is not a Keyword in Python ?
Which of the following is not a Keyword in Python ?
A.
break
break
B.
while
while
C.
continue
continue
D.
operators
operators
Question No# :
27
out of 50
Which is a valid Constant in python
जो कि पायथन में एक मान्य स्थिरांक है
A.
Hello
Hello
B.
949227
949227
C.
True
True
D.
"2'
"2'
Question No# :
28
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# :
29
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# :
30
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# :
31
out of 50
Which of the following is NOT a valid Python keyword?
निम्नलिखित में से कौन सा वैलिड पायथन कीवर्ड नहीं है?
A.
None
कोई नहीं
B.
True
सही
C.
False
ग़लत
D.
equal
बराबर
Question No# :
32
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# :
33
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# :
34
out of 50
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# :
35
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# :
36
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# :
37
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# :
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
Which of the following is an escape sequence for a new line character
Which of the following is an escape sequence for a new line character
A.
\a
\a
B.
\t
\t
C.
\n
\n
D.
\b
\b
Question No# :
40
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# :
41
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# :
42
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# :
43
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# :
44
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# :
45
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# :
46
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# :
47
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# :
48
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# :
49
out of 50
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# :
50
out of 50
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
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