Syllabus
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
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
2025
New!
2024
New!
2023
New!
2022
New!
2021
New!
2020
New!
2019
New!
2018
New!
2017
New!
2016
New!
2015
New!
2014
New!
2013
New!
2012
New!
2011
New!
Assignments
HTML
CSS
Javascript
Python
Practical Questions
New!
Log in
Sign Up
O Level Papers!
M3 R5: Programming and Problem Solving through Python
Set
25
See Explanation !
1
What will be the output of the following ? import numpy as np a = np.array([1, 5, 4, 7, 8]) a = a + 1 print(a[1])
निम्नलिखित कोड का आउटपुट क्या होगा? import numpy as np a = np.array([1, 5, 4, 7, 8]) a = a + 1 print(a[1])
4
5
6
7
Next Question
25
See Explanation !
2
What is the correct way to create a tuple with a single element?
एक ही तत्व के साथ एक टपल बनाने का सही तरीका क्या है?
(1)
(1,)
[1]
{1}
Previous Question
Next Question
25
See Explanation !
3
What will be the output of the following Python code? def foo(x): x[0] = ['def'] x[1] = ['abc'] return id(x) q = ['abc', 'def'] print(id(q) == foo(q))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def foo(x): x[0] = ['def'] x[1] = ['abc'] return id(x) q = ['abc', 'def'] print(id(q) == foo(q))
True
False
None
Error
Previous Question
Next Question
25
See Explanation !
4
Suppose d = {“john”:40, “peter”:45}, to delete the entry for “john” what command do we use?
मान लीजिए d = {“john”:40, “peter”:45}, “john” की प्रविष्टि हटाने के लिए हम किस कमांड का उपयोग करेंगे?
d.delete(“john”:40)
d.delete(“john”)
del d[“john”]
del d(“john”:40)
Previous Question
Next Question
25
See Explanation !
5
Which of the following statements are used in Exception Handling in Python?
पायथन में एक्सेप्शन हैंडलिंग में निम्नलिखित में से कौन सा कथन उपयोग किया जाता है?
try
except
finally
All of the above
Previous Question
Next Question
25
See Explanation !
6
what will the output of : 34//5+34%5 in python
पायथन में: 34//5+34%5 का आउटपुट क्या होगा
15
150
200
10
Previous Question
Next Question
25
See Explanation !
7
To create sequence of numbers,Numpy provides a function ____ analogous to range that returns arrays instead of lists.
संख्याओं का अनुक्रम बनाने के लिए,Numpy एक फ़ंक्शन प्रदान करता है ____ श्रेणी के अनुरूप जो सूचियों के बजाय सरणी देता है।
arange
aspace
aline
All of the above
Previous Question
Next Question
25
See Explanation !
8
To remove string “hello” from list1, we use which command?
लिस्ट1 से स्ट्रिंग "हैलो" को रिमूव करने के लिए, हम किस कमांड का यूज़ करते हैं?
list1.remove(“hello”)
list1.remove(hello)
list1.removeAll(“hello”)
list1.removeOne(“hello”)
Previous Question
Next Question
25
See Explanation !
9
Which module in python can be used for working with network socket?
पायथन में किस मॉड्यूल का उपयोग नेटवर्क सॉकेट के साथ काम करने के लिए किया जा सकता है?
HTTP
urllib
socket
header
Previous Question
Next Question
25
See Explanation !
10
What is the output of the following? x=123 for i in x: print(i)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? x=123 for i in x: print(i)
1 2 3
123
Error
none of these
Previous Question
Next Question
25
See Explanation !
11
What is the output of the following code? x = 50 def func (x): x = 2 func (x) print ('x is now', x)
निम्नलिखित कोड का परिणाम क्या है ? x = 50 def func (x): x = 2 func (x) print ('x is now', x)
x is now 50
x is now 2
x is now 100
Error
Previous Question
Next Question
25
See Explanation !
12
What will be the output of the following Python code? count={} count[(1,2,4)] = 5 count[(4,2,1)] = 7 count[(1,2)] = 6 count[(4,2,1)] = 2 tot = 0
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? count={} count[(1,2,4)] = 5 count[(4,2,1)] = 7 count[(1,2)] = 6 count[(4,2,1)] = 2 tot = 0 for i
25
17
16
Tuples can’t be made keys of a dictionary
Previous Question
Next Question
25
See Explanation !
13
Which one of the following has the highest precedence in the expression?
निम्नलिखित में से किस एक की अभिव्यक्ति में सर्वोच्च प्राथमिकता है?
Exponential
Addition
Multiplication
Parentheses
Previous Question
Next Question
25
See Explanation !
14
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 !
15
Error does not fall into any category
गड़बड़ी किसी भी श्रेणी में नहीं आती है
Syntax Error
Runtime Error
Value Error
None of these
Previous Question
Next Question
25
See Explanation !
16
Which of the following is not a keyword ?
निम्नलिखित में से कौन सा एक कीवर्ड नहीं है?
eval
nonlocal
assert
finally
Previous Question
Next Question
25
See Explanation !
17
What is the datatype of x ? import numpy as np a=np.array([1,2,3,4]) x=a.tolist()
X का डेटाटाइप क्या है? import numpy as np a=np.array([1,2,3,4]) x=a.tolist()
int
array
tuple
list
Previous Question
Next Question
25
See Explanation !
18
What will the following code output? a=555 b=55 print( b in a)
निम्नलिखित कोड क्या आउटपुट देगा? a=555 b=55 print( b in a)
True
False
55
TypeError
Previous Question
Next Question
25
See Explanation !
19
What will be the output of the following Python code? >>>max("what are you")
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? >>>MAX(" आप क्या हैं ")
what
y
a
Error
Previous Question
Next Question
25
See Explanation !
20
What will be the output of the following Python code? tuple1=(5,1,7,6,2) tuple1.pop(2) print(tuple1)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? tuple1=(5,1,7,6,2) tuple1.pop(2) print(tuple1)
(5,1,6,2)
(5,1,7,6)
(5,1,7,6,2)
Error
Previous Question
Next Question
25
See Explanation !
21
Which of the following is not a correct mode to open a file?
फाइल खोलने के लिए निम्न में से कौन सा सही मोड नहीं है?
ab
rw
a+
r+
Previous Question
Next Question
25
See Explanation !
22
The graphical representation of algorithm is
एल्गोरिथ्म का ग्राफिकल प्रतिनिधित्व है
program
Flowchart
statement
Algorithm
Previous Question
Next Question
25
See Explanation !
23
Given a function that does not return any value, What value is thrown by default when executed in shell.
एक फ़ंक्शन को देखते हुए जो किसी भी मान को वापस नहीं करता है, शेल में निष्पादित होने पर डिफ़ॉल्ट रूप से कौन सा मान फेंक दिया जाता है।
int
bool
void
None
Previous Question
Next Question
25
See Explanation !
24
What will be output for the following code ? import numpy as np a = np.array([[1, 2, 3],[0,1,4],[11,22,33]]) print (a.size)
निम्नलिखित कोड का आउटपुट क्या होगा? import numpy as np a = np.array([[1, 2, 3],[0,1,4],[11,22,33]]) print (a.size)
1
3
9
4
Previous Question
Next Question
25
See Explanation !
25
If we not see the rules of th programming language, we get ?
यदि हम प्रोग्रामिंग भाषा के नियमों को नहीं देखते हैं, तो हमें क्या मिलता है?
Runtime Error
Syntax Error
Logical Error
None of the above
Previous Question