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
File Processing in Python
Set 5
25
See Explanation !
1
A stores information in the form of a stream of ASCII or unicode characters i.e. human readable.
एक सूचन को मानव पठनीय अर्थात ASCII या यूनिकोड वर्णों की एक स्ट्रीम के रूप में संग्रहीत करती है।
Text file
Binary file
Both (A) and (B)
None of these
Next Question
25
See Explanation !
2
Which operator is used in Python to import modules from packages?
पैकेज से मॉड्यूल आयात करने के लिए पायथन में किस ऑपरेटर का उपयोग किया जाता है?
.
*
->
&
Previous Question
Next Question
25
See Explanation !
3
Modules are files saved with _____ extension.
मॉड्यूल _____ एक्सटेंशन के साथ सेव की गई फाइलें हैं।
.module
.py
both a & b
All of the above
Previous Question
Next Question
25
See Explanation !
4
Which of the following creates a pattern object?
निम्न में से कौन एक पैटर्न ऑब्जेक्ट बनाता है?
re.create(str)
re.regex(str)
re.compile(str)
re.assemble(str)
Previous Question
Next Question
25
See Explanation !
5
Which module in Python supports regular expressions?
पायथन में कौन सा मॉड्यूल रेगुलर एक्सप्रेशन का समर्थन करता है?
re
regex
pyregex
none of the mentioned
Previous Question
Next Question
25
See Explanation !
6
This imports * statement import all in the modules except those beginning with ____ .
यह imports * स्टेटमेन्ट मॉड्यूल में सभी नामों को इंपोर्ट करता है जो .......से शुरुआत करते हैं।
-
&
%
None of the above
Previous Question
Next Question
25
See Explanation !
7
Which of these definitions correctly describes a module?
इनमें से कौन सी परिभाषा सही ढंग से एक मॉड्यूल का वर्णन करती है?
Denoted by triple quotes for providing the specification of certain program elements
Design and implementation of specific functionality to be incorporated into a program
Defines the specification of how it is to be used
Any program that reuses code
Previous Question
Next Question
25
See Explanation !
8
What is Full form of LEGB ?
LEGB का फुल फॉर्म क्या है?
Low, Enclosing, Global and Built-in
Local, Enclosing, Global and Built-in
Local, Ending, Global and Built-in
Light, Emitting, Global and Built-in
Previous Question
Next Question
25
See Explanation !
9
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 !
10
os.getlogin() function return?
os.getlogin() फ़ंक्शन क्या रिटर्न करेगा ?
Return the name of the user logged in to the terminal
Return the email of the user logged in to the terminal
Return the login time when user logged in to the terminal
None of the above
Previous Question
Next Question
25
See Explanation !
11
random.shuffle() function shuffle value of
random.shuffle() फंक्शन किसकी वैल्यू को शफल करता है
take a sequence, like a list, and arrange the items in ascending order
take a sequence, like a list, and reorganize the order of the items.
take a sequence, like a list, and arrange the items in descending
take a sequence, like a list, and return the same copy of sequence
Previous Question
Next Question
25
See Explanation !
12
Which module in python can be used for working with network socket?
पायथन में किस मॉड्यूल का उपयोग नेटवर्क सॉकेट के साथ काम करने के लिए किया जा सकता है?
HTTP
urllib
socket
header
Previous Question
Next Question
25
See Explanation !
13
Extension of python module is
पायथन मॉड्यूल का एक्सटेंशन क्या है
.mod
.module
.py
.python
Previous Question
Next Question
25
See Explanation !
14
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 !
15
Which of the following functions that retrieve information from the data type?
निम्नलिखित में से कौन सा कार्य डेटा प्रकार से जानकारी प्राप्त करता है?
Constructors
Retriever
Finder
Selectors
Previous Question
Next Question
25
See Explanation !
16
What is the output of the following code ? import numpy as np y = np.array([[11, 12, 13, 14], [32, 33, 34, 35]]) print(y.ndim)
निम्नलिखित कोड का आउटपुट क्या होगा? import numpy as np y = np.array([[11, 12, 13, 14], [32, 33, 34, 35]]) print(y.ndim)
1
2
3
0
Previous Question
Next Question
25
See Explanation !
17
What is the purpose of zeros() function used in NumPy array ?
NumPy सरणी में उपयोग किए जाने वाले शून्य () फ़ंक्शन का उद्देश्य क्या है?
To make a Matrix with all diagonal element 0
To make a Matrix with first row 0
To make a Matrix with all elements 0
None of the above
Previous Question
Next Question
25
See Explanation !
18
What is the output of the following code ? import numpy as np a = np.array([[1,2,3]]) print(a.shape)
निम्नलिखित कोड का आउटपुट क्या होगा? import numpy as np a = np.array([[1,2,3]]) print(a.shape)
(2,3)
(3,1)
(1,3)
None of These
Previous Question
Next Question
25
See Explanation !
19
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 !
20
What will be the output of the following ? import numpy as np a = np.array([[ 1,2,3,4], [5,6,7,8], [9,10,11,12]]) print(a[2,2])
निम्नलिखित कोड का आउटपुट क्या होगा? import numpy as np a = np.array([[ 1,2,3,4], [5,6,7,8], [9,10,11,12]]) print(a[2,2])
7
11
10
8
Previous Question
Next Question
25
See Explanation !
21
NumPY stands for?
NumPY का मतलब है?
Numbering Python
Number in Python
Numerical Python
Number for Python
Previous Question
Next Question
25
See Explanation !
22
What is the output of the following code? import numpy as np a = np.array([1,2,3,5,8]) b = np.array([0,1,5,4,2]) c = a + b c = c*a print (c[2])
निम्नलिखित कोड का आउटपुट क्या होगा? import numpy as np a = np.array([1,2,3,5,8]) b = np.array([0,1,5,4,2]) c = a + b c = c*a print (c[2])
6
24
0
None of these
Previous Question
Next Question
25
See Explanation !
23
What will be the output of the following ? import numpy as np a = np.array( [2, 3, 4, 5] ) b = np.arange(4) print(a+b)
निम्नलिखित कोड का आउटपुट क्या होगा? import numpy as np a = np.array( [2, 3, 4, 5] ) b = np.arange(4) print(a+b)
[2 3 4 5]
[3 4 5 6]
[1 2 3 4]
[2 4 6 8]
Previous Question
Next Question
25
See Explanation !
24
What will be the output of the following ? import numpy as np print(np.maximum([2, 3, 4], [1, 5, 2]))
निम्नलिखित कोड का आउटपुट क्या होगा? import numpy as np print(np.maximum([2, 3, 4], [1, 5, 2]))
[1 5 2]
[1 5 4]
[2 3 4]
[2 5 4]
Previous Question
Next Question
25
See Explanation !
25
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
Previous Question