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
Which among the following list of operators has the highest precedence? +, -, **, %, /, <<, >>, |
ऑपरेटरों की निम्नलिखित सूची में से किसकी सर्वोच्च प्राथमिकता है? , -, **, %, /, <<, >>, |
<<
**
|
%
Next Question
25
See Explanation !
2
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 !
3
An empty / null statement in Python is _____ .
Python में एक खाली / शून्य कथन _____ है।
pass
null
empty
None
Previous Question
Next Question
25
See Explanation !
4
What will be the output of the following Python code? a={5,6,7,8} b={7,8,9,10} print(len(a+b))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? a={5,6,7,8} b={7,8,9,10} print(len(a+b))
8
Error, unsupported operand ‘+’ for sets
6
Nothing is displayed
Previous Question
Next Question
25
See Explanation !
5
_______ method converts all uppercase characters to lowercase and vice versa of the given string, and returns it.
_______ विधि सभी अपरकेस वर्णों को दिए गए स्ट्रिंग के लोअरकेस और इसके विपरीत में परिवर्तित करती है, और इसे वापस करती है।
swapcase
uppertolower()
lowertoUpper()
None of these
Previous Question
Next Question
25
See Explanation !
6
A stores information in the form of a stream of ASCII or unicode characters i.e. human readable.
एक सूचन को मानव पठनीय अर्थात ASCII या यूनिकोड वर्णों की एक स्ट्रीम के रूप में संग्रहीत करती है।
Text file
Binary file
Both (A) and (B)
None of these
Previous Question
Next Question
25
See Explanation !
7
What does the function re.match do?
फ़ंक्शन re.match क्या करता है?
matches a pattern at the start of the string.
matches a pattern at any position in the string.
such a function does not exist
none of the mentioned
Previous Question
Next Question
25
See Explanation !
8
Two main measures for the efficiency of an algorithm are
एक एल्गोरिथ्म की दक्षता के लिए दो मुख्य उपाय हैं
Processor and memory
Complexity and capacity
Time and space
Data and space
Previous Question
Next Question
25
See Explanation !
9
What will be the output of the following Python code snippet? a = [0, 1, 2, 3] for a[-1] in a: print(a[-1])
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? a = [0, 1, 2, 3] for a[-1] in a: print(a[-1])
0 1 2 3
0 1 2 2
3 3 3 3
error
Previous Question
Next Question
25
See Explanation !
10
What data type is the object below ? L=[1, 23, 'hello', 1]
नीचे दिया गया ऑब्जेक्ट किस डेटा प्रकार का है? L=[1, 23, 'hello', 1]
List
Dictionary
Tuple
Array
Previous Question
Next Question
25
See Explanation !
11
What will be the output of the following ? import numpy as np a = np.arange(1,5,2) print(a)
निम्नलिखित कोड का आउटपुट क्या होगा? import numpy as np a = np.arange(1,5,2) print(a)
[1 3 5]
[1 3]
[1,3]
[1,2,3,4,5]
Previous Question
Next Question
25
See Explanation !
12
What you can use to convert from a string to a list of character.
आप स्ट्रिंग से कैरेक्टर की लिस्ट में कन्वर्ट करने के लिए क्या इस्तेमाल कर सकते हैं।
list ()
str ()
chr()
None of these
Previous Question
Next Question
25
See Explanation !
13
What will be the output of the following Python code? i = 1 while False: if i%2 == 0: break print(i) i += 2
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? i = 1 जबकि False: if i%2 == 0: break print(i) i = 2
1
1 3 5 7 …
1 2 3 4 …
Nothing will be printed
Previous Question
Next Question
25
See Explanation !
14
what will the output of : 34//5+34%5 in python
पायथन में: 34//5+34%5 का आउटपुट क्या होगा
15
150
200
10
Previous Question
Next Question
25
See Explanation !
15
Which module is to be imported for using randint( ) function ?
randint () फ़ंक्शन का उपयोग करने के लिए कौन सा मॉड्यूल इम्पोर्ट किया जाना जरूरी है?
random
randrange
randomrange
rand
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
Give the output of : print((range(4)))
print((range(4))) का आउटपुट क्या होगा
range(0,5)
range(1,5)
range(1,4)
range(0,4)
Previous Question
Next Question
25
See Explanation !
18
Which of the following is an invalid statement in python.
निम्नलिखित में से कौन सा पायथन मे इनवैलिड स्टेटमेन्ट है ।
abc=2,00,000
a,b,c=200,300,400
a_b_c= 2,00,000
abc=200 300 400
Previous Question
Next Question
25
See Explanation !
19
Which of the following is the exponentiation operator in Python?
पायथन में घातांकन ऑपरेटर निम्नलिखित में से कौन सा है?
^
**
^^
exp()
Previous Question
Next Question
25
See Explanation !
20
What is recursion in python?
पाइथन में रिकर्शन फंक्शन के है
Repeating a process in a loop
Calling a function from within itself
Using a loop to iterate over elements
Breaking down a problem into smaller subproblems
Previous Question
Next Question
25
See Explanation !
21
Each line of a text file is terminated by a special character, called the ___
टेक्स्ट फाइल की प्रत्येक पंक्ति को एक विशेष कैरेक्टर द्वारा समाप्त किया जाता है, जिसे ____ कहा जाता है।
End of File
End of Line
End of Statement
End of program
Previous Question
Next Question
25
See Explanation !
22
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 !
23
Find the last element of list in Python? Assume 'bikes' is the name of list.
पायथन में सूची का अंतिम तत्व खोजें? मान लें कि 'बाइक' सूची का नाम है।
bikes[:-1]
bilkes[1]
bikes (:-1)
None of the above
Previous Question
Next Question
25
See Explanation !
24
You can obtain a value in a ______using a key for a single element.
आप एकल तत्व के लिए एक कुंजी का उपयोग करके ______ में एक मान प्राप्त कर सकते हैं।
List
dictionary
Tuple
None of these
Previous Question
Next Question
25
See Explanation !
25
Python operator always yields the result of
पायथन ऑपरेटर हमेशा का परिणाम देता है
integer
floating point
complex
all of these
Previous Question