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 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# :
02
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# :
03
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# :
04
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# :
05
out of 50
Which character is used in Python to make a single line comment?
पायथन में सिंगल लाइन कमेंट करने के लिए किस कैरेक्टर का उपयोग किया जाता है?
A.
/
/
B.
//
//
C.
#
#
D.
!
!
Question No# :
06
out of 50
The default separator character of print() is ___
The default separator character of print() is ___
A.
tab
tab
B.
space
space
C.
newline
newline
D.
dot
dot
Question No# :
07
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# :
08
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# :
09
out of 50
What is the output of the following code? print(not False)
निम्नलिखित कोड का परिणाम क्या है? print(not False)
A.
True
सही
B.
False
ग़लत
C.
None
कोई नहीं
D.
Error
एरर
Question No# :
10
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
Question No# :
11
out of 50
Select the reserved keyword in python
पायथन में आरक्षित कीवर्ड का चयन करें
A.
else
else
B.
raise
raise
C.
import
import
D.
All of the mentioned
इनमे से सभी
Question No# :
12
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# :
13
out of 50
Which symbol is used to write single line comment ?
सिंगल लाइन कमेंट लिखने के लिए किस चिन्ह का प्रयोग किया जाता है ?
A.
.
.
B.
#
#
C.
/
/
D.
?
?
Question No# :
14
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# :
15
out of 50
Which operator is used for bitwise OR in Python?
बिटवाइज़ या पायथन में किस ऑपरेटर का यूज़ किया जाता है?
A.
|
|
B.
||
||
C.
or
or
D.
&
&
Question No# :
16
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# :
17
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# :
18
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# :
19
out of 50
The ______ mode of Python gives instant result of typed statement
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# :
20
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# :
21
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# :
22
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# :
23
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# :
24
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# :
25
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# :
26
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# :
27
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# :
28
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# :
29
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# :
30
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# :
31
out of 50
Which of the following is the exponentiation operator in Python?
निम्नलिखित में से कौन पायथन में एक्सपोनेंटिएशन ऑपरेटर है?
A.
^
^
B.
**
**
C.
^^
^^
D.
exp()
exp()
Question No# :
32
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# :
33
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# :
34
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# :
35
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# :
36
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# :
37
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# :
38
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# :
39
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# :
40
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# :
41
out of 50
What is the maximum possible length of an identifier for better redability? -
एक आइडेंटिफायर की अधिकतम संभव लंबाई क्या है?
A.
31 characters
31 कैरेक्टर
B.
63 characters
63 कैरेक्टर
C.
No limit but 79 characters for better redability
कोई नहीं परन्तु 79 कैरेक्टर
D.
All of the above.
उपर्युक्त में से कोई नहीं
Question No# :
42
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# :
43
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# :
44
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# :
45
out of 50
What will be the output of this code? print(2 ** 3)
इस कोड का आउटपुट क्या होगा? print(2 ** 3)
A.
6
6
B.
8
8
C.
9
9
D.
11
11
Question No# :
46
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# :
47
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# :
48
out of 50
names Given to different parts of a Python program are_____
पायथन प्रोग्राम के विभिन्न भागों को दिए गए नाम_____ हैं
A.
Identifiers
Identifiers
B.
Function
Function
C.
Keywords
Keywords
D.
Literals
Literals
Question No# :
49
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# :
50
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
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