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
In the Python statement x = a + 5 - b : a and b are
पायथन कथन में x = a 5 - b : a और b हैं
Operands
Expression
operators
Equation
Next Question
25
See Explanation !
2
Suppose i is 5 and j is 4, i + j is same as ________
मान लीजिए कि i 5 है और j 4 है, i + j ________ के समान है
i.__add(j)
i.__add__(j)
i.__Add(j)
i.__ADD(j)
Previous Question
Next Question
25
See Explanation !
3
Which of the following statement(s) will terminate the whole loop and proceed to the statement following the loop ?
निम्नलिखित में से कौन सा कथन पूरे लूप को समाप्त कर देगा और लूप के बाद के कथन पर आगे बढ़ेगा?
pass
break
continue
goto
Previous Question
Next Question
25
See Explanation !
4
Which type of Error generate, when the argument have invalid values specified?
किस प्रकार की त्रुटि उत्पन्न होती है, जब तर्क में अमान्य मान निर्दिष्ट होते हैं?
Value Error
Syntax Error
Logical Error
None of these
Previous Question
Next Question
25
See Explanation !
5
What is a correct method to split arrays?
सरणियों को विभाजित करने का सही तरीका क्या है?
array_split()
split()
split_array()
hstack() and vstack()
Previous Question
Next Question
25
See Explanation !
6
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 !
7
Which of the following is false about “from ….. import …… " form of import?
निम्नलिखित में से कौन सा आयात के "from ….. import …… " रूप के बारे में गलत है?
The syntax is: from module name import identifier
This form of import does not import anything
The namespace of imported module becomes part of importing module
The identifiers in module are accessed directly as: identifier
Previous Question
Next Question
25
See Explanation !
8
Which syntax would print every other item from the array below: arr = np.array([1,2,3,4,5,6,7])
कौन सा सिंटैक्स नीचे दिए गए सरणी से हर दूसरे आइटम को प्रिंट करेगा: arr = np.array([1,2,3,4,5,6,7])
print(arr[1:3:5:7])
print(arr[::2])
print(arr(0:step=2))
print(arr[2:2:2])
Previous Question
Next Question
25
See Explanation !
9
The process of drawing a flowchart for an algorithms is called
एक एल्गोरिदम के लिए एक फ्लोचार्ट बनाने की प्रक्रिया को कहा जाता है
Performance
Algorithmic Representation
Evaluation
Flowcharting
Previous Question
Next Question
25
See Explanation !
10
Python is a/an _________ language.
पायथन एक _________ भाषा है।
High Level
Low Level
Procedural
Difficult
Previous Question
Next Question
25
See Explanation !
11
What is the output of the following y='klmn' for i in range(len(y)): print(y)
निम्नलिखित कोड का परिणाम क्या है ? y='klmn' for i in range(len(y)): print(y)
klmn klmn klmn klmn
k
kkk
None of the these
Previous Question
Next Question
25
See Explanation !
12
What will be the output of the following Python code? print('abcdefcdgh'.partition('cd'))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? print('abcdefcdgh '.partition (' cd '))
(‘ab’, ‘cd’, ‘ef’, ‘cd’, ‘gh’)
(‘ab’, ‘cd’, ‘efcdgh’)
(‘abcdef’, ‘cd’, ‘gh’)
error
Previous Question
Next Question
25
See Explanation !
13
What is the the value of x when x=math.factorial(0)
x का मान क्या है जब x=math.factorial(0)
0
1
11
10
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[:-1]: print(i, end = " ")
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? x = "abcdef" i = "a" जबकि i x में [:-1]: print(i, end = "")
a a a a a
a a a a a a
a a a a a a … infinite Time
a
Previous Question
Next Question
25
See Explanation !
15
What will be the output of the following Python code snippet? print('xyyxyyxyxyxxy'.replace('xy', '12', 100))
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? print(' xyyyxyxyxxy '.replace (' xy ', '12 ', 100))
xyyxyyxyxyxxy
12y12y1212x12
none of the mentioned
error
Previous Question
Next Question
25
See Explanation !
16
Which of the following methods will create a copy of a list?
निम्नलिखित में से कौन सा तरीका एक सूची की एक प्रति बनाएगा?
copy = list(original)
copy = original[:]
copy = original.copy()
All of the above
Previous Question
Next Question
25
See Explanation !
17
The offset of the local DST time zone.
स्थानीय डीएसटी समय क्षेत्र का ऑफसेट।
Time.altzone
alt.Timezone
zone.altTime
None
Previous Question
Next Question
25
See Explanation !
18
Which of the following statements is used to check if a file exists in Python?
निम्नलिखित में से किस फंक्शन का उपयोग यह जांचने के लिए किया जाता है कि कोई फ़ाइल पायथन में मौजूद है या नहीं?
file_exists()
exists_file()
os.path.exists()
check_file()
Previous Question
Next Question
25
See Explanation !
19
What happens if the condition in a while loop is initially False?
यदि थोड़ी देर के लूप में स्थिति शुरू में गलत हो तो क्या होगा?
The loop runs indefinitely.
The loop executes once before terminating.
The loop does not execute.
It raises an error
Previous Question
Next Question
25
See Explanation !
20
Which of the statements about modules is false?
मॉड्यूल के बारे में कौन से कथन गलत हैं?
In the “from-import" form of import, identifiers beginning with two underscores are private and aren't imported.
dir() built-in function monitors the items in the namespace of the main module.
In the "from-import" form of import, all identifiers regardless of whether they are private or public are imported.
When a module is loaded, a compiled version of the module with file extension .pyc is automatically produced.
Previous Question
Next Question
25
See Explanation !
21
What will be the value of the following Python expression? print(4+2**5//10)
निम्नलिखित पायथन एक्सप्रेशन का मान क्या होगा? print(4 2**5 // 10)
3
7
77
0
Previous Question
Next Question
25
See Explanation !
22
The result of abs() is equal to math.fabs()?
क्या abs() फंक्शन math.fabs() के बराबर है?
Yes
No
Can't say
None of these
Previous Question
Next Question
25
See Explanation !
23
What will the following code output? a,b,c=3,5,6 b,c,a=a,b,c print(a,” ”,b,” ”,c)
निम्नलिखित कोड का आउटपुट क्या होगा? a,b,c=3,5,6 b,c,a=a,b,c print(a,” ”,b,” ”,c)
3 5 6
6 3 5
5 6 3
6 5 3
Previous Question
Next Question
25
See Explanation !
24
What is the purpose of an else block in loops?
लूप्स में else ब्लॉक का पर्पज़ क्या है?
To execute if the loop terminates normally without a break.
To execute after every iteration..
To handle errors in the loop.
To terminate the loop.
Previous Question
Next Question
25
See Explanation !
25
What will be the datatype of the var in the below code snippet? var = 10 | print(type(var)) | var = "Hello" | print(type(var))
नीचे दिए गए कोड स्निपेट में var का डेटाटाइप क्या होगा? var = 10 | print(type(var)) | var = "Hello" | print(type(var))
Str and int
int and int
str and str
int and str
Previous Question