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 of these in not a core data type in python?
इनमें से कौन एक कोर डेटा प्रकार नहीं है?
A.
Lists
लिस्ट्स
B.
Dictionary
ड़िक्शनरी
C.
Tuples
टपल्स
D.
Class
क्लास
Question No# :
02
out of 50
What will the following code output? print(10 * 2 + 5)
निम्नलिखित कोड आउटपुट क्या होगा? print(10 * 2 + 5)
A.
30
30
B.
25
25
C.
20
20
D.
50
50
Question No# :
03
out of 50
Which of the following is not a valid identifier?
निम्न में से कौन सा वैध पहचानकर्ता नहीं है?
A.
student
student
B.
s12
s12
C.
123
123
D.
_123
_123
Question No# :
04
out of 50
What is the return type of function id?
फ़ंक्शन आईडी का रिटर्न प्रकार क्या है?
A.
int
int
B.
float
float
C.
bool
bool
D.
dict
dict
Question No# :
05
out of 50
Which of these are keyword?
इनमें से कौन से कीवर्ड हैं ?
A.
in
in
B.
is
is
C.
assert
assert
D.
All
सभी
Question No# :
06
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# :
07
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# :
08
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# :
09
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# :
10
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# :
11
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# :
12
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# :
13
out of 50
How do you convert the string "123" to an integer in Python?
आप पायथन में स्ट्रिंग "123" को इन्टिजर में कैसे कन्वर्ट करते हैं?
A.
int("123")
int("123")
B.
integer("123")
integer("123")
C.
int["123“]
int["123“]
D.
(int) “123”
(int) “123”
Question No# :
14
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# :
15
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# :
16
out of 50
Who developed Python?
पायथन का डेवलप किसने किया?
A.
James Gosling
जेम्स गोसलिंग
B.
Guido van Rossum
गुइडो वैन रोसुम
C.
Dennis Ritchie
डेनिस रिची
D.
Bjarne Stroustrup
बज़्ने स्ट्रॉस्ट्रुप
Question No# :
17
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# :
18
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# :
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
Which operator is used for bitwise OR in Python?
बिटवाइज़ या पायथन में किस ऑपरेटर का यूज़ किया जाता है?
A.
|
|
B.
||
||
C.
or
or
D.
&
&
Question No# :
21
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# :
22
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# :
23
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# :
24
out of 50
Which of the following is the exponentiation operator in Python?
निम्नलिखित में से कौन पायथन में एक्सपोनेंटिएशन ऑपरेटर है?
A.
^
^
B.
**
**
C.
^^
^^
D.
exp()
exp()
Question No# :
25
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# :
26
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# :
27
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# :
28
out of 50
To print a line a text without ending it with a newline, ____ argument is used with print()
To print a line a text without ending it with a newline, ____ argument is used with print()
A.
sep
sep
B.
newline
newline
C.
end
end
D.
next
next
Question No# :
29
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# :
30
out of 50
In what language is the Python programming language written?
पायथॉन प्रोग्रामिंग भाषा किस भाषा में लिखी गई है?
A.
C
C
B.
C++
C++
C.
JAVA
JAVA
D.
PHP
PHP
Question No# :
31
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# :
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
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# :
34
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# :
35
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# :
36
out of 50
To print the value of a variable, Python uses
To print the value of a variable, Python uses
A.
Print Statement
Print Statement
B.
Print Function()
Print Function()
C.
print Statement
print Statement
D.
print() Function
print() Function
Question No# :
37
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# :
38
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# :
39
out of 50
Which of the following is NOT a valid Python keyword?
निम्नलिखित में से कौन सा वैलिड पायथन कीवर्ड नहीं है?
A.
None
कोई नहीं
B.
True
सही
C.
False
ग़लत
D.
equal
बराबर
Question No# :
40
out of 50
Which symbol is used to write single line comment ?
सिंगल लाइन कमेंट लिखने के लिए किस चिन्ह का प्रयोग किया जाता है ?
A.
.
.
B.
#
#
C.
/
/
D.
?
?
Question No# :
41
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# :
42
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# :
43
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# :
44
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# :
45
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# :
46
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# :
47
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# :
48
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# :
49
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# :
50
out of 50
function returns the current position of file pointer.
फ़ंक्शन फ़ाइल पॉइंटर की वर्तमान स्थिति प्रस्तुत करता है ।
A.
get()
get()
B.
seek()
seek()
C.
tell()
tell()
D.
cur()
cur()
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