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
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
What will be the output of following Python code? import numpy as np a = np.array([(10,20,30)]) print(a.itemsize)
निम्नलिखित कोड का आउटपुट क्या होगा? import numpy as np a = np.array([(10,20,30)]) print(a.itemsize)
10
9
4
All of the mentioned above
Next Question
25
See Explanation !
2
The operator used to check if both the operands reference the same object memory, is the .......... operator.
ऑपरेटर यह जांचने के लिए प्रयोग किया जाता है कि क्या दोनों ऑपरेंड एक ही ऑब्जेक्ट मेमोरी को संदर्भित करते हैं, ……… ऑपरेटर है।
in
is
id
==
Previous Question
Next Question
25
See Explanation !
3
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 !
4
What is the output of the following code? for i in range(3): print(i,end=" ")
निम्नलिखित कोड का आउटपुट क्या है? for i in range(3): print(i,end=" ")
0 1 2
1 2 3
0 1 2 3
Error
Previous Question
Next Question
25
See Explanation !
5
Which keyword is used to exit a loop prematurely in Python?
पायथन में लूप से समय से पहले एग्जिट होने के लिए किस कीवर्ड का यूज़ किया जाता है?
exit
break
continue
stop
Previous Question
Next Question
25
See Explanation !
6
What will be the output of the following python code? def printMax(a,b): if a>b: print(a, "is maximum") elif a==b: print(a, "is equal to ",b) else: print(b, "is maximum") printMax(3,4)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def printMax(a,b): if a>b: print(a, "is maximum") elif a==b: print(a, "is equal to ",b) else: print(b, "is maximum") printMax(3,4)
3
4
4 is maximum
None of these
Previous Question
Next Question
25
See Explanation !
7
Give the output of: print(2^5)
इसका आउटपुट क्या होगा : print(2^5)
32
7
10
3
Previous Question
Next Question
25
See Explanation !
8
What will the following code output? a=5;b=7 b=a print(a,” ”,b)
निम्नलिखित कोड क्या आउटपुट देगा? a=5;b=7 b=a print(a,” ”,b)
5 7
7 5
5 5
7 7
Previous Question
Next Question
25
See Explanation !
9
Which of the following is not a valid set operation in python?
निम्नलिखित में से कौन सा पायथन में एक वैध सेट ऑपरेशन नहीं है?
Union
Intersection
Difference
None of the above
Previous Question
Next Question
25
See Explanation !
10
Which of the following functions is not defined under the sys module?
निम्नलिखित फंक्शंस में से कौन सी sys मॉड्यूल के अंडर डिफाइन नहीं है?
sys.platform
sys.path
sys.readline
sys.argv
Previous Question
Next Question
25
See Explanation !
11
which of the following is correct about Python ?
पाइथन के बारे में निम्नलिखित में से कौन सा सही है?
It supports automatic garbage collection.
It can be easily integrated with C, C++,Com, ActiveX, CORBA, and Java.
Both of the above
None of the above
Previous Question
Next Question
25
See Explanation !
12
What will be the output of the following code ? f=open("demo.txt","w+") f.write("Welcome to python") f.seek(5) a=f.read(5) print(a)
निम्नलिखित कोड का आउटपुट क्या होगा? f=open("demo.txt","w+") f.write("Welcome to python") f.seek(5) a=f.read(5) print(a)
Welco
me to
Welcome to Python
e to
Previous Question
Next Question
25
See Explanation !
13
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 !
14
What is the output of the following code? list1=[2, 33, 222, 14, 25] print(list1[ : -1 ])
निम्नलिखित कोड का आउटपुट क्या है? list1=[2, 33, 222, 14, 25] print(list1 [:-1])
[2, 33, 222, 14]
Error
25
[25, 14, 222, 33, 2]
Previous Question
Next Question
25
See Explanation !
15
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 !
16
What is the use of the zeros function in Numpy array in python?
अजगर में Numpy सरणी में शून्य फ़ंक्शन का क्या उपयोग है?
To make a Matrix with all element 0
To make a Matrix with all diagonal element
To make a Matrix with first Row 0
None of these
Previous Question
Next Question
25
See Explanation !
17
What will be the output of the following Code? def sum(x): return x*x print(sum(4))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def sum(x): return x*x print(sum(4))
16
4
8
64
Previous Question
Next Question
25
See Explanation !
18
Suppose list1 is [1, 3, 2], What is list1 * 2?
मान लीजिए list1 [1, 3, 2] है, list1 * 2 क्या है?
[2, 6, 4]
[1, 3, 2, 1, 3]
[1, 3, 2, 1, 3, 2]
[1, 3, 2, 3, 2, 1]
Previous Question
Next Question
25
See Explanation !
19
What is called when a function is defined inside a class?
जब किसी फ़ंक्शन को क्लास के अंदर परिभाषित किया जाता है तो उसे क्या कहा जाता है?
Module
Class
Another function
Method
Previous Question
Next Question
25
See Explanation !
20
Suppose list1 is [3, 4, 5, 20, 5, 25, 1, 3], what is list1.count(5)?
मान लीजिए कि लिस्ट1 है [3, 4, 5, 20, 5, 25, 1, 3], list1.count (5) क्या है?
0
4
1
2
Previous Question
Next Question
25
See Explanation !
21
Which of the following is a logical operator in Python?
निम्नलिखित में से कौन पायथन में एक लॉजिकल ऑपरेटर है?
and
or
not
All of the these
Previous Question
Next Question
25
See Explanation !
22
what is the output of the following code? M=['b' *x for x in range(4)] print(M)
निम्नलिखित कोड का परिणाम क्या है ? M=['b' *x for x in range(4)] print(M)
['', 'b', 'bb', 'bbb']
['b,'bb', "bbb', "bbbb']
['b','bb', bbb']
none of these
Previous Question
Next Question
25
See Explanation !
23
Which of the following is the correct way to write multiple lines to a file in Python?
पायथन में किसी फ़ाइल में एक से अधिक पंक्तियाँ लिखने का सही तरीका निम्नलिखित में से कौन सा है?
Use multiple write() statements.
Use writelines() method.
Use writeLine() method.
Use append() method.
Previous Question
Next Question
25
See Explanation !
24
What will be the output of the following python code? from math import * floor(11.7)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? from math import * floor(11.7)
12
11
11.0
none of these
Previous Question
Next Question
25
See Explanation !
25
Which of the following is not a valid namespace?
इनमें से कौन - सा एक मान्य नेमस्पेस नहीं है?
Global namespace
Public namespace
Built-in namespace
Local namespace
Previous Question