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
See Explanation !
1
Suppose d = {"john”:40, “peter":45}. To obtain the number of entries in dictionary which command do we use?
मान लीजिए कि d = {" जॉन ":40, "पीटर ":45}। शब्दकोश में प्रविष्टियों की संख्या प्राप्त करने के लिए हम किस आदेश का उपयोग करते हैं?
d.size()
len(d)
size(d)
d.len ()
Next Question
25
See Explanation !
2
The Pandas ______ method returns a new Data Prame.
पांडा की ______ विधि एक नया डेटा प्रैम बताती है।
dropna()
Pandas
read_csv()
None of these
Previous Question
Next Question
25
See Explanation !
3
Which of the following python function converts a string to a list.
निम्नलिखित में से कौन सा पायथन फ़ंक्शन एक स्ट्रिंग को एक सूची में परिवर्तित करता है।
list()
str()
Both of the above
None of the above
Previous Question
Next Question
25
See Explanation !
4
What is the output of the code print (9//2)
कोड प्रिंट का आउटपुट क्या है (9//2)
4.5
4.0
4
Error
Previous Question
Next Question
25
See Explanation !
5
____function reads a single line from the file; a newline character (\n) is left at the end of the string.
____फ़ंक्शन फ़ाइल से एक पंक्ति पढ़ता है; स्ट्रिंग के अंत में एक नई पंक्ति वर्ण (\n) छोड़ दिया जाता है।
read()
Readline()
write()
None of these
Previous Question
Next Question
25
See Explanation !
6
How can we create an empty list in Python ?
हम पायथन में एक खाली लिस्ट कैसे बना सकते हैं?
list=()
list.null
null.list
list=[]
Previous Question
Next Question
25
See Explanation !
7
Choose the correct function declaration of fun1() so that we can execute the following two function calls successfully. fun1(25, 75, 55) fun1(10, 20)
fun1() का सही फ़ंक्शन घोषणापत्र चुनें ताकि हम निम्नलिखित दो फ़ंक्शन कॉल सफलतापूर्वक निष्पादित कर सकें fun1(25, 75, 55) fun1(10, 20)
def fun1(**kwargs)
def fun1(args*)
No, it is not possible in Python
def fun1(*data)
Previous Question
Next Question
25
See Explanation !
8
n the Python statement x =a + 5 - b : a + 5 - b is
n पायथन कथन x =a 5 - b : a 5 - b है
Operands
Expression
operators
Equation
Previous Question
Next Question
25
See Explanation !
9
What is the current syntax of remove a file?
remove() फाइल का वर्तमान सिंटैक्स क्या है?
remove((), file_name))
remove (new_file_name, current_file_name,)
remove (file_name)
All of the above
Previous Question
Next Question
25
See Explanation !
10
To retrieve the character at index 3 from string s=”Hello” what command do we execute (multiple answers allowed)?
स्ट्रिंग 3 = "हैलो" से इंडेक्स 3 पर character को रिट्रीव करने के लिए हम किस कमांड को एक्सक्यूट करते हैं (multiple answers allowed)?
s[]
s.getitem(3)
s.__getitem__(3)
s.getItem(3)
Previous Question
Next Question
25
See Explanation !
11
Correct syntax of file.writelines is?
File.writelines का सही वाक्यविन्यास है?
file.writelines(sequence)
fileObject.writelines()
fileObject.writelines(sequence)
none of the mentioned
Previous Question
Next Question
25
See Explanation !
12
What is the output of the following code? count=0 while count<3: print(count,end=" ") count+=1
निम्नलिखित कोड का आउटपुट क्या है? count=0 while count<3: print(count,end=" ") count+=1
0 1 2
1 2 3
0 1 2 3
Error
Previous Question
Next Question
25
See Explanation !
13
What will be the output of the following Python code snippet? x = 'abcd' for i in range(len(x)): i.upper() print (x)
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? x = 'abcd' for i in range(len(x)): i.upper() print (x)
a b c d
0 1 2 3
error
none of the mentioned
Previous Question
Next Question
25
See Explanation !
14
If b is a dictionary, what does any(b) do?
यदि b एक डिक्शनरी है, तो कोई भी (b) क्या करता है?
Returns True if any key of the dictionary is true
Returns False if dictionary is empty
Returns True if all keys of the dictionary are true
Method any() doesn’t exist for dictionary
Previous Question
Next Question
25
See Explanation !
15
Which of the following is a valid arithmetic operator in Python?
पायथन में निम्नलिखित में से कौन एक मान्य अंकगणितीय ऑपरेटर है?
/ /
>
and
?
Previous Question
Next Question
25
See Explanation !
16
What will be the output of the following Python code snippet? print('11'.isnumeric())
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? print('11'.isnumeric ())
True
False
None
Error
Previous Question
Next Question
25
See Explanation !
17
What will be the output of the following Python code? a={1:"A",2:"B",3:"C"} for i in a: print(i,end=" ")
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? a={1:"A",2:"B",3:"C"} for i in a: print(i,end=" ")
1 2 3
‘A’ ‘B’ ‘C’
1 ‘A’ 2 ‘B’ 3 ‘C’
Error, it should be: for i in a.items():
Previous Question
Next Question
25
See Explanation !
18
What is the output of following Python code? >>print(5*(2//3))
निम्नलिखित पायथन कोड का आउटपुट क्या है? >>print(5*(2//3))
3
3.3
0
error
Previous Question
Next Question
25
See Explanation !
19
What is NumPy?
NumPy क्या है?
A machine learning library
A web development framework
A numerical computing library in Python
A data visualization tool
Previous Question
Next Question
25
See Explanation !
20
What will be the output of the following Python code snippet? print('abcdefcdghcd'.split('cd'))
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? print('abcdefcdghcd '.split (' cd '))
[‘ab’, ‘ef’, ‘gh’]
[‘ab’, ‘ef’, ‘gh’, ”]
(‘ab’, ‘ef’, ‘gh’)
(‘ab’, ‘ef’, ‘gh’, ”)
Previous Question
Next Question
25
See Explanation !
21
The _____ function converts the specified value into a string.
_____ फ़ंक्शन निर्दिष्ट मान को स्ट्रिंग में परिवर्तित करता है।
str()
int()
String()
None of these
Previous Question
Next Question
25
See Explanation !
22
What will be the output of the following Python code? example = "snow world" example[3] = 's' print (example)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? example = "snow world" example[3] = 's' print (example)
snow
snow world
Error
snos world
Previous Question
Next Question
25
See Explanation !
23
What will be the output of the following Python code? a=dict() print(a[1])
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? a=dict() print(a[1])
An exception is thrown since the dictionary is empty
‘ ‘
1
0
Previous Question
Next Question
25
See Explanation !
24
What will the following code output? a=55 b=’55’ print( a is not b)
निम्नलिखित कोड क्या आउटपुट देगा? a=55 b=’55’ print( a is not b)
True
False
55
TypeError
Previous Question
Next Question
25
See Explanation !
25
What will be the output of the following ? import numpy as np a=np.array([2,4]) b=np.array([3,5]) c=a*b print(c)
निम्नलिखित कोड का आउटपुट क्या होगा? import numpy as np a=np.array([2,4]) b=np.array([3,5]) c=a*b print(c)
[ 2 4 3 5]
[ 6 20]
[ 6 12 10 20]
26
Previous Question