Home
O Level
M1 R5: Information Technology Tools and Network Basics
Introduction to Computers
Office Automation Tools
Internet and Web Technologies
Networking Fundamentals
M2 R5: Web Designing and Publishing
HTML
CSS
Javascript
Web Hosting And Publishing
M3 R5: Programming and Problem Solving through Python
Introduction to Programming
Python Programming
Data Structures in Python
File Processing in Python
M4 R5: Internet of Things (IoT) and Its Applications
Introduction to IoT
IoT Architecture
IoT Applications
IoT Security and Challenges | Soft Skills
Other Courses
Under Graduate Courses
BA
BCA
B.COM
Post Graduate Courses
MCA
MBA
M.COM
MA
M.SC.(MATHS)
MSW
Institutional Courses
DCA
ADCA
DFA
DOAP
TALLY PRIME
JAVA
PYTHON
CCA
C Languages
Job Oriented Courses
Digital Marketing
Full Stack Development
Data Science
Cybersecurity and Ethical Hacking
Blockchain Development
Cloud Computing
Artificial Intelligence (AI) and Machine Learning
Government Courses
CCC
O LEVEL
A LEVEL
Mock Test
M1 R5: Information Technology Tools and Network Basics
M2 R5: Web Designing and Publishing
M3 R5: Programming and Problem Solving through Python
M4 R5: Internet of Things (IoT) and Its Applications
Old Papers
2024
New!
Assignments
HTML
New!
CSS
New!
Javascript
New!
Python
New!
Log in
Sign Up
O Level Papers!
M3 R5: Programming and Problem Solving through Python
Set
25
>>-del-a">
See Explanation !
>>-del-a" target="_blank">
1
What will be the output of the following Python code snippet? >>> a={1:"A",2:"B",3:"C"} >>> del a
>>-del-a" target="_blank">निम्नलिखित पायथन कोड का आउटपुट क्या होगा? >>> a={1:"A",2:"B",3:"C"} >>> del a
method del doesn’t exist for the dictionary
del deletes the values in the dictionary
del deletes the entire dictionary
del deletes the keys in the dictionary
Next Question
25
See Explanation !
2
What will be the output of the following Python code? d = {0, 1, 2} for x in d: print(x)
MYMEMORY WARNING: YOU USED ALL AVAILABLE FREE TRANSLATIONS FOR TODAY. NEXT AVAILABLE IN 17 HOURS 02 MINUTES 50 SECONDS VISIT HTTPS://MYMEMORY.TRANSLATED.NET/DOC/USAGELIMITS.PHP TO TRANSLATE MORE
0 1 2
{0, 1, 2} {0, 1, 2} {0, 1, 2}
error
none of the mentioned
Previous Question
Next Question
25
See Explanation !
3
What will be the output of the following Python code snippet? x = 'abcd' for i in range(len(x)): print(x) x = 'a'
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? x = 'abcd' for i in range(len(x)): print(x) x = 'a'
a
abcd abcd abcd abcd
a a a a
none of the mentioned
Previous Question
Next Question
25
See Explanation !
4
____ operator repeats a list for the given number of items.
____ ऑपरेटर दिए गए आइटम की संख्या के लिए एक सूची दोहराता है।
*
+
&
None of these
Previous Question
Next Question
25
See Explanation !
5
What will be the output of the following expression ? print (7//2) print (-7//2)
निम्नलिखित अभिव्यक्ति का आउटपुट क्या होगा? print (7//2) print (-7//2)
3 -3
4 -4
3 -4
3 3
Previous Question
Next Question
25
See Explanation !
6
Which of the following is the proper syntax to check if a particular element is present in a list?
निम्नलिखित में से कौन सा उचित वाक्यविन्यास यह जांचने के लिए है कि कोई विशेष तत्व किसी सूची में मौजूद है या नहीं?
if ele in list
if not ele not in list
Both of the above
None of these
Previous Question
Next Question
25
See Explanation !
7
What is a correct syntax to print the number 8 from the array below: arr = np.array([[1,2,3,4,5], [6,7,8,9,10]])
नीचे दिए गए सरणी से संख्या 8 को प्रिंट करने के लिए सही सिंटैक्स क्या है: arr = np.array([[1,2,3,4,5], [6,7,8,9,10]])
print(arr[3,0])
print(arr[1,2])
print(arr[7,2])
None of The Above
Previous Question
Next Question
25
See Explanation !
8
Empty list in python is made by ?
अजगर में खाली सूची किसके द्वारा बनाई गई है?
l=[]
l=list()
Both of the above
None of these
Previous Question
Next Question
25
See Explanation !
9
What will be the output of the following Python code? string = "my name is x" for i in string: print (i, end=", ")
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? string = "my name is x" for i in string: print (i, end=", ")
m, y, , n, a, m, e, , i, s, , x,
m, y, , n, a, m, e, , i, s, , x
my, name, is, x,
error
Previous Question
Next Question
25
See Explanation !
10
Which of the following is the primary object in NumPy for representing arrays?
ऐरे का प्रतिनिधित्व करने के लिए NumPy में निम्नलिखित में से कौन सा प्राथमिक ऑब्जेक्ट है?
Array
List
Matrix
Tuple
Previous Question
Next Question
25
See Explanation !
11
A graphical representation of a computer program in relation to its sequence of functions____ .
कार्यों के अनुक्रम के संबंध में एक कंप्यूटर प्रोग्राम का एक ग्राफिकल प्रतिनिधित्व ____ ।
Algorithm
flowchart
Both of the above
None of these
Previous Question
Next Question
25
See Explanation !
12
Python converts the source code into an intermediate form called ____ .
पायथन स्रोत कोड को एक मध्यवर्ती रूप में परिवर्तित करता है जिसे ____ कहा जाता है।
Source-code
bytecode
human-readable code
None of these
Previous Question
Next Question
25
See Explanation !
13
Which function removes a set's first and the last element from a list?
कौन सा फ़ंक्शन एक सूची से एक सेट के पहले और अंतिम तत्व को हटा देता है?
pop
remove
dispose
None of these
Previous Question
Next Question
25
See Explanation !
14
What is the use of shape() in numpy?
numpy में shape() का उपयोग क्या है?
change in shape of array
reshaping of array
get the shape of the array
All of above
Previous Question
Next Question
25
See Explanation !
15
What will be the output of the following Python code? from math import* print(floor(3.7))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? from math import* print(floor(3.7))
3
4
3.0
None of These
Previous Question
Next Question
25
See Explanation !
16
What will be the output of the following Python code? print('abcdef'.partition('cd'))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? print('abcdef '.partition (' cd '))
(‘ab’, ‘ef’)
(‘abef’)
(‘ab’, ‘cd’, ‘ef’)
2
Previous Question
Next Question
25
See Explanation !
17
function returns the current position of file pointer.
फ़ंक्शन फ़ाइल पॉइंटर की वर्तमान स्थिति बताता है।
get()
seek()
tell()
cur()
Previous Question
Next Question
25
See Explanation !
18
What will be the output of the following Python code snippet? numbers = {} letters = {} comb = {} numbers[1] = 56 numbers[3] = 7 letters[4] = 'B'
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? numbers = {} letters = {} comb = {} numbers[1] = 56 numbers[3] = 7 letters[4] = 'B' comb['Numbers']
Error, dictionary in a dictionary can’t exist
‘Numbers’: {1: 56, 3: 7}
{‘Numbers’: {1: 56}, ‘Letters’: {4: ‘B’}}
{‘Numbers’: {1: 56, 3: 7}, ‘Letters’: {4: ‘B’}}
Previous Question
Next Question
25
See Explanation !
19
what is 'f' in the following statement? f=open("Data.txt","r")
निम्नलिखित कथन में 'f' क्या है? f=open("Data.txt","r")
file name
file handle
Mode of file
file handling
Previous Question
Next Question
25
See Explanation !
20
Which keyword is used to exit a loop prematurely in Python?
पायथन में लूप से समय से पहले एग्जिट होने के लिए किस कीवर्ड का यूज़ किया जाता है?
exit
break
continue
stop
Previous Question
Next Question
25
See Explanation !
21
The Python prompt indicates that Interpreter is ready to accept instruction.
पाइथन प्रॉम्प्ट इंगित करता है कि दुभाषिया निर्देश स्वीकार करने के लिए तैयार है।
>>>
<<<
#
<<
Previous Question
Next Question
25
See Explanation !
22
What will be the output of the following Python function, assuming that the random module has already been imported? import random random.uniform(3,4)
यह मानते हुए कि random मॉड्यूल पहले से ही आयात किया जा चुका है, निम्नलिखित पायथन फ़ंक्शन का आउटपुट क्या होगा? import random random.uniform(3,4)
Error
Either 3 or 4
Any integer other than 3 and 4
Any decimal value between 3 and 4
Previous Question
Next Question
25
See Explanation !
23
What does pip stand for python ?
पाइथन का अर्थ क्या है?
unlimited length.
all private members must have leading and trailing underscores.
Preferred Installer Program.
none of the mentioned
Previous Question
Next Question
25
See Explanation !
24
In which year was the Python language developed?
पायथन भाषा का विकास किस वर्ष में हुआ था?
1995
1972
1981
1991
Previous Question
Next Question
25
See Explanation !
25
Which of the following is a Python tuple?
निम्नलिखित में से कौन एक Python tuple है?
[1, 2, 3]
(1, 2, 3)
{1, 2, 3}
{}
Previous Question