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
The _____ function converts the specified value into a string.
_____ फ़ंक्शन निर्दिष्ट मान को स्ट्रिंग में परिवर्तित करता है।
str()
int()
String()
None of these
Next Question
25
See Explanation !
2
What will be the output of the following Python statement? print(chr(ord('b')+1))
निम्नलिखित पायथन कथन का आउटपुट क्या होगा? print(chr(ord('b')+1))
a
b
c
A
Previous Question
Next Question
25
See Explanation !
3
What will the following code output? print(4 & 5)
निम्नलिखित कोड आउटपुट क्या होगा? print(4 & 5)
4
5
0
1
Previous Question
Next Question
25
See Explanation !
4
What will be the output of the following ? import numpy as np a=np.array([2,4,1]) b=np.array([3,5]) c=a+b print(c)
निम्नलिखित कोड का आउटपुट क्या होगा? import numpy as np a=np.array([2,4,1]) b=np.array([3,5]) c=a+b print(c)
[2 4 1 3 5 ]
[5 9 1]
15
ValueError
Previous Question
Next Question
25
See Explanation !
5
Python is written in
पायथन को किस भाषा में लिखा जाता है?
Java
C
PHP
All of the above
Previous Question
Next Question
25
See Explanation !
6
Which of the following functions can help us to find the version of python that we are currently working on?
निम्नलिखित में से कौन सा फ़ंक्शन हमें वर्तमान में काम कर रहे Python के वर्जन को फाइंड करने में हेल्प कर सकता है?
sys.version
sys.version()
sys.version(0)
sys.version(1)
Previous Question
Next Question
25
See Explanation !
7
To insert 5 to the third position in list1, we use which command?
लिस्ट 1 में 5 से थर्ड पोज़िशन पर इन्सर्ट करने के लिए, हम किस कमांड का यूज़ करते हैं?
list1.insert(3, 5)
list1.insert(2, 5)
list1.add(3, 5)
list1.append(3, 5)
Previous Question
Next Question
25
See Explanation !
8
Which of the following is false about “from ….. import …… " form of import?
निम्नलिखित में से कौन सा आयात के "from ….. import …… " रूप के बारे में गलत है?
The syntax is: from module name import identifier
This form of import does not import anything
The namespace of imported module becomes part of importing module
The identifiers in module are accessed directly as: identifier
Previous Question
Next Question
25
See Explanation !
9
Which function is used to generate evenly spaced values within a specified range?
किसी निर्दिष्ट सीमा के भीतर समान दूरी वाले मान उत्पन्न करने के लिए किस फ़ंक्शन का उपयोग किया जाता है?
numpy.linspace()
numpy.range()
numpy.arrange()
numpy.spaceline()
Previous Question
Next Question
25
See Explanation !
10
What will be the output of the following Python code? a=[(2,4),(1,2),(3,9)] a.sort() print(a)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? a =[(2,4),(1,2),(3,9)] a.sort() print(a)
[(1, 2), (2, 4), (3, 9)]
[(2,4),(1,2),(3,9)]
Error because tuples are immutable
Error, tuple has no sort attribute
Previous Question
Next Question
25
See Explanation !
11
What will be the output of the following ? import numpy as np a=np.array([2,4,1]) b=a.copy() a[1]=3 print(b
निम्नलिखित कोड का आउटपुट क्या होगा? import numpy as np a=np.array([2,4,1]) b=a.copy() a[1]=3 print(b
[2 4 1]
[2 3 1]
[3 4 1]
[2 4 3]
Previous Question
Next Question
25
See Explanation !
12
If a={5,6,7,8}, which of the following statements is false?
यदि a = {5,6,7,8}, निम्नलिखित में से कौन सा स्टेट्मेंट गलत है?
print(len(a))
print(min(a))
a.remove(5)
a[2]=45
Previous Question
Next Question
25
See Explanation !
13
Which of the following can be a variable name in Python?
पायथन में निम्नलिखित में से कौन सा एक चर नाम हो सकता है?
123var
_var
if
var-name
Previous Question
Next Question
25
See Explanation !
14
What will be the result of the expression: 15 and 10?
अभिव्यक्ति का परिणाम क्या होगा: 15 और 10?
5
1
10
0
Previous Question
Next Question
25
See Explanation !
15
What is the output of the following code? a = {1:"A", 2: "B", 3: "C"} b = {4: "D", 5: "E"} a.update(b) print(a)
निम्नलिखित कोड का परिणाम क्या है ? a = {1:"A", 2: "B", 3: "C"} b = {4: "D", 5: "E"} a.update(b) print(a)
{1:’A’, 2: ‘B’,3: ‘C’}
{1: ‘A’, 2: ‘b’, 3: ‘c’, 4: ‘D’, 5: ‘E’}
Error
{4: ‘D’, 5: ‘E’}
Previous Question
Next Question
25
See Explanation !
16
Who developed Python?
पायथन किसने विकसित किया?
James Gosling
Guido van Rossum
Dennis Ritchie
Bjarne Stroustrup
Previous Question
Next Question
25
See Explanation !
17
Function range(0, 5, 2) will yield on iterable sequence like
फंक्शन रेंज(0, 5, 2) पुनरावर्तनीय अनुक्रम पर प्राप्त होगी जैसे
[0, 2, 4]
[1, 3, 5]
[0, 1, 2, 5]
[0, 5, 2]
Previous Question
Next Question
25
See Explanation !
18
How can you write data to a file in Python?
आप पायथन में किसी फ़ाइल में डेटा कैसे लिख सकते हैं?
write()
append()
add()
insert()
Previous Question
Next Question
25
See Explanation !
19
What will be the output of the following Code ? x=10, y=3 print(divmod(x,y))
निम्नलिखित कोड का आउटपुट क्या होगा? x=10, y=3 print(divmod(x,y))
(3,1)
(4,2)
(5,7)
(1,3)
Previous Question
Next Question
25
See Explanation !
20
What will be the output of the following Python code snippet? d = {"john":40, "peter":45} print(d["john"])
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? d = {"john":40, "peter":45} print(d["john"])
40
45
“john”
“peter”
Previous Question
Next Question
25
See Explanation !
21
The _____ symbol is used at the beginning of a flow chart.
फ्लो चार्ट की शुरुआत में _____ प्रतीक का उपयोग किया जाता है।
Oval or Pill Shape
Rectangle
Diamond
None of these
Previous Question
Next Question
25
See Explanation !
22
What does the input() function do in Python?
पायथन में इनपुट() फ़ंक्शन क्या करता है?
Displays a message to the user.
Receives input from the user as an integer.
Receives input from the user as a string.
Both A and C
Previous Question
Next Question
25
See Explanation !
23
Algorithm when translated into a programming language is called
प्रोग्रामिंग भाषा में अनुवाद करने पर एल्गोरिथ्म को कहा जाता है
Flowchart
Identifier
Code
Debugging
Previous Question
Next Question
25
See Explanation !
24
This symbol is used to print more than one item on a single line.
इस सिंबल का इस्तेमाल एक ही लाइन में एक से ज़्यादा आइटम प्रिंट करने के लिए किया जाता है।
Semicolon(;)
Dollor($)
comma(,)
Colon(:)
Previous Question
Next Question
25
See Explanation !
25
The datatype whose representation is known are called
जिस डेटाटाइप का प्रतिनिधित्व ज्ञात है उसे कहा जाता है
Built in datatype
Derived datatype
Concrete datatype
Abstract datatype
Previous Question