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 Python code? i = 1 while True: if i%2 == 0: break print(i) i += 2
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? i = 1 जबकि सही: यदि i%2 == 0: break print(i) i = 2
1
12
1 2 3 4 5 6 …
1 3 5 7 9 11 … infinite time
Next Question
25
See Explanation !
2
What will be the output of the following Python code? print("xyyzxyzxzxyy".endswith("xyy", 0, 2))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? print(" xyyzxyzxzxyy ".endswith(" xyyy ", 0, 2))
0
1
True
False
Previous Question
Next Question
25
See Explanation !
3
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 !
4
How can you close a file in Python after processing?
प्रसंस्करण के बाद आप पायथन में किसी फ़ाइल को कैसे बंद कर सकते हैं?
close_file()
file_close()
close()
end_file()
Previous Question
Next Question
25
See Explanation !
5
The symbol used for conditional statement n a flow chart is a ____
फ्लो चार्ट में सशर्त कथन के लिए उपयोग किया जाने वाला प्रतीक एक ____ है।
Diamond box
rectangular box
Circle shape
None of the above
Previous Question
Next Question
25
See Explanation !
6
What will be the output of the following code snippet? a=[1,2,3,4,5,6,7,8,9] a[::2]=10,20,30,40,50,60 print(a)
निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा? a=[1,2,3,4,5,6,7,8,9] a[:2]= 10,20,30,40,50,60 print(a)
ValueError: attempt to assign sequence of size 6 to extended slice of size 5
[10, 2, 20, 4, 30, 6, 40, 8, 50, 60]
[1, 2, 10, 20, 30, 40, 50, 60]
[1, 10, 3, 20, 5, 30, 7, 40, 9, 50, 60]
Previous Question
Next Question
25
See Explanation !
7
What will be the output of the following Python code? values = [[3, 4, 5, 1], [33, 6, 1, 2]] v = values[0][0] for lst in values: for element in lst: if v > element: v = element print(v)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? values = [[3, 4, 5, 1], [33, 6, 1, 2]] v = values[0][0] for lst in values: for element in lst: if v > element: v = element print(v)
1
3
5
6
Previous Question
Next Question
25
See Explanation !
8
To obtain a list of all the functions defined under sys module, which of the following functions can be used?
Sys मॉड्यूल के अंडर डिफाइन सभी फंक्शंस की एक लिस्ट प्राप्त करने के लिए, निम्नलिखित में से किस फ़ंक्शन का यूज़ किया जा सकता है?
print(sys)
print(dir.sys)
print(dir[sys])
print(dir(sys))
Previous Question
Next Question
25
See Explanation !
9
What type of data is : arr=[(1,1),(2,2),(3,3)]?
किस प्रकार का डेटा है : arr=[(1,1),(2,2),(3,3)]?
List of tuple
Tuple of List
Array of Tuples
Invalid Type
Previous Question
Next Question
25
See Explanation !
10
NumPY stands for. -
NumPY का अर्थ है -
Numbering Python
Number In Python
Numerical Python
None of the above
Previous Question
Next Question
25
See Explanation !
11
You don't have to pay for Python and you can view its source code too. It means Python is ..........
आपको पायथन के लिए भुगतान करने की ज़रूरत नहीं है और आप इसका सोर्स कोड भी देख सकते हैं। इसका मतलब है कि पायथन.......... है ।
Free and open source
freeware
open source
shareware
Previous Question
Next Question
25
See Explanation !
12
What will happen if you try to access a key that doesn’t exist in a dictionary?
अगर आप किसी ऐसी कुंजी को एक्सेस करने की कोशिश करते हैं, जो किसी शब्दकोश में मौजूद नहीं है, तो क्या होगा?
Returns None
Throws a KeyError
Creates a new key with a default value
Crashes the program
Previous Question
Next Question
25
See Explanation !
13
What is the use of seek() method in files?
फाइलों में seek() फंक्शन का क्या उपयोग है?
sets the file's current position at the offset
sets the file's previous position at the offset
sets the file's current position within the file
None of these
Previous Question
Next Question
25
See Explanation !
14
Function range(10, 5, -2) will yield an iterable sequence like
फंक्शन रेंज(10, 5, -2) से एक पुनरावर्तनीय अनुक्रम प्राप्त होगा जैसे
[10, 8, 6]
[9, 7, 5]
[6, 8, 10]
[5, 7, 9]
Previous Question
Next Question
25
See Explanation !
15
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 !
16
Algorithm when transalated into a programming language is called...
प्रोग्रामिंग भाषा में ट्रांसलेट होने पर एल्गोरिथ्म को कहा जाता है...
Flowchart
Identifier
code
Debugging
Previous Question
Next Question
25
See Explanation !
17
What is the output when we execute list(“hello”)?
जब हम सूची(" नमस्ते ") निष्पादित करते हैं तो आउटपुट क्या होता है?
[‘h’, ‘e’, ‘l’, ‘l’, ‘o’]
[‘hello’]
[‘llo’]
[‘olleh’]
Previous Question
Next Question
25
See Explanation !
18
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 !
19
Which of the following is a feature of DocString?
डॉकस्ट्रिंग की निम्नलिखित में से कौन सी विशेषता है?
Provide a convenient way of associating documentation with Python modules, functions, classes, and methods.
All functions should have a docstring.
Docstrings can be accessed by the ___doc_attribute on objects.
All of the mentioned.
Previous Question
Next Question
25
See Explanation !
20
Suppose list1 is [3, 4, 5, 20, 5], what is list1.index(5)?
मान लीजिए कि list1 [3, 4, 5, 20, 5] है, list1.index (5) क्या है?
0
1
4
2
Previous Question
Next Question
25
See Explanation !
21
Given a string s="Welcome", which of the following code is incorrect ?
एक स्ट्रिंग s="Welcome" दी गई है, निम्नलिखित में से कौन सा कोड गलत है?
print s[0]
print s.lower()
s[1]='r'
print s.strip()
Previous Question
Next Question
25
See Explanation !
22
_____ reads one entire line from the file.
_____ फ़ाइल से एक पूरी पंक्ति पढ़ता है।
readline()
read()
readinglines()
None of these
Previous Question
Next Question
25
See Explanation !
23
What will be the output of following code import math print(math.pi)
निम्नलिखित कोड का आउटपुट क्या होगा import math print(math.pi)
5.354562653589793
3.141592653589793
7.867564234556778
9.048495456553358
Previous Question
Next Question
25
See Explanation !
24
What is full form of PVM?
पीवीएम (PVM) का पूर्ण रूप क्या है?
Python Visual Machine
Python Visual Mode
Python Virtual Machine
Python Virtual Mode
Previous Question
Next Question
25
See Explanation !
25
For two objects x and y, the expression x is y will yield True, if and only if
दो वस्तुओं x और y के लिए, व्यंजक x, y है, सत्य प्राप्त करेगा, यदि और केवल यदि
id(x) == id(y)
len(x) == len(y)
x == y
all of these
Previous Question