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
What will be the output of the following Python code? a=[(2,4),(1,2),(3,9)] a.sort() print(a)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? a =[(2,4),(1,2),(3,9)] a.sort() print(a)
[(1, 2), (2, 4), (3, 9)]
[(2,4),(1,2),(3,9)]
Error because tuples are immutable
Error, tuple has no sort attribute
Next Question
25
See Explanation !
2
Which mode creates a new file if the file does not exist?
यदि फ़ाइल मौजूद नहीं है तो कौन सा मोड एक नई फाइल बनाता है?
write mode
read mode
append mode
Both (A) And (B)
Previous Question
Next Question
25
See Explanation !
3
Which of the following methods can be used with a tuple?
निम्नलिखित में से किस विधि का उपयोग टपल के साथ किया जा सकता है?
append()
insert()
index()
remove()
Previous Question
Next Question
25
See Explanation !
4
Suppose t = (1, 2, 4, 3), which of the following is incorrect?
मान लीजिए t = (1, 2, 4, 3), निम्न में से कौन गलत है?
print(t[3])
t[3] = 45
print(max(t))
print(len(t))
Previous Question
Next Question
25
See Explanation !
5
What will be the output of following code? print(“5”+5)
निम्नलिखित कोड का आउटपुट क्या होगा? print(" 5 "5)
55
10
5
Type Error
Previous Question
Next Question
25
See Explanation !
6
Which of the following language is understood by computer?
निम्नलिखित में से कौन सी भाषा कंप्यूटर द्वारा समझी जाती है?
Machine language
Assembly language
High-level language
None of these
Previous Question
Next Question
25
See Explanation !
7
Numpy was developed by___ .
Numpy को ___ द्वारा विकसित किया गया था।
Guido van Rosum
Travis Oliphant
Wes McKinney
Jim Hugunin
Previous Question
Next Question
25
See Explanation !
8
______ are the modes of both writing and reading in binary format in file.
______ फ़ाइल में द्विआधारी प्रारूप में लिखने और पढ़ने दोनों के तरीके हैं।
bw+
wb+
rb+
None of these
Previous Question
Next Question
25
See Explanation !
9
The data structure which is a mutable ordered sequence of elements is called
डेटा संरचना जो तत्वों का एक परिवर्तनशील क्रमबद्ध अनुक्रम है, कहलाती है
Built in
List
Tuple
Derived data
Previous Question
Next Question
25
See Explanation !
10
Flowchart and algorithms are used for
फ्लोचार्ट और एल्गोरिदम का उपयोग किसके लिए किया जाता है
Better programming
easy testing and debugging
Efficient Coding
All
Previous Question
Next Question
25
See Explanation !
11
What will the following code output? x=0 if x: print("True") else: print("False")
निम्नलिखित कोड क्या आउटपुट देगा? x=0 if x: print("True") else: print("False")
True
False
None
Error
Previous Question
Next Question
25
See Explanation !
12
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 !
13
find the output of following code: import math print(math.fabs(-3.4))
निम्नलिखित कोड का आउटपुट खोजें: import math print(math.fabs(-3.4))
-3.4
3.4
4.3
3
Previous Question
Next Question
25
See Explanation !
14
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 !
15
What are the three different types, of algorithm constructions?
एल्गोरिथ्म निर्माण के तीन अलग - अलग प्रकार क्या हैं?
Input/Output, Decision, Repeat
Loop, Input/Output, Process
Input, Output, Process
Sequence, Selection, Repeat
Previous Question
Next Question
25
See Explanation !
16
How can you perform element-wise addition of two NumPy arrays arr1 and arr2?
आप दो NumPy सरणियों arr1 और arr2 को एलिमेंट वाइज कैसे जोड़ सकते हैं?
arr1 + arr2
add(arr1, arr2)
arr1.add(arr2)
elementwise_add(arr1, arr2)
Previous Question
Next Question
25
See Explanation !
17
Debugging is used to:
डीबगिंग का इस्तेमाल इन चीज़ों के लिए किया जाता है:
Find errors from the program
Check the functionality of the program
Black box testing
All of the above
Previous Question
Next Question
25
See Explanation !
18
What will be the output of the following Python code? from math import* print(floor(3.7))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? from math import* print(floor(3.7))
3
4
3.0
None of These
Previous Question
Next Question
25
See Explanation !
19
Which syntax would print the last 3 numbers from the array below: arr = np.array([1,2,3,4,5,6,7])
नीचे दिए गए ऐरे से अंतिम 3 नंबर कौन सा सिंटैक्स प्रिंट करेगा: arr = np.array([1,2,3,4,5,6,7])
print(arr[3:])
print(arr[3])
print(arr[:3])
print(arr[4:])
Previous Question
Next Question
25
See Explanation !
20
What is the result of the following operation? print(3%7)
निम्नलिखित ऑपरेशन का परिणाम क्या है? प्रिंट(3%7)
4
3
2
1
Previous Question
Next Question
25
See Explanation !
21
What is default data type of NumPy Array
NumPy Array का डिफ़ॉल्ट डेटा प्रकार क्या है?
float
integer
string
boolean
Previous Question
Next Question
25
See Explanation !
22
Which of the following is a valid way to create an empty tuple?
खाली टपल बनाने के लिए निम्नलिखित में से कौन सा एक वैध तरीका है?
empty_tuple = ()
empty_tuple = tuple()
empty_tuple = []
Both A and B
Previous Question
Next Question
25
See Explanation !
23
What will be the output of the following Python code? for i in range(2.0): print(i)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? for i in range(2.0): print(i)
0.0 1.0
0 1
error
none of the mentioned
Previous Question
Next Question
25
See Explanation !
24
What will the following code produce? print(type(10))
निम्नलिखित कोड क्या उत्पन्न करेगा? print(type(10))
<class 'float’>
<class 'int'>
<class 'string'>
<class 'number'>
Previous Question
Next Question
25
See Explanation !
25
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
Previous Question