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? x = ['ab', 'cd'] for i in x: x.append(i.upper()) print(x)
X: x.append (i.upper ()) print(x) में i के लिए निम्नलिखित पायथन कोड का आउटपुट क्या होगा? x = [' ab ', 'cd ']
[‘AB’, ‘CD’]
[‘ab’, ‘cd’, ‘AB’, ‘CD’]
[‘ab’, ‘cd’]
Infinite Loop
Next Question
25
See Explanation !
2
What will be the output of the following Python code? d = {0: 'a', 1: 'b', 2: 'c'} for x in d.values(): print(d[x])
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? d = {0 :' a ', 1 :' b ', 2 :' c '} d.values () में x के लिए: print(d[x])
0 1 2
a b c
0 a 1 b 2 c
none of the mentioned
Previous Question
Next Question
25
See Explanation !
3
What will be the output of the following Python code snippet? print('HelloWorld'.istitle())
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? print('HelloWorld'.istitle ())
True
False
None
Error
Previous Question
Next Question
25
See Explanation !
4
What is the output of the following code ? def add(a, b): return a+5, b+5 result = add(3,2) print(result)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def add(a, b): return a+5, b+5 result = add(3,2) print(result)
15
8
(8,7)
Error
Previous Question
Next Question
25
See Explanation !
5
What happens when multiple if statements are used instead of if-elif?
क्या होता है जब if-elif के स्थान पर मल्टीपल if स्टेटमेंट्स का यूज़ किया जाता है?
Only the first condition is checked.
All conditions are checked, even if one is True.
It behaves the same as if-elif.
It raises an error.
Previous Question
Next Question
25
See Explanation !
6
Which of the following is a distinct syntactic block?
निम्नलिखित में से कौन सा एक विशिष्ट वाक्यात्मक ब्लॉक है?
Subroutines
Function
Definition
Modules
Previous Question
Next Question
25
See Explanation !
7
The _____ function converts the specified value into a string.
_____ फ़ंक्शन निर्दिष्ट मान को स्ट्रिंग में परिवर्तित करता है।
str()
int()
String()
None of these
Previous Question
Next Question
25
See Explanation !
8
Suppose list1 is [2445,133,12454,123], what is max(list1)?
मान लीजिए list1 [2445,133,12454,123] है, MAX(list1) क्या है?
2445
133
12454
123
Previous Question
Next Question
25
See Explanation !
9
A sequence of instruction, in a computer language, to get the desired result is known as
वांछित परिणाम प्राप्त करने के लिए कंप्यूटर भाषा में निर्देश का एक अनुक्रम के रूप में जाना जाता है
An algorithm
A decision table
A program
None of the above
Previous Question
Next Question
25
See Explanation !
10
What is 'pass' in python?
पायथन में 'pass' क्या है?
No Operation
No Action
Null Statement
Placeholder
Previous Question
Next Question
25
See Explanation !
11
If wd="Hello World" then which of the following statements will display last five characters of the string object?
यदि wd="Hello World" है तो निम्नलिखित में से कौन सा कथन स्ट्रिंग ऑब्जेक्ट के अंतिम पाँच अक्षर प्रदर्शित करेगा?
wd[4:]
wd[:4]
wd[-5:]
wd[:-4]
Previous Question
Next Question
25
See Explanation !
12
Provide the output for the expression: list = [1, 2] + [3, 4]
list= [1, 2] + [3, 4] का आउटपुट क्या होगा
[4,6]
[1, 2, 3, 4]
10
Error in Code
Previous Question
Next Question
25
See Explanation !
13
Which of the following is correct in respect of advantages of functions?
फ़ंक्शंस के फायदों के संबंध में निम्नलिखित में से कौन सा सही है?
Decomposing complex problems into simpler pieces
Reducing duplication of code
both A and B
None of the above.
Previous Question
Next Question
25
See Explanation !
14
What will be the output of the following Python code? x = "abcdef" i = "a" while i in x: x = x[1:] print(i, end = " ")
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? x = "abcdef" i = "a" जबकि i x: x = x[1:] print(i, end = "")
a a a a a a
a
no output
error
Previous Question
Next Question
25
See Explanation !
15
What is the result of the following code? print(10 / 2.0)
निम्नलिखित कोड का परिणाम क्या है? print(10 / 2.0)
5
5.0
10
Error
Previous Question
Next Question
25
See Explanation !
16
A sequence of immutable objects is called
अपरिवर्तनीय वस्तुओं का क्रम कहलाता है
Built in
List
Tuple
Derived data
Previous Question
Next Question
25
See Explanation !
17
Designing the problem in known as
समस्या को डिजाइन करना जिसे के रूप में जाना जाता है
Testing
Debugging
logical error
Algorithm
Previous Question
Next Question
25
See Explanation !
18
Which of the following is not a keyword in Python
पायथन में इनमें से कौन सा कीवर्ड कीवर्ड नहीं है
eval
assert
nonlocal
pass
Previous Question
Next Question
25
See Explanation !
19
Which denotes file binary mode?
फ़ाइल बाइनरी मोड को कौन दर्शाता है?
r
rb
w
r+
Previous Question
Next Question
25
See Explanation !
20
What is the range of values that random.random() can return?
उन वैल्यू की रेंज क्या है जो random.random () रिटर्न आ सकते हैं?
[0.0, 1.0]
(0.0, 1.0]
(0.0, 1.0)
[0.0, 1.0)
Previous Question
Next Question
25
See Explanation !
21
What will be the output of : print((-3)**2)
इसका आउटपुट क्या होगा: print((-3)**2)
-9
9
6
-6
Previous Question
Next Question
25
See Explanation !
22
The part of a machine level instruction, which tells the central processor what has to be done, is
मशीन स्तर के निर्देश का हिस्सा, जो केंद्रीय प्रोसेसर को बताता है कि क्या करना है, है
An operation code
An address
An operand
None of the above
Previous Question
Next Question
25
See Explanation !
23
Which of the following methods is used to check if a string starts with a specific prefix?
निम्नलिखित में से किस विधि का उपयोग यह जांचने के लिए किया जाता है कि कोई स्ट्रिंग किसी विशिष्ट उपसर्ग से शुरू होती है या नहीं?
startswith()
startswith_prefix()
startswithwith()
startswiths()
Previous Question
Next Question
25
See Explanation !
24
Suppose d = {“john”:40, “peter”:45}. To obtain the number of entries in dictionary which command do we use?
मान लीजिए d = {“john”:40, “peter”:45}. शब्दकोश में प्रविष्टियों की संख्या प्राप्त करने के लिए हम किस कमांड का उपयोग करते हैं?
d.size()
len(d)
size(d)
d.len()
Previous Question
Next Question
25
See Explanation !
25
What will be the output of the following Python code? a={1:"A",2:"B",3:"C"} a.clear() print(a)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? a={1:"A",2:"B",3:"C"} a.clear() print(a)
None
{ None:None, None:None, None:None}
{1:None, 2:None, 3:None}
{ }
Previous Question