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 after the following statements? a = 0 b = 3 while a + b < 8: a += 1 print(a, end='')
निम्नलिखित कथनों के बाद आउटपुट क्या होगा? a = 0 b = 3 while a + b < 8: a += 1 print(a, end='')
0 1 2 3 4
1 2 3 4 5 6
1 2 3 4 5
None of these
Next Question
25
See Explanation !
2
If a={5,6,7}, what happens when a.add(5) is executed?
यदि a = {5,6,7}, तो क्या होता है जब a.add (5) निष्पादित होता है?
a={5,5,6,7}
a={5,6,7}
Error as there is no add function for set data type
Error as 5 already exists in the set
Previous Question
Next Question
25
See Explanation !
3
Which of the following is Immutable object.
निम्नलिखित में से कौन अपरिवर्तनीय वस्तु है।
List
Tuple
Dictionary
All of the above
Previous Question
Next Question
25
See Explanation !
4
What will be the output of the following Python code? print("Welcome to Python".split())
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? print("Welcome to Python".split())
[“Welcome”, “to”, “Python”]
(“Welcome”, “to”, “Python”)
{“Welcome”, “to”, “Python”}
“Welcome”, “to”, “Python”
Previous Question
Next Question
25
See Explanation !
5
The readlines() method reads and returns ______ .
रीडलाइन () विधि पढ़ती है और ______ लौटाती है।
individual lines of a file.
A list of remaining lines of the entire file
Write individual lines
None of the Above
Previous Question
Next Question
25
See Explanation !
6
What will be the output of following? Y=[2,5J,6] Y.sort()
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? Y=[2,5J,6] Y.sort()
[2,6,5J]
[5J,2,6]
Error
[6,5J,2]
Previous Question
Next Question
25
See Explanation !
7
elif can be considered to be abbreviation of
elif किसका संक्षिप्त रूप माना जा सकता है
nested if
if..else
else if
if..elif
Previous Question
Next Question
25
See Explanation !
8
Which of the following Numpy operation are correct?
निम्नलिखित में से कौन सा Numpy ऑपरेशन सही है?
Mathematical and logical operations on arrays.
Fourier transforms and routines for shape manipulation.
Operations related to linear algebra.
All of the above
Previous Question
Next Question
25
See Explanation !
9
Which of the following cannot be returned by random.randrange(4)?
निम्नलिखित में से क्या random.randrange (4) द्वारा रिटर्न नहीं किया जा सकता है?
0
3
2.3
none of the mentioned
Previous Question
Next Question
25
See Explanation !
10
What will be the output of the following Python code snippet? print('Hello World'.istitle())
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? print(' Hello World '.istitle ())
True
False
None
Error
Previous Question
Next Question
25
See Explanation !
11
What is “Hello”.replace(“l”, “e”)?
“Hello”.replace(“l”, “e”) क्या है?
Heeeo
Heelo
Heleo
None
Previous Question
Next Question
25
See Explanation !
12
How do you insert a comment in Python?
आप पायथन में एक टिप्पणी कैसे सम्मिलित करते हैं?
<!-- This is Comment -->
// This is Comment
/* This is Comment */
# This is Comment
Previous Question
Next Question
25
See Explanation !
13
Which of the following isn’t true about dictionary keys?
निम्नलिखित में से कौन ड़िक्शनरी keys के बारे में सही नहीं है?
More than one key isn’t allowed
Keys must be immutable
Keys must be integers
When duplicate keys encountered, the last assignment wins
Previous Question
Next Question
25
See Explanation !
14
Python code can run on variety of plateforms, it means Python is a _____language.
पायथन कोड विभिन्न प्रकार के प्लेटफॉर्म पर चल सकता है, इसका मतलब है कि पायथन एक _____भाषा है।
Graphical
Cross-plateform
Plateform Dependent
All of these
Previous Question
Next Question
25
See Explanation !
15
Which of the following will never be displayed on executing print(random.choice({0: 1, 2: 3}))?
निम्नलिखित में से कौन सा प्रिंट निष्पादित करने पर कभी प्रदर्शित नहीं होगा (random.choice ({0: 1, 2: 3}))?
0
1
KeyError: 1
none of the mentioned
Previous Question
Next Question
25
See Explanation !
16
which one is an Assignment Operator
एसाइन्मेंट आपरेटर है :
#
=
/
&
Previous Question
Next Question
25
See Explanation !
17
The command is used to take input from the keyboard.
कमांड का उपयोग कीबोर्ड से इनपुट लेने के लिए किया जाता है।
Range
Input
Open
Pass
Previous Question
Next Question
25
See Explanation !
18
Suppose list1 is [3, 5, 25, 1, 3], what is min(list1)?
मान लीजिए list1 [3, 5, 25, 1, 3] है, तो min(list1) क्या है?
3
5
25
1
Previous Question
Next Question
25
See Explanation !
19
What is an algorithm
एल्गोरिथ्म क्या है
A flowchart
Step by step instructions used to solve a problem
A flowchart or pseudo code
A decision
Previous Question
Next Question
25
See Explanation !
20
Which of the following is an escape sequence for a new line character
निम्नलिखित में से कौन एक नए लाइन कैरेक्टर के लिए एक एस्केप सीक्वेंस है
\a
\t
\n
\b
Previous Question
Next Question
25
See Explanation !
21
What will be the output of the following Python code? example = "helle" print(example.rfind("e"))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? example = "helle" print(example.rfind("e"))
-1
4
3
1
Previous Question
Next Question
25
See Explanation !
22
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 !
23
The ____ provides pictorial representation of given problem.
____ दी गई समस्या का चित्रात्मक प्रतिनिधित्व प्रदान करता है।
Algorithm
Flowchart
Pseudocode
All of these
Previous Question
Next Question
25
See Explanation !
24
In order to store values in terms of key and value we use what core data type.
की और वैल्यू के संदर्भ में मानों को संग्रहीत करने के लिए हम किस कोर डेटा प्रकार का उपयोग करते हैं।
list
tuple
class
dictionary
Previous Question
Next Question
25
See Explanation !
25
Which of the following modules need to be imported to handle date time computations in Python?
दिनांक समय गणनाओं को संभालने के लिए निम्नलिखित में से किस मॉड्यूल को आयात करने की आवश्यकता है?
datetime
date
time
timedate
Previous Question