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
Which is a valid Constant in python
जो कि पायथन में एक मान्य स्थिरांक है
A.
Hello
Hello
B.
949227
949227
C.
True
True
D.
"2'
"2'
Question No# :
02
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# :
03
out of 50
Which of these is not a core data type ?
इनमें से कौन कोर डेटा टाइप नहीं है?
A.
Lists
Lists
B.
Dictionary
Dictionary
C.
Tuples
Tuples
D.
Class
Class
Question No# :
04
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# :
05
out of 50
Which of the following data types is not supported in python?
पायथन में निम्नलिखित में से कौन सा डेटा टाइप सपोर्ट नहीं करता है।
A.
Number
नंबर
B.
String
स्ट्रिंग
C.
List
लिस्ट
D.
Slice
स्लाइस
Question No# :
06
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# :
07
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# :
08
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# :
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
Which of the following is not a keyword ?
निम्नलिखित में से कौन सा कीवर्ड नहीं है?
A.
eval
eval
B.
nonlocal
nonlocal
C.
assert
assert
D.
finally
finally
Question No# :
11
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# :
12
out of 50
Which operator is used for bitwise OR in Python?
बिटवाइज़ या पायथन में किस ऑपरेटर का यूज़ किया जाता है?
A.
|
|
B.
||
||
C.
or
or
D.
&
&
Question No# :
13
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# :
14
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# :
15
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# :
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 is can be the length of python identifier
पाइथन पहचानकर्ता की लंबाई क्या हो सकती है
A.
100
100
B.
128
128
C.
256
256
D.
No Limit
No Limit
Question No# :
18
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# :
19
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# :
20
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# :
21
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# :
22
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# :
23
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# :
24
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# :
25
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# :
26
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# :
27
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# :
28
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# :
29
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# :
30
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# :
31
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# :
32
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# :
33
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# :
34
out of 50
Escape sequences are treated as ____
Escape sequences are treated as ____
A.
Strings
Strings
B.
Characters
Characters
C.
Integers
Integers
D.
None of These
None of These
Question No# :
35
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# :
36
out of 50
How many keywords are there in Python 3.0 version?
Python 3.0 संस्करण में कितने कीवर्ड हैं?
A.
33
33
B.
45
45
C.
35
35
D.
30
30
Question No# :
37
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# :
38
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# :
39
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# :
40
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# :
41
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# :
42
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# :
43
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# :
44
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# :
45
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# :
46
out of 50
Which of the following is NOT a valid Python token?
निम्नलिखित में से कौन सा वैलिड पायथन टोकन नहीं है?
A.
Keywords
कीवर्ड
B.
Identifiers
आइंडेंटीफायर्स
C.
Operators
ऑपरेटर्स
D.
Statements
स्टेटमेंट्स
Question No# :
47
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# :
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
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# :
50
out of 50
Which of these in not a core data type in python?
इनमें से कौन एक कोर डेटा प्रकार नहीं है?
A.
Lists
लिस्ट्स
B.
Dictionary
ड़िक्शनरी
C.
Tuples
टपल्स
D.
Class
क्लास
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