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
The ______ statement lets the program go through the piece of code without performing any action.
______ कथन प्रोग्राम को कोई कार्रवाई किए बिना कोड के टुकड़े से गुजरने देता है।
pass
Get
Range
None of these
Next Question
25
See Explanation !
2
Which of the following is not a logical operator?
निम्नलिखित में से कौन एक लॉजिकल ऑपरेटर नहीं है?
or
equal
and
not
Previous Question
Next Question
25
See Explanation !
3
What will be the output of the following ? import numpy as np a = np.arange(5,1) print(a)
निम्नलिखित कोड का आउटपुट क्या होगा? import numpy as np a = np.arange(5,1) print(a)
[ ]
[1 2 3 4 5]
[5 4 3 2 1]
[1 2 3 4]
Previous Question
Next Question
25
See Explanation !
4
How can assertions be disabled in Python?
पायथन में दावे कैसे अक्षम किए जा सकते हैं?
Passing –O when running python
Assertions are disabled by default
Both A and B are wrong
Assertions cannot be disabled in python
Previous Question
Next Question
25
See Explanation !
5
The syntax of seek() is: file_object.seek(offset [, reference_point]) What does the reference_point indicate?
seek () का सिंटैक्स है: file_object.seek(offset [, Reference_point]) रेफरेंस_पॉइंट क्या दर्शाता है?
reference_point indicates the current position of the file object
reference_point indicates the starting position of the file object
reference_point indicates the ending position of the file object
None of the above
Previous Question
Next Question
25
See Explanation !
6
Which of the following is not a keyword in Python
पायथन में इनमें से कौन सा कीवर्ड कीवर्ड नहीं है
eval
assert
nonlocal
pass
Previous Question
Next Question
25
See Explanation !
7
Which one of these is NOT true about recursion?
इनमें से कौन सा पुनरावृत्ति के बारे में सही नहीं है?
We can replace a recursive function by a non-recursive function.
The memory space taken by the recursive functions is more than that of non-recursive function,
Running a recursive function is faster as compared to a non-recursive function.
The process of recursion makes it easier for users to understand a program.
Previous Question
Next Question
25
See Explanation !
8
What will be the output of the following Python code? x = "abcdef" i = "i" while i in x: print(i, end=" ")
MYMEMORY WARNING: YOU USED ALL AVAILABLE FREE TRANSLATIONS FOR TODAY. NEXT AVAILABLE IN 17 HOURS 14 MINUTES 31 SECONDS VISIT HTTPS://MYMEMORY.TRANSLATED.NET/DOC/USAGELIMITS.PHP TO TRANSLATE MORE
no output
i i i i i i …
a b c d e f
abcdef
Previous Question
Next Question
25
See Explanation !
9
The condition in the if statement should be in the form of
if स्टेटमेंट में शर्त इस प्रकार होनी चाहिए
Arithmetic or Relational expression
Arithmetic or Logical expression
Relational or Logical expression
Arithmetic
Previous Question
Next Question
25
See Explanation !
10
In the declaration, x = Circle (), x contains a _to Circle object. -
घोषणा में, x = Circle (), x में a_to Circle ऑब्जेक्ट है। -
dropna()
Reference
Optimisers
None of these
Previous Question
Next Question
25
See Explanation !
11
What will be the output of the following pseudo code? integer a,b | set a=9,b=5 | a=a mod(a-3) | b=b mod(b-3) | print a+b
निम्नलिखित छद्म कोड का आउटपुट क्या होगा? पूर्णांक a,b सेट a | =9,b = 5 a= a | mod(a -3) | b=b mod(b -3) | print a b
4
5
9
8
Previous Question
Next Question
25
See Explanation !
12
Which statement can be use to swap the values of an and b
a और b के मानों को स्वैप करने के लिए किस कथन का उपयोग किया जा सकता है?
a=b,b=a
a,b=b,a
a=b;b=a
a=b and b=a
Previous Question
Next Question
25
See Explanation !
13
Which of the following functions is a built-in function in python
निम्न में से कौन सा फंक्शन पायथन में बिल्ट-इन फंक्शन है
factorial()
print()
seed()
sqrt()
Previous Question
Next Question
25
See Explanation !
14
Which of the following functions does not throw an error?
निम्नलिखित में से कौन सा फंक्शन एरर नहीं देता है?
ord()
ord(‘ ‘)
ord(”)
ord(“”)
Previous Question
Next Question
25
See Explanation !
15
Which of the following expressions is an example of type conversion?
निम्नलिखित में से कौन सा व्यंजक प्रकार रूपांतरण का एक उदाहरण है?
4.0 + float(3)
5.3 + 6.3
5.0 + 3
3 + 7
Previous Question
Next Question
25
See Explanation !
16
Which of these is not true about recursion?
इनमें से कौन सा रिकर्शन के बारे में सच नहीं है?
Making the code look clean
A complex task can be broken into sub-problems
Recursive calls take up less memory
Sequence generation is easier than a nested iteration
Previous Question
Next Question
25
See Explanation !
17
What will be the output of the following Python function? sum(2,4,6) sum([1,2,3])
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? sum(2,4,6) sum([1,2,3])
Error, 6
12, Error
12, 6
Error, Error
Previous Question
Next Question
25
See Explanation !
18
Which of the following methods is not a string method in Python?
पायथन में निम्नलिखित में से कौन सी विधि स्ट्रिंग विधि नहीं है?
capitalize()
startswith()
pop()
find()
Previous Question
Next Question
25
See Explanation !
19
Shape() function in Numpy array is used to
Numpy सरणी में SHAPE () फ़ंक्शन का उपयोग किसके लिए किया जाता है?
Find the shape of the array
change the shape of array
Display elements
None of these
Previous Question
Next Question
25
See Explanation !
20
what will be the output of :print( 22//3+3/3)
निम्नलिखित कोड का आउटपुट क्या होगा? print( 22//3+3/3)
4
4.0
8
8.0
Previous Question
Next Question
25
See Explanation !
21
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 !
22
Which method is used to access some part of a string or substring.
स्ट्रिंग या सबस्ट्रिंग के कुछ हिस्से तक पहुंचने के लिए किस विधि का उपयोग किया जाता है।
slicer
Slicing
Membership
None of these-
Previous Question
Next Question
25
See Explanation !
23
To shuffle the list(say list1) what function do we use?
सूची में फेरबदल करने के लिए (list1 कहें) हम किस फ़ंक्शन का उपयोग करते हैं?
list1.shuffle()
shuffle(list1)
random.shuffle(list1)
random.shuffleList(list1)
Previous Question
Next Question
25
See Explanation !
24
Which of the following will not be returned by random.choice(“1 ,”)?
निम्नलिखित में से कौन सा random.choice(“1 ,”) द्वारा रिटर्न नहीं किया जाएगा?
1
(space)
'
none of the mentioned
Previous Question
Next Question
25
See Explanation !
25
A Python module is a file with the __________ file extension that contains valid Python code.
एक पायथन मॉड्यूल __________ फाइल एक्सटेंशन वाली एक फाइल है जिसमें वैध पायथन कोड होता है।
.pym
.pymodule
module
.py
Previous Question