Q1.
निम्नलिखित Python प्रोग्राम का आउटपुट क्या होगा?
Find the output of following Python program.a = “Meetmeafterparty”
b = 13
print(a+b)
A.
29
B.
14
C.
15
D.
error in code
View Answer
Correct Answer: error in code
Q2.
निम्नलिखित में से कौन सा अमान्य वेरिएबल है?
Which of the following is an invalid variable?
A.
my_string_1
B.
foo
C.
_
D.
1st_string
View Answer
Correct Answer: 1st_string
Q3.
Python एक high-level, interpreted, interactive और object-oriented scripting भाषा है। इसे highly unreadable बनाने के लिए डिज़ाइन किया गया है।
Python is a high-level, interpreted, interactive and object-oriented scripting language. It is designed to be highly unreadable.
A.
True
B.
False
C.
Can’t say
D.
None of these
View Answer
Correct Answer: False
Q4.
Python कई अन्य भाषाओं से व्युत्पन्न है जैसे ABC, Modula-3, C, C++, Algol-68, Small-Talk, Unix shell आदि।
Python is derived from many other languages including ABC, Modula-3, C, C++, Algol-68, Small-Talk, and Unix shell and other scripting languages.
A.
True
B.
False
C.
Can’t say
D.
None of these
View Answer
Correct Answer: True
Q5.
Python programming language किसने बनाई थी?
Python programming language was created by?
A.
Dennis Python
B.
Monty Circus
C.
Eckert
D.
Guido Van Rossum
View Answer
Correct Answer: Guido Van Rossum
Q6.
निम्नलिखित में से कौन सा Python में कीवर्ड नहीं है?
Which of the following is not a keyword in Python?
A.
eval
B.
assert
C.
nonlocal
D.
pass
View Answer
Correct Answer: eval
Q7.
Python के बारे में निम्न में से कौन सा सत्य है?
Which of the following is correct about Python?
A.
It supports automatic garbage collection
B.
It can be easily integrated with C, C++, COM, ActiveX, CORBA, and Java
C.
Both of the above
D.
None of the above
View Answer
Correct Answer: Both of the above
Q8.
Python में निम्नलिखित में से कौन सा डेटा प्रकार समर्थित नहीं है?
Which of the following data types is not supported in Python?
A.
Numbers
B.
String
C.
List
D.
Slice
View Answer
Correct Answer: Slice
Q9.
Python में आरक्षित कीवर्ड चुनें:
Select the reserved keyword in Python.
A.
else
B.
raise
C.
import
D.
All of mentioned
View Answer
Correct Answer: All of mentioned
Q10.
क्या string पर mathematical operations किए जा सकते हैं?
Mathematical operations can be performed on a string.
A.
True
B.
False
C.
Can’t say
D.
None of these
View Answer
Correct Answer: False
Q11.
int(x) अभिव्यक्ति का मतलब है कि x को integer में बदला जा रहा है।
The expression int(x) implies that the variable x is converted to integer.
A.
True
B.
False
C.
Can’t say
D.
None of these
View Answer
Correct Answer: True
Q12.
frozenset(s) function Python में tuples की sequence को dictionary में बदलता है।
frozenset(s) function converts a sequence of tuples to dictionary in Python.
A.
True
B.
False
C.
Can’t say
D.
None of these
View Answer
Correct Answer: False
Q13.
Python में string को list में बदलने के लिए कौन सा function प्रयोग होता है?
A function converts a string to a list in Python.
A.
bin()
B.
list()
C.
strip()
D.
None
View Answer
Correct Answer: list()
Q14.
निम्नलिखित में से कौन सा core data type नहीं है?
Which of these is not a core data type?
A.
Lists
B.
Dictionary
C.
Tuples
D.
Class
View Answer
Correct Answer: Class
Q15.
नीचे दिए गए object का data type क्या है?
What data type is the object below?L = [ 1, 23, ‘hello’, 1 ]
A.
List
B.
Dictionary
C.
Tuple
D.
Array
View Answer
Correct Answer: List
Q16.
Python में string को float में बदलने के लिए कौन सा function प्रयोग किया जाता है?
Which of the following functions converts a string to a float in Python?
A.
int(x [,base])
B.
long(x [,base])
C.
float(x)
D.
str(x)
View Answer
Correct Answer: float(x)
Q17.
निम्नलिखित प्रोग्राम का आउटपुट क्या होगा?
What is the output of the following program?print “Hello World”[::-1]
A.
dlroWolleH
B.
Hello Worl
C.
d
D.
Error
View Answer
Correct Answer: Error
Q18.
यदि string s="Welcome" है, तो निम्न में से कौन सा code गलत है?
Given a string s="Welcome", which of the following code is incorrect?
A.
print s[0]
B.
print s.lower()
C.
s[1]='r'
D.
print s.strip()
View Answer
Correct Answer: s[1]='r'
Q19.
Python में identifier की अधिकतम लंबाई की कोई सीमा नहीं है।
There is no maximum possible length of an identifier in Python.
A.
True
B.
False
C.
Can’t say
D.
None of these
View Answer
Correct Answer: True
Q20.
“1st_string” एक valid identifier नाम है।
“1st_string” is a valid identifier name.
A.
True
B.
False
C.
Can’t say
D.
None of these
View Answer
Correct Answer: False
Q21.
Python में private variables की कोई अवधारणा नहीं होती है।
Python has no concept of private variables.
A.
True
B.
False
C.
Can’t say
D.
None of these
View Answer
Correct Answer: True
Q22.
“eval” Python में एक कीवर्ड है।
“eval” is a keyword in Python.
A.
True
B.
False
C.
Can’t say
D.
None of these
View Answer
Correct Answer: False
Q23.
Python में सभी कीवर्ड lowercase में होते हैं।
All keywords in Python are in lower case.
A.
True
B.
False
C.
Can’t say
D.
None of these
View Answer
Correct Answer: False
Q24.
कीबोर्ड से इनपुट लेने के लिए किस command का प्रयोग किया जाता है?
The…………….command is used to take input from the keyboard.
A.
input
B.
eval
C.
int
D.
print
View Answer
Correct Answer: input
Q25.
स्ट्रिंग को int में बदलने के लिए कौन सा function प्रयोग किया जाता है?
The…………… function is used to convert a string value to int.
A.
int
B.
float
C.
Int
D.
number
View Answer
Correct Answer: int
Q26.
स्ट्रिंग के मान का मूल्यांकन करने के लिए कौन सा function प्रयोग होता है?
The function used to evaluate the value of a string is……….
A.
evaluate
B.
eval
C.
add
D.
length
View Answer
Correct Answer: eval
Q27.
वह संरचना जिसमें keys और values होते हैं उसे क्या कहते हैं?
The structure having keys and values is called __________.
A.
list
B.
tuple
C.
set
D.
dictionary
View Answer
Correct Answer: dictionary
Q28.
__________ function 1 से n तक की संख्या की एक श्रृंखला बनाता है।
The __________ function generates a sequence of numbers from 1 to n.
A.
set
B.
list
C.
range
D.
program
View Answer
Correct Answer: range
Q29.
Python एक case sensitive भाषा है जब identifiers की बात आती है।
Python is a case sensitive language when dealing with identifiers.
A.
True
B.
False
C.
Sometimes
D.
Never
View Answer
Correct Answer: True
Q30.
निम्नलिखित कोड का आउटपुट क्या होगा?
What is the output of the following code?print( bool(0), bool(3.14159), bool(-3), bool(1.0+1j) )
A.
True True False True
B.
False True False True
C.
False False False True
D.
False True True True
View Answer
Correct Answer: False True True True
Q31.
निम्नलिखित में से कौन सा Python का कीवर्ड नहीं है?
Which of the following is not a keyword in python?
A.
return
B.
in
C.
False
D.
false
View Answer
Correct Answer: false
Q32.
निम्नलिखित में से कौन सा variable name के लिए सही है?
Which of the following is true for variable names?
A.
unlimited length
B.
limited length
C.
ampersand can be used in its name
D.
None of above
View Answer
Correct Answer: unlimited length
Q33.
Python में निम्नलिखित में से कौन से escape sequences valid हैं?
Which of the following are valid escape sequences in Python?
A.
\n
B.
\t
C.
\\
D.
All of above
View Answer
Correct Answer: All of above
Q34.
निम्नलिखित कोड चलाने पर आउटपुट क्या होगा?
What is the output when we executelist("hello")
A.
['h', 'e', 'l', 'l', 'o']
B.
[' hello']
C.
['llo']
D.
['olleh']
View Answer
Correct Answer: ['h', 'e', 'l', 'l', 'o']
Q35.
यदि उपयोगकर्ता ने 55 दर्ज किया है, तो निम्नलिखित कोड का आउटपुट क्या होगा?
What is the output, if user has entered 55?a = input("Enter a number")
print(type(a))
A.
int
B.
float
C.
double
D.
str
View Answer
Correct Answer: str
Q36.
निम्नलिखित object का data type क्या है?
What is the data type of the following object?A = [ 5, “abc”, 3.2, 6 ]
A.
tuple
B.
array
C.
list
D.
dictionary
View Answer
Correct Answer: list
Q37.
variables के changing values की जाँच को stepping कहा जाता है।
The examination of changing values of variables is called stepping.
A.
True
B.
False
C.
Can’t say
D.
May be
View Answer
Correct Answer: True
Q38.
निम्नलिखित में से कौन सा built-in function नहीं है?
Which of the following is not the built-in function?
A.
input()
B.
tuple()
C.
print()
D.
dictionary()
View Answer
Correct Answer: dictionary()
Q39.
निम्नलिखित कोड का आउटपुट क्या होगा?
What is the output of the following code?y = "I Love Python"
y[3] = 's'
print(y)
A.
snow
B.
snow world
C.
snos world
D.
Error in code
View Answer
Correct Answer: Error in code
Q40.
निम्न में से किस data type में indexing valid नहीं है?
In which data type, indexing is not valid?
A.
list
B.
dictionary
C.
string
D.
none of above
View Answer
Correct Answer: dictionary
Q41.
निम्नलिखित कोड का आउटपुट क्या होगा?
What is the output of the following code?a = 50
b = a = a*5
print(b)
A.
250
B.
10
C.
50
D.
Syntax Error
View Answer
Correct Answer: 250
Q42.
Python किस भाषा में लिखी गई है?
In which language is Python written?
A.
C
B.
C++
C.
Java
D.
None of these
View Answer
Correct Answer: C
Q43.
किसी variable को assign किया गया raw data क्या कहलाता है?
Raw data assigned to a variable is called as __________.
A.
variable
B.
literal
C.
identifier
D.
comment
View Answer
Correct Answer: literal
Q44.
निम्नलिखित का आउटपुट क्या होगा?
What will be the output of the following?print((range(4)))
A.
0,1,2,3
B.
[0,1,2,3]
C.
range(0,4)
D.
(0,1,2,3)
View Answer
Correct Answer: range(0,4)
Q45.
निम्नलिखित में से कौन सी variable declaration गलत है?
Which of the following variable declaration is incorrect?
A.
a_ = 3
B.
_a = 3
C.
a? = 3
D.
All of these
View Answer
Correct Answer: a? = 3
Q46.
यदि arr नाम की एक सूची में 5 तत्व हैं, तो दूसरा तत्व कैसे प्राप्त करें?
Suppose a list with name arr contains 5 elements. You can get the 2nd element from the list using:
A.
arr[-2]
B.
arr[2]
C.
arr[-1]
D.
arr[1]
View Answer
Correct Answer: arr[1]
Q47.
key और value के रूप में data store करने के लिए कौन सा data type प्रयोग किया जाता है?
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
View Answer
Correct Answer: dictionary
Q48.
निम्न में से किस data type में duplicate items की अनुमति नहीं होती?
In which of the following data type, duplicate items are not allowed?
A.
list
B.
dictionary
C.
set
D.
None of above
View Answer
Correct Answer: set
Q49.
निम्न कोड का आउटपुट क्या होगा?
What is the output of the following code?ms = ('A', 'D', 'H', 'U', 'N', 'I', 'C')
print( ms[1:4] )
A.
('D', 'H', 'U')
B.
('A', 'D', 'H', 'U', 'N', 'I', 'C')
C.
('D', 'H', 'U', 'N', 'I', 'C')
D.
None of these
View Answer
Correct Answer: ('D', 'H', 'U')
Q50.
>>> “2” + “3” का आउटपुट क्या होगा?
What is the output of >>> “2” + “3”
A.
2 3
B.
2+3
C.
'23'
D.
None of these
View Answer
Correct Answer: '23'
Q51.
निम्नलिखित का आउटपुट क्या होगा?
What is the output of the following?print( int() )
A.
Any random number
B.
1
D.
Error
View Answer
Correct Answer: 0
Q52.
>>> float("12.6") का आउटपुट क्या होगा?
What is the output of >>> float("12.6")
A.
12.6
B.
"12.6"
C.
12
D.
syntax error
View Answer
Correct Answer: 12.6
Q53.
निम्न कोड के बाद आउटपुट क्या होगा?
What will be the output after the following statements?m = 7 * 5 + 8
print(m)
View Answer
Correct Answer: 43
Q54.
निम्नलिखित में से कौन valid identifier नहीं है?
Which of the following is not a valid identifier?
A.
student
B.
s12
C.
123
D.
_123
View Answer
Correct Answer: 123
Q55.
single line comment लिखने के लिए कौन सा symbol उपयोग किया जाता है?
Which symbol is used to write single line comment?
View Answer
Correct Answer: #
Q56.
Python module किस file extension के साथ होता है?
A Python module is a file with the ______ file extension that contains valid Python code.
A.
.pym
B.
.pymodule
C.
.module
D.
.py
View Answer
Correct Answer: .py
Q57.
Python में empty list कैसे बनाई जाती है?
How can we create an empty list in Python?
A.
list=()
B.
list.null
C.
null.list
D.
list=[ ]
View Answer
Correct Answer: list=[ ]
Q58.
निम्नलिखित Python कोड का value क्या होगा?
What is the value of the following Python code?print(36/4)
View Answer
Correct Answer: 9.0
Q59.
निम्नलिखित में से कौन Python का कीवर्ड नहीं है?
Which of the following words is not a keyword of Python language?
A.
val
B.
raise
C.
try
D.
with
View Answer
Correct Answer: val
Q60.
निम्नलिखित Python कोड का आउटपुट क्या होगा?
What will be the output of the following Python code?len(["hello", 2, 4, 6])
View Answer
Correct Answer: 4
Q61.
निम्नलिखित में से कौन सी declaration गलत है?
Which of the following declarations is incorrect?
A.
_x = 2
B.
x = 3
C.
_xyz_ = 5
D.
None of these
View Answer
Correct Answer: None of these
Q62.
निम्नलिखित कथन का आउटपुट क्या होगा?
What will be the output of following statement?>>> "m" + "nl"
A.
'm+nl'
B.
'mnl'
C.
'm nl'
D.
'm'
View Answer
Correct Answer: 'mnl'
Q63.
निम्नलिखित कोड का आउटपुट क्या होगा?
What will be the output of the following code?m = '40' + '01'
print(m)
A.
4001
B.
01
C.
41
D.
40
View Answer
Correct Answer: 4001
Q64.
निम्नलिखित कोड का आउटपुट क्या होगा?
What will be the output of the following code?m = 81 + 34
print(m)
A.
8134
B.
81
C.
115
D.
34
View Answer
Correct Answer: 115
Q65.
निम्नलिखित Python कोड का आउटपुट क्या होगा?
What will be the output of the following Python code?d1 = { "abc":5, "def":6, "ghi":7 }
print(d1[0])
A.
abc
B.
5
C.
{ "abc" : 5 }
D.
Error
View Answer
Correct Answer: Error
Q66.
निम्नलिखित में से किसमें डेटा स्थायी रूप से संग्रहित होता है?
In which of the following, data is stored permanently?
A.
Variable
B.
File
C.
Both of above
D.
None of above
View Answer
Correct Answer: File
Q67.
Python भाषा में, निम्नलिखित में से किसे variable के रूप में परिभाषित नहीं किया जा सकता?
In Python language, which of the following cannot be defined as variable?
A.
_val
B.
val
C.
try
D.
_try_
View Answer
Correct Answer: try
Q68.
निम्नलिखित में से कौन सी declaration गलत है?
Which of the following declarations is incorrect?
A.
_x = 2
B.
x = 3
C.
_xyz_ = 5
D.
None of these
View Answer
Correct Answer: None of these
Q69.
निम्नलिखित कथन का आउटपुट क्या होगा?
What will be the output of following statement?>>> "m" + "nl"
A.
'm+nl'
B.
'mnl'
C.
'm nl'
D.
'm'
View Answer
Correct Answer: 'mnl'
Q70.
निम्नलिखित कोड का आउटपुट क्या होगा?
What will be the output of the following code?m = '40' + '01'
print(m)
A.
4001
B.
01
C.
41
D.
40
View Answer
Correct Answer: 4001
Q71.
निम्नलिखित कोड का आउटपुट क्या होगा?
What will be the output of the following code?m = 81 + 34
print(m)
A.
8134
B.
81
C.
115
D.
34
View Answer
Correct Answer: 115
Q72.
निम्नलिखित Python कोड का आउटपुट क्या होगा?
What will be the output of the following Python code?d1 = { "abc":5, "def":6, "ghi":7 }
print(d1[0])
A.
abc
B.
5
C.
{ "abc" : 5 }
D.
Error
View Answer
Correct Answer: Error
Q73.
निम्नलिखित में से किसमें डेटा स्थायी रूप से संग्रहित होता है?
In which of the following, data is stored permanently?
A.
Variable
B.
File
C.
Both of above
D.
None of above
View Answer
Correct Answer: File
Q74.
Python भाषा में, निम्नलिखित में से किसे variable के रूप में परिभाषित नहीं किया जा सकता?
In Python language, which of the following cannot be defined as variable?
A.
_val
B.
val
C.
try
D.
_try_
View Answer
Correct Answer: try
Q75.
Python में एक in-built interactive shell के रूप में आने वाले GUI का नाम क्या है?
What is the name of the GUI that comes in-built as an interactive shell with Python?
A.
PGUI
B.
PyShell
C.
IDLE
D.
PythonSh
View Answer
Correct Answer: IDLE
Q76.
निम्नलिखित कथन निष्पादित होने पर आउटपुट क्या होता है?
What is the output when following statement is executed?>>> "a"+"bc"
View Answer
Correct Answer: abc
Q77.
कौन से arithmetic operators strings के साथ उपयोग नहीं किए जा सकते?
What arithmetic operators cannot be used with strings?
A.
+
B.
*
C.
–
D.
All of the mentioned
View Answer
Correct Answer: –
Q78.
Python में एक in-built interactive shell के रूप में आने वाले GUI का नाम क्या है?
What is the name of the GUI that comes in-built as an interactive shell with Python?
A.
PGUI
B.
PyShell
C.
IDLE
D.
PythonSh
View Answer
Correct Answer: IDLE
Q79.
निम्नलिखित कथन निष्पादित होने पर आउटपुट क्या होता है?
What is the output when following statement is executed?>>> "a"+"bc"
View Answer
Correct Answer: abc
Q80.
कौन से arithmetic operators strings के साथ उपयोग नहीं किए जा सकते?
What arithmetic operators cannot be used with strings?
A.
+
B.
*
C.
–
D.
All of the mentioned
View Answer
Correct Answer: –