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
To retrieve the character at index 3 from string s=”Hello” what command do we execute (multiple answers allowed)?
स्ट्रिंग 3 = "हैलो" से इंडेक्स 3 पर character को रिट्रीव करने के लिए हम किस कमांड को एक्सक्यूट करते हैं (multiple answers allowed)?
s[]
s.getitem(3)
s.__getitem__(3)
s.getItem(3)
Next Question
25
See Explanation !
2
____ is a set of functions you want to include in your applications.
____ कार्यों का एक सेट है जिसे आप अपने अनुप्रयोगों में शामिल करना चाहते हैं।
Module
Function
Folder
None of these
Previous Question
Next Question
25
See Explanation !
3
The differences between tuples and lists are, the tuples cannot be changed unlike lists and tuples use whereas lists use square brackets.
ट्यूपल और सूचियों के बीच अंतर यह है कि सूचियों और ट्यूपल के उपयोग के विपरीत ट्यूपल को बदला नहीं जा सकता है जबकि सूचियां वर्ग कोष्ठक का उपयोग करती हैं।
Angular brackets
parentheses
curly brackets
None of these
Previous Question
Next Question
25
See Explanation !
4
What is the current syntax of remove a file?
remove() फाइल का वर्तमान सिंटैक्स क्या है?
remove((), file_name))
remove (new_file_name, current_file_name,)
remove (file_name)
All of the above
Previous Question
Next Question
25
See Explanation !
5
How are required arguments specified in the function heading?
फ़ंक्शन हेडिंग में आवश्यक आर्ग्यमन्ट कैसे स्पेसिफ़ाइड किए जाते हैं?
identifier followed by an equal to sign and the default value
identifier followed by the default value within backticks (“)
identifier followed by the default value within square brackets ([])
identifier
Previous Question
Next Question
25
See Explanation !
6
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 !
7
Which of the following statements is used to test multiple conditions in Python?
निम्नलिखित में से किस स्टेट्मेंट का यूज़ पायथन में मल्टिपल कंडीशन का टेस्ट करने के लिए किया जाता है?
if
if-else
elif
if-else-if
Previous Question
Next Question
25
See Explanation !
8
Which operator is also called as Conditional operator?
किस ऑपरेटर को कंडीशनल ऑपरेटर भी कहा जाता है?
Ternary
Relational
Logical
Assignment
Previous Question
Next Question
25
See Explanation !
9
What does the strip() method do in Python?
पाइथन में स्ट्रिप() विधि क्या करती है?
Removes all spaces from the string.
Removes the first and last character of the string.
Removes whitespace from the beginning and end of the string.
Converts the string into a list of characters.
Previous Question
Next Question
25
See Explanation !
10
Which of the following error is returned when we try to open a file in write mode which does not exist?
जब हम किसी ऐसी फ़ाइल को राइट मोड में खोलने की प्रयास करते हैं जो मौजूद नहीं है तो निम्न में से कौन सी एरर दिखाई देती है
File Found Error
File Not Exist Error
File Not Found Error
None of the above
Previous Question
Next Question
25
See Explanation !
11
what will the output of x=5+8*((3*5)-9)/10
x=5+8*((3*5)-9)/10 का आउटपुट क्या होगा
12.5
8
9.8
9
Previous Question
Next Question
25
See Explanation !
12
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 !
13
What is the primary purpose of NumPy in Python?
Python में NumPy का प्राथमिक उद्देश्य क्या है?
Web development
Machine learning and scientific computing
Game development
Database management
Previous Question
Next Question
25
See Explanation !
14
In which year was the Python 3.0 version developed?
पायथन 3.0 संस्करण किस वर्ष विकसित किया गया था?
2008
2010
2000
2005
Previous Question
Next Question
25
See Explanation !
15
What will be the output of the following Python code? a= [1, 2, 3, 4, 5] for i in range(1, 5): a[i-1] = a[i] for i in range(0, 5): print(a[i],end = " ")
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? a= [1, 2, 3, 4, 5] for i in range(1, 5): a[i-1] = a[i] for i in range(0, 5): print(a[i],end = " ")
5 5 1 2 3
5 1 2 3 4
2 3 4 5 1
2 3 4 5 5
Previous Question
Next Question
25
See Explanation !
16
______ functions is a built-in function in python language.
______ फ़ंक्शन Python भाषा में एक अंतर्निहित फ़ंक्शन है।
val()
print()
print In()
const()
Previous Question
Next Question
25
See Explanation !
17
Choose the correct option with respect to Python..
पायथन के संबंध में सही विकल्प चुनें..
In Python, a tuple can contain only integers as its elements.
In Python, a tuple can contain only strings as its elements.
In Python, a tuple can contain both integers and strings as its elements.
In Python, a tuple can contain either string or integer but not both at a time.
Previous Question
Next Question
25
See Explanation !
18
Suppose d = {“john”:40, “peter”:45}, what happens when we try to retrieve a value using the expression d[“susan”]?
मान लीजिए d = {“john”:40, “peter”:45}, तब क्या होता है जब हम d[“susan”] अभिव्यक्ति का उपयोग करके मान प्राप्त करने का प्रयास करते हैं?
Since “susan” is not a value in the set, Python raises a KeyError exception
It is executed fine and no exception is raised, and it returns None
Since “susan” is not a key in the set, Python raises a KeyError exception
Since “susan” is not a key in the set, Python raises a syntax error
Previous Question
Next Question
25
See Explanation !
19
What will be the output of the following Python code? values = [[3, 4, 5, 1 ], [33, 6, 1, 2]] for row in values: row.sort() for element in row: print(element, end = " ") print()
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? values = [[3, 4, 5, 1 ], [33, 6, 1, 2]] for row in values: row.sort() for element in row: print(element, end = " ") print()
The program prints two rows 3 4 5 1 followed by 33 6 1 2
The program prints on row 3 4 5 1 33 6 1 2
The program prints two rows 3 4 5 1 followed by 33 6 1 2
The program prints two rows 1 3 4 5 followed by 1 2 6 33
Previous Question
Next Question
25
See Explanation !
20
Which one of the following is the correct extension of the Python file.
निम्नलिखित में से कौन सा पायथन फ़ाइल का सही विस्तार है।
.py
.python
.p
None of these
Previous Question
Next Question
25
See Explanation !
21
What is the output of the following code ? import numpy as np y = np.array([[11, 12, 13, 14], [32, 33, 34, 35]]) print(y.ndim)
निम्नलिखित कोड का आउटपुट क्या होगा? import numpy as np y = np.array([[11, 12, 13, 14], [32, 33, 34, 35]]) print(y.ndim)
1
2
3
0
Previous Question
Next Question
25
See Explanation !
22
The function random.randint(4) can return only one of the following values. Which?
फ़ंक्शन random.randint (4) निम्न में से केवल एक वैल्यू रिटर्न कर सकता है। कौन से है ?
4
3.4
error
5
Previous Question
Next Question
25
See Explanation !
23
Which of the following functions can be used to find the coordinated universal time, assuming that the datetime module has already been imported?
निम्नलिखित कार्यों में से किसको कोआर्डिनेट यूनिवर्सल समय का पता लगाने के लिए यूज़ किया जा सकता है, यह मानते हुए कि डेटाइम मॉड्यूल पहले ही इम्पोर्ट किया जा चुका है?
datetime.utc()
datetime.datetime.utc()
datetime.utcnow()
datetime.datetime.utcnow()
Previous Question
Next Question
25
See Explanation !
24
what will the output of : print(5&3)
इसका आउटपुट क्या होगा: print(5&3)
1
8
True
False
Previous Question
Next Question
25
See Explanation !
25
What will be the output of the following Python code? x='abcd' for i in x: print(i.upper())
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? x='abcd' for i in x: print(i.upper())
a BCD
abcd
error
A B CD
Previous Question