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
Users write the programs in which language?
यूज़र प्रोग्राम किस भाषा में लिखते हैं?
Low-level Language
High-level Language
Middle-level Language
None of these
Next Question
25
See Explanation !
2
What is the output of the following code? x = 50 def func (x): x = 2 func (x) print ('x is now', x)
निम्नलिखित कोड का परिणाम क्या है ? x = 50 def func (x): x = 2 func (x) print ('x is now', x)
x is now 50
x is now 2
x is now 100
Error
Previous Question
Next Question
25
See Explanation !
3
Which of these in not a core data type in python?
इनमें से कौन सा पायथन में कोर डेटा प्रकार नहीं है?
Lists
Dictionary
Tuples
Class
Previous Question
Next Question
25
See Explanation !
4
What will be the output of the following Python code? d = {0, 1, 2} for x in d.values(): print(x)
MYMEMORY WARNING: YOU USED ALL AVAILABLE FREE TRANSLATIONS FOR TODAY. NEXT AVAILABLE IN 17 HOURS 03 MINUTES 33 SECONDS VISIT HTTPS://MYMEMORY.TRANSLATED.NET/DOC/USAGELIMITS.PHP TO TRANSLATE MORE
0 1 2
None None None
error
none of the mentioned
Previous Question
Next Question
25
See Explanation !
5
Work of tell() method in file processing is
फाइल प्रोसेसिंग में tell() फंक्शन का कार्य है
Tells you the current position within the file.
Tells the size of file you read
Tells the start position of the file.
Tells the end position of the file.
Previous Question
Next Question
25
See Explanation !
6
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 !
7
Which of the following modules need to be imported to handle date time computations in Python?
दिनांक समय गणनाओं को संभालने के लिए निम्नलिखित में से किस मॉड्यूल को आयात करने की आवश्यकता है?
datetime
date
time
timedate
Previous Question
Next Question
25
See Explanation !
8
What is the output of the following program ? print "Hello World".[::-1]
निम्नलिखित प्रोग्राम का आउटपुट क्या है? print "Hello World".[::-1]
dlroWolleH
Hello Worl
d
Error
Previous Question
Next Question
25
See Explanation !
9
What is the output of the following code? a=set('abc') | b=set('cdef') | print(a&b)
निम्नलिखित कोड का आउटपुट क्या है? a=set(' abc ') | b=set(' cdef ') | print(a
{'c'}
{'a','b','c','d','e','r'}
{c}
None of these
Previous Question
Next Question
25
See Explanation !
10
Which of the following is a floor division operator?
निम्नलिखित में से कौन एक फ्लोर डिवीजन ऑपरेटर है?
%
/
//
||
Previous Question
Next Question
25
See Explanation !
11
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 !
12
what will the output of following code my_string="Hello,world" print(my_string[-6:-1])
निम्नलिखित कोड का आउटपुट क्या होगा my_string ="हैलो,वर्ल्ड" प्रिंट(my_string [-6:-1])
,worl
worl
world
oworld
Previous Question
Next Question
25
See Explanation !
13
Which of the following methods is used to check if a string starts with a specific prefix?
निम्नलिखित में से किस विधि का उपयोग यह जांचने के लिए किया जाता है कि कोई स्ट्रिंग किसी विशिष्ट उपसर्ग से शुरू होती है या नहीं?
startswith()
startswith_prefix()
startswithwith()
startswiths()
Previous Question
Next Question
25
See Explanation !
14
What will be the output of the following Python code? example = "snow world" example[3] = 's' print (example)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? example = "snow world" example[3] = 's' print (example)
snow
snow world
Error
snos world
Previous Question
Next Question
25
See Explanation !
15
Provide the output for the expression: list = [1, 2] + [3, 4]
list= [1, 2] + [3, 4] का आउटपुट क्या होगा
[4,6]
[1, 2, 3, 4]
10
Error in Code
Previous Question
Next Question
25
See Explanation !
16
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
Previous Question
Next Question
25
See Explanation !
17
What is the answer to this expression, 22 % 3 is?
इस व्यंजक का उत्तर क्या है, 22 % 3 है?
7
1
0
5
Previous Question
Next Question
25
See Explanation !
18
What will be the output of the following python code? from math import * floor(11.7)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? from math import * floor(11.7)
12
11
11.0
none of these
Previous Question
Next Question
25
See Explanation !
19
Which symbol is used to write single line comment?
एकल पंक्ति टिप्पणी लिखने के लिए किस प्रतीक का उपयोग किया जाता है?
*
#
/
?
Previous Question
Next Question
25
See Explanation !
20
The default separator character of print() is ___
Print() का डिफ़ॉल्ट विभाजक वर्ण ___ है
tab
space
newline
dot
Previous Question
Next Question
25
See Explanation !
21
function returns the current position of file pointer.
फ़ंक्शन फ़ाइल पॉइंटर की वर्तमान स्थिति बताता है।
get()
seek()
tell()
cur()
Previous Question
Next Question
25
See Explanation !
22
Other name of Pseudo code
Pseudo code का अन्य नाम
False Code
Representation of Code
Both A and B
None of these
Previous Question
Next Question
25
See Explanation !
23
___ is correct regarding the object- oriented programming concept in Python?
___ पायथन में ऑब्जेक्ट - ओरिएंटेड प्रोग्रामिंग अवधारणा के बारे में सही है?
Classes are real world entities.
Objects are real world entities
Objects and classes are real world entities.
objects are real-world entities while classes are not real.
Previous Question
Next Question
25
See Explanation !
24
The correctness and appropriateness of _____ solution can be checked very easily.
_____ समाधान की शुद्धता और उपयुक्तता को बहुत आसानी से जांचा जा सकता है।
algorithmic
heuristic
random
none of these
Previous Question
Next Question
25
See Explanation !
25
The function divmod(a,b), where both ‘a’ and ‘b’ are integers is evaluated as:
फ़ंक्शन डिमोड (ए, बी), जहां दोनों ‘a’ और ‘b’ इन्टिजर हैं, का इवैल्यूऐटनिम्नानुसार किया जाता है:
(a%b, a//b)
(a//b, a%b)
(a//b, a*b)
(a/b, a%b)
Previous Question