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
Identify the correct sequence of steps to run a program.
प्रोग्राम चलाने के लिए चरणों के सही अनुक्रम की पहचान करें।
Link, Load, Code, Compile, & Execute
Code, Compile, Link, Execute & Load
Code, Compile, Link, load & Execute
Compile, Code, Link, load, & Execute
Next Question
25
See Explanation !
2
f.read(5) will read________from a file (file object 'f')
f.read(5) एक फ़ाइल से________ पढ़ेगा (file object 'f')
5 characters
5 words
5 lines
None of the above
Previous Question
Next Question
25
See Explanation !
3
What will be the output of the following Python code? def foo(k): k[0] = 1 q = [0] foo(q) print(q)
निम्नलिखित पायथन फ़ंक्शन का आउटपुट क्या होगा? def foo(k): k[0] = 1 q = [0] foo(q) print(q)
[0]
[1]
[1, 0]
[0, 1]
Previous Question
Next Question
25
See Explanation !
4
What is the output of below program ? def maximum(x,y): if x>y: return x elif x==y: return "The number are equal" else: return y print(maximum(2,3))
निम्नलिखित कोड से कितनी संख्याएँ मुद्रित होंगी? def maximum(x,y): if x>y: return x elif x==y: return "The number are equal" else: return y print(maximum(2,3))
2
3
The number are equal
None of These
Previous Question
Next Question
25
See Explanation !
5
What will be the output of the following Python code snippet? d = {"john":40, "peter":45} print(list(d.keys()))
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? d = {"john":40, "peter":45} print(list(d.keys()))
[“john”, “peter”]
[“john”:40, “peter”:45]
(“john”, “peter”)
(“john”:40, “peter”:45)
Previous Question
Next Question
25
See Explanation !
6
Which of the following methods can be used with a tuple?
निम्नलिखित में से किस विधि का उपयोग टपल के साथ किया जा सकता है?
append()
insert()
index()
remove()
Previous Question
Next Question
25
See Explanation !
7
Python allows ____ operations on string data type .
पाइथन स्ट्रिंग डेटा प्रकार पर ____ संचालन की अनुमति देता है।
Concatenation
Membership
Slicing
All of the above
Previous Question
Next Question
25
See Explanation !
8
What is the length of sys.argv?
Sys.argv की लेंथ क्या है?
number of arguments
number of arguments + 1
number of arguments – 1
none of the mentioned
Previous Question
Next Question
25
See Explanation !
9
The syntax of seek() is: file_object.seek(offset [, reference_point]) What does the reference_point indicate?
seek () का सिंटैक्स है: file_object.seek(offset [, Reference_point]) रेफरेंस_पॉइंट क्या दर्शाता है?
reference_point indicates the current position of the file object
reference_point indicates the starting position of the file object
reference_point indicates the ending position of the file object
None of the above
Previous Question
Next Question
25
See Explanation !
10
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 !
11
What will be the output of the following Python code snippet? a = [0, 1, 2, 3] for a[-1] in a: print(a[-1])
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? a = [0, 1, 2, 3] for a[-1] in a: print(a[-1])
0 1 2 3
0 1 2 2
3 3 3 3
error
Previous Question
Next Question
25
See Explanation !
12
Which is the most appropriate definition for recursion?
पुनरावृत्ति के लिए सबसे उपयुक्त परिभाषा कौन सी है?
A function that calls itself
A function execution instance that calls another execution instance of the same function
A class method that calls another class method
An in-built method that is automatically called
Previous Question
Next Question
25
See Explanation !
13
In python language, which of the following operators is the correct option for raising k to the power 1?
पायथन भाषा में, k को पावर 1 तक बढ़ाने के लिए निम्नलिखित में से कौन सा ऑपरेटर सही विकल्प है?
k^1
k**1
k^ ^1
k^*1
Previous Question
Next Question
25
See Explanation !
14
What happens when multiple if statements are used instead of if-elif?
क्या होता है जब if-elif के स्थान पर मल्टीपल if स्टेटमेंट्स का यूज़ किया जाता है?
Only the first condition is checked.
All conditions are checked, even if one is True.
It behaves the same as if-elif.
It raises an error.
Previous Question
Next Question
25
See Explanation !
15
What will be the output of the following ? print((range(4)))
निम्नलिखित कोड का परिणाम क्या है? print((range(4)))
0,1,2,3
[0,1,2,3]
range(0, 4)
(0,1,2,3)
Previous Question
Next Question
25
See Explanation !
16
Which denotes file binary mode?
फ़ाइल बाइनरी मोड को कौन दर्शाता है?
r
rb
w
r+
Previous Question
Next Question
25
See Explanation !
17
What is a correct method to split arrays?
सरणियों को विभाजित करने का सही तरीका क्या है?
array_split()
split()
split_array()
hstack() and vstack()
Previous Question
Next Question
25
See Explanation !
18
Leading white space at the beginning of each element, which is used to determine the group of statement
प्रत्येक तत्व की शुरुआत में अग्रणी सफेद स्थान, जिसका उपयोग कथन के समूह को निर्धारित करने के लिए किया जाता है
Testing
Indentation
Debugging
None of the above
Previous Question
Next Question
25
See Explanation !
19
The data type whose representation is known are called
जिस डेटा प्रकार का प्रतिनिधित्व ज्ञात है उसे कहा जाता है
Built in datatype
Derived datatype
Concrete datatype
Abstract datatype
Previous Question
Next Question
25
See Explanation !
20
What will be the output of the following Python code? def f1(a,b=[]): b.append(a) return b print(f1(2,[3,4]))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def f1(a,b=[]): b.append(a) return b print(f1(2,[3,4]))
[3,2,4]
[2,3,4]
Error
[3,4,2]
Previous Question
Next Question
25
See Explanation !
21
Which of the following function of dictionary gets all the keys from the dictionary?
शब्दकोश के निम्नलिखित में से कौन सा कार्य शब्दकोश से सभी कुंजी प्राप्त करता है?
getkeys ()
key()
keys()
None
Previous Question
Next Question
25
See Explanation !
22
What will be the output of the following Python code? def power(x, y=2): r=1 for i in range(y): r=r*x return r print(power(3)) print(power(3,3))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def power(x, y=2): r=1 for i in range(y): r=r*x return r print(power(3)) print(power(3,3))
212 32
9 27
567 98
None of the above
Previous Question
Next Question
25
See Explanation !
23
What will be the output of np.array([[1,2],[3,4]]).shape?
Np.array([[1,2],[3,4 ]).shape का आउटपुट क्या होगा?
(2,)
(2,2)
(4,)
(1,4)
Previous Question
Next Question
25
See Explanation !
24
What will be the output of the following Python code? from math import factorial print(math.factorial(5))
निम्नलिखित कोड का परिणाम क्या है ? from math import factorial print(math.factorial(5))
120
Nothing is printed
NameError: name 'math' is not defined
Error, the statement should be print factorial(5))
Previous Question
Next Question
25
See Explanation !
25
By using function _____ ,we can change the shape of the Numpy array in python.
फ़ंक्शन _____ का उपयोग करके,हम अजगर में Numpy सरणी के आकार को बदल सकते हैं।
shape ()
reshape()
change()
None of these
Previous Question