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 value of p when p= int(17/2+11.5)?
जब p = int(17/2 11.5) होगा तो p का मान क्या होगा?
20
20.0
28
28.0
Next Question
25
See Explanation !
2
Which statement will open file data.txt in append mode?
कौन सा स्टेटमेंट data.txt फाइल को एपेंड मोड में खोलेगा?
f = open("data.txt", "a")
f = Open("data.txt", "ab")
f= new("data.txt", "a")
open("data.txt", "a")
Previous Question
Next Question
25
See Explanation !
3
Which of the following cannot be returned by random.randrange(4)?
निम्नलिखित में से क्या random.randrange (4) द्वारा रिटर्न नहीं किया जा सकता है?
0
3
2.3
none of the mentioned
Previous Question
Next Question
25
See Explanation !
4
What will be the output of the following Python code snippet? x = 'abcd' for i in range(len(x)): x = 'a' print(x)
MYMEMORY WARNING: YOU USED ALL AVAILABLE FREE TRANSLATIONS FOR TODAY. NEXT AVAILABLE IN 17 HOURS 04 MINUTES 55 SECONDS VISIT HTTPS://MYMEMORY.TRANSLATED.NET/DOC/USAGELIMITS.PHP TO TRANSLATE MORE
a
abcd abcd abcd
a a a a
none of the mentioned
Previous Question
Next Question
25
See Explanation !
5
What does the is keyword do in Python?
पायथन में कीवर्ड क्या करता है?
Checks if two variables have the same value.
Checks if two variables refer to the same object in memory.
Assigns a value to a variable.
None of the above
Previous Question
Next Question
25
See Explanation !
6
Using ndim we can find
ndim का उपयोग करके हम पा सकते हैं
We can find the dimension of the array
Size of array
Operational activities on Matrix
None of the mentioned above
Previous Question
Next Question
25
See Explanation !
7
What will be the output of the following Python statement? print(chr(ord('A')+32))
MYMEMORY WARNING: YOU USED ALL AVAILABLE FREE TRANSLATIONS FOR TODAY. NEXT AVAILABLE IN 16 HOURS 53 MINUTES 09 SECONDS VISIT HTTPS://MYMEMORY.TRANSLATED.NET/DOC/USAGELIMITS.PHP TO TRANSLATE MORE
A
B
a
Error
Previous Question
Next Question
25
See Explanation !
8
_____ reads one entire line from the file.
_____ फ़ाइल से एक पूरी पंक्ति पढ़ता है।
readline()
read()
readinglines()
None of these
Previous Question
Next Question
25
See Explanation !
9
What is the value of the expression 100 // 25 ?
व्यंजक 100//25 का मान क्या है?
4
4.0
2.5
None of These
Previous Question
Next Question
25
See Explanation !
10
What will be the output of the following Python statement? print(ord('b') - ord('a'))
निम्नलिखित पायथन कथन का आउटपुट क्या होगा? print(ord (' b ') - ord(' a '))
0
1
-1
2
Previous Question
Next Question
25
See Explanation !
11
To include the use of functions which are present in the random library, we must use the option:
उन फ़ंक्शन का उपयोग शामिल करने के लिए जो रैंडम लाइब्रेरी में मौजूद हैं, हमें किस ऑप्शन का यूज़ करना चाहिए:
import random
random.h
import.random
random.random
Previous Question
Next Question
25
See Explanation !
12
What are the attributes of numpy array?
Numpy सरणी के गुण क्या हैं?
shape, dtype, ndim
objects, type, list
objects, non vectorization
Unicode and shape
Previous Question
Next Question
25
See Explanation !
13
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 !
14
what is 'f' in the following statement? f=open("Data.txt","r")
निम्नलिखित कथन में 'f' क्या है? f=open("Data.txt","r")
file name
file handle
Mode of file
file handling
Previous Question
Next Question
25
See Explanation !
15
Which of the following operator in python evaluates to true if the variables on either side of the operator point to the same object and false otherwise?
अजगर में निम्नलिखित में से कौन सा ऑपरेटर सही का मूल्यांकन करता है यदि ऑपरेटर के दोनों ओर के चर एक ही वस्तु की ओर इशारा करते हैं और अन्यथा गलत हैं?
**
//
is
not in
Previous Question
Next Question
25
See Explanation !
16
What will be output for the following code ? import numpy as np ary=np.array([1,2,3,5,8]) ary=ary+1 print(ary[1])
निम्नलिखित कोड का परिणाम क्या है? import numpy as np ary=np.array([1,2,3,5,8]) ary=ary+1 print(ary[1])
0
1
2
3
Previous Question
Next Question
25
See Explanation !
17
Which of the following types of loops are not supported in Python?
निम्नलिखित में से किस प्रकार के लूप पायथन में सपोर्ट नहीं करता हैं?
for
While
do-while
None of these
Previous Question
Next Question
25
See Explanation !
18
which of the following is correct about Python ?
पाइथन के बारे में निम्नलिखित में से कौन सा सही है?
It supports automatic garbage collection.
It can be easily integrated with C, C++,Com, ActiveX, CORBA, and Java.
Both of the above
None of the above
Previous Question
Next Question
25
See Explanation !
19
Which of the following is a membership operator in Python?
निम्नलिखित में से कौन पायथन में एक सदस्यता ऑपरेटर है?
is
in
on
at
Previous Question
Next Question
25
See Explanation !
20
Which function is used to add an element (5) in the list1?
लिस्ट 1 में एक एलिमेंट (5 ) जोड़ने के लिए किस फंक्शन का प्रयोग किया जाता है ?
list1.sum(5)
list1.add(5)
listl.append(5)
list1.addelement(5)
Previous Question
Next Question
25
See Explanation !
21
Function defined to achieve some task as per the programmers requirement is called a :
प्रोग्रामर की आवश्यकता के अनुसार कुछ कार्य को पूरा करने के लिए परिभाषित फ़ंक्शन को कहा जाता है:
User Defined Function
Library Functions
Builtin Functions
All of the above
Previous Question
Next Question
25
See Explanation !
22
Can we write if / else into one line in python?
क्या हम पाइथन में एक लाइन में if / else लिख सकते हैं?
Yes
No
if / else not used in python
None of the above.
Previous Question
Next Question
25
See Explanation !
23
What will be the output of the following Python code? mylist=list("a#b#c#d".split('#')) print(mylist)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? mylist=list("a#b#c#d".split('#')) print(mylist)
[‘a’, ‘b’, ‘c’, ‘d’]
[‘a b c d’]
[‘a#b#c#d’]
[‘abcd’]
Previous Question
Next Question
25
See Explanation !
24
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 !
25
What is the range of values that random.random() can return?
उन वैल्यू की रेंज क्या है जो random.random () रिटर्न आ सकते हैं?
[0.0, 1.0]
(0.0, 1.0]
(0.0, 1.0)
[0.0, 1.0)
Previous Question