Home
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
Other 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
2024
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
Set
25
See Explanation !
1
How are variable length arguments specified in the function heading?
फ़ंक्शन हेडिंग में वैरिएबल लेंथ आर्ग्यमन्ट कैसे स्पेसिफ़ाइड किए जाते हैं?
one star followed by a valid identifier
one underscore followed by a valid identifier
two stars followed by a valid identifier
two underscores followed by a valid identifier
Next Question
25
See Explanation !
2
Suppose a list with name arr, contains 5 elements, You can get the 2nd element from the list using?
मान लीजिए कि नाम arr वाली एक सूची, जिसमें 5 तत्व हैं, का उपयोग करके आप सूची से दूसरा तत्व प्राप्त कर सकते हैं?
arr[-2]
arr[2]
arr[-1]
arr[1]
Previous Question
Next Question
25
See Explanation !
3
What is 'pass' in python?
पायथन में 'pass' क्या है?
No Operation
No Action
Null Statement
Placeholder
Previous Question
Next Question
25
See Explanation !
4
What is the purpose of the else block in a Python loop?
पायथन लूप में अन्य ब्लॉक का पर्पज क्या है?
To execute when the loop is terminated using break.
To execute after the loop completes without encountering a break.
To restart the loop.
To execute before the loop starts
Previous Question
Next Question
25
See Explanation !
5
filter() is used to
filter() का उपयोग करने के लिए किया जाता है
constructs an iterator from elements of an iterable for which a function returns true.
filters the given sequence with the help of a function that tests each element in the sequence to be true or not.
Both of the above
None of the above
Previous Question
Next Question
25
See Explanation !
6
Which is/are the valid statement to print Hello Word in Python ?
पायथन में Hello Word को प्रिंट करने के लिए मान्य कथन क्या है/हैं?
print('Hello Word')
print("Hello Word")
print(Hello Word)
Both A and B
Previous Question
Next Question
25
See Explanation !
7
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 !
8
What is the main object type in NumPy that represents homogeneous arrays?
NumPy में मुख्य ऑब्जेक्ट प्रकार क्या है जो सजातीय सरणियों का प्रतिनिधित्व करता है?
List
Array
Matrix
Set
Previous Question
Next Question
25
See Explanation !
9
What will be the output of following expression : print(10/2+3*5)
निम्नलिखित कोड का आउटपुट क्या होगा? print(10/2+3*5)
20.0
20
40.0
40
Previous Question
Next Question
25
See Explanation !
10
Which statement will return one line from a file (file object is f) ?
कौन सा स्टेटमेंट फ़ाइल (file object is 'f) से एक पंक्ति प्रस्तुत करेगा |
f.readlines()
f.readline()
f.read()
f.line()
Previous Question
Next Question
25
See Explanation !
11
Negative count from the Right.
दाईं ओर से नकारात्मक गिनती।
L1[-2]
L1[-1]
L1[2]
None of the above
Previous Question
Next Question
25
See Explanation !
12
What will be the output of the following Python code? myList = [1, 5, 5, 5, 5, 1] max = myList[0] indexOfMax = 0 for i in range(1, len(myList)): if myList[i] > max: max = myList[i] indexOfMax = i print(indexOfMax)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? myList = [1, 5, 5, 5, 5, 1] max = myList[0] indexOfMax = 0 for i in range(1, len(myList)): if myList[i] > max: max = myList[i] indexOfMax = i print(indexOfMax)
1
2
3
4
Previous Question
Next Question
25
See Explanation !
13
What does the following code will print ? x=5 if x>3: print("Hello")
निम्नलिखित कोड क्या प्रिंट करेगा? x=5 if x>3: print("Hello")
Hello
Hello Hello
nothing
Hello Hello Hello Hello Hello
Previous Question
Next Question
25
See Explanation !
14
What keyword is used in Python to raise exceptions?
एक्सेप्शन उत्पन्न करने के लिए पायथन में किस कीवर्ड का उपयोग किया जाता है?
raise
goto
try
except
Previous Question
Next Question
25
See Explanation !
15
The process of finding errors in code is called as
कोड में त्रुटियों को खोजने की प्रक्रिया को कहा जाता है
Compiling
Running
Testing
Debugging
Previous Question
Next Question
25
See Explanation !
16
Which one is not a looping structure available in python.
पायथन में कौन सी लूपिंग स्ट्रक्चर अवेलबल नहीं है?
while loop
for loop
do while loop
all of these
Previous Question
Next Question
25
See Explanation !
17
What is the output of the following code ? ms = ('A','D', 'H','U','N','I','C') print(ms[1:4])
निम्नलिखित कोड का परिणाम क्या है ? ms = ('A','D', 'H','U','N','I','C') print(ms[1:4])
(‘D’, ‘H’, ‘U’)
(‘A’, ‘D’, ‘H’,’U’,’N’,’I’,’C’)
(‘D’,’H’,’U’,’N’,’I’,’C’)
(‘D’,’H’,’U’,’N’,’I’,’C’)
Previous Question
Next Question
25
See Explanation !
18
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 !
19
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 !
20
What will be the output of the following Python code? >>> a={5,6,7} >>> sum(a,5)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? >>> a={5,6,7} >>> sum(a,5)
5
23
18
Invalid syntax for sum method, too many arguments
Previous Question
Next Question
25
See Explanation !
21
Which one of the following is a valid Python if statement:
निम्नलिखित में से कौन एक मान्य पायथन है यदि कथन:
if a> = 2:
if (a>= 2)
if (a => 22)
if a >= 22
Previous Question
Next Question
25
See Explanation !
22
Which of the following operators has the highest precedence?
निम्नलिखित में से किस ऑपरेटर की सर्वोच्च प्राथमिकता है?
*
**
<
==
Previous Question
Next Question
25
See Explanation !
23
Both the functions randint and uniform accept ____________ parameters.
दोनों फ़ंक्शन में रैंडम और यूनिफार्म ____________ पैरामीटर्स को स्वीकार करते हैं।
0
1
3
2
Previous Question
Next Question
25
See Explanation !
24
Which term describes a loop that continues repeating without a terminating (ending) condition ?
कौन सा शब्द एक लूप का वर्णन करता है जो बिना किसी समाप्ति (समाप्त) स्थिति के दोहराना जारी रखता है?
Infinite Loop
conditional loop
unlimited loop
None of these
Previous Question
Next Question
25
See Explanation !
25
Which of the following is not a valid mode to open a file?
निम्नलिखित में से कौन सा फ़ाइल खोलने के लिए वैध मोड नहीं है?
ab
rw
r+
w+
Previous Question