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 one is not the attribute of a file?
कौन सी एक फ़ाइल की विशेषता नहीं है?
softspace
mode
closed
rename
Next Question
25
See Explanation !
2
What will be the output of the following Code ? x=10, y=3 print(divmod(x,y))
निम्नलिखित कोड का आउटपुट क्या होगा? x=10, y=3 print(divmod(x,y))
(3,1)
(4,2)
(5,7)
(1,3)
Previous Question
Next Question
25
See Explanation !
3
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 !
4
Suppose d = {“john”:40, “peter”:45}, to delete the entry for “john” what command do we use?
मान लीजिए d = {“john”:40, “peter”:45}, “john” की प्रविष्टि हटाने के लिए हम किस कमांड का उपयोग करेंगे?
d.delete(“john”:40)
d.delete(“john”)
del d[“john”]
del d(“john”:40)
Previous Question
Next Question
25
See Explanation !
5
What will be the output of the following Python code? print('xyyzxxyxyy'.lstrip('xyy'))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? print('xyyzxxyxyy '.lstrip (' xyy '))
error
zxxyxyy
z
zxxy
Previous Question
Next Question
25
See Explanation !
6
Which of these about a dictionary is false?
एक ड़िक्शनरी के बारे में इनमें से कौन गलत है?
The values of a dictionary can be accessed using keys
The keys of a dictionary can be accessed using values
Dictionaries aren’t ordered
Dictionaries are mutable
Previous Question
Next Question
25
See Explanation !
7
Choose the correct function declaration of fun1() so that we can execute the following two function calls successfully. fun1(25, 75, 55) fun1(10, 20)
fun1() का सही फ़ंक्शन घोषणापत्र चुनें ताकि हम निम्नलिखित दो फ़ंक्शन कॉल सफलतापूर्वक निष्पादित कर सकें fun1(25, 75, 55) fun1(10, 20)
def fun1(**kwargs)
def fun1(args*)
No, it is not possible in Python
def fun1(*data)
Previous Question
Next Question
25
See Explanation !
8
What will following code segment print? a=True b=False c=False if not a or b: print(1) elif not a or not b and c: print(2) elif not a or b or not b and a: print(3) else: print(4)
निम्नलिखित कोड सेगमेंट प्रिंट क्या होगा? a=True b=False c=False if not a or b: print(1) elif not a or not b and c: print(2) elif not a or b या not b और a: print(3) else: print(4)
1
3
2
4
Previous Question
Next Question
25
See Explanation !
9
What will be the output of the following Python code? def f(values): values[0] = 44 v = [1, 2, 3] f(v) print(v)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def f(values): values[0] = 44 v = [1, 2, 3] f(v) print(v)
[1, 44]
[1, 2, 3, 44]
[44, 2, 3]
[1, 2, 3]
Previous Question
Next Question
25
See Explanation !
10
What is the output of the following code? print(not False)
निम्नलिखित कोड का आउटपुट क्या है? प्रिंट(गलत नहीं)
True
False
None
Error
Previous Question
Next Question
25
See Explanation !
11
What will be the output of the following Python code? print('abcdefcdgh'.partition('cd'))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? print('abcdefcdgh '.partition (' cd '))
(‘ab’, ‘cd’, ‘ef’, ‘cd’, ‘gh’)
(‘ab’, ‘cd’, ‘efcdgh’)
(‘abcdef’, ‘cd’, ‘gh’)
error
Previous Question
Next Question
25
See Explanation !
12
What is the use of the zeros function in Numpy array in python?
अजगर में Numpy सरणी में शून्य फ़ंक्शन का क्या उपयोग है?
To make a Matrix with all element 0
To make a Matrix with all diagonal element
To make a Matrix with first Row 0
None of these
Previous Question
Next Question
25
See Explanation !
13
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 !
14
What will be the output of the following Python code? import time print(time.asctime())
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? import time print(time.asctime())
Current date only
UTC time
Current date and time
Current time only
Previous Question
Next Question
25
See Explanation !
15
Which of the following is equivalent to random.randint(3, 6)?
निम्नलिखित में से कौन सा random.randint(3, 6) के बराबर है?
random.choice([3, 6])
random.randrange(3, 6)
3 + random.randrange(3)
3 + random.randrange(4)
Previous Question
Next Question
25
See Explanation !
16
The .......... construct repeats a set of statements a specified number of times or as long as a condition is true.
.......... CONSTRUCT कथनों के एक सेट को निर्दिष्ट संख्या में बार - बार दोहराता है या जब तक कोई शर्त सत्य है।
selection
repetition
sequence
flow
Previous Question
Next Question
25
See Explanation !
17
What is the order of namespaces in which Python looks for an identifier?
नामस्थानों का क्रम क्या है जिसमें पायथन एक पहचानकर्ता की तलाश करता है?
Python first searches the built-in namespace, then the global namespace and finally the local namespace.
Python first searches the built-in namespace, then the local namespace and finally the global namespace
Python first searches the local namespace, then the global namespace and finally the built-in namespace
Python first searches the global namespace, then the local namespace and finally the built-in namespace
Previous Question
Next Question
25
See Explanation !
18
In Python assignment of more than one behaviour to a particular function and the operation performed varies by the types of objects or arguments involved are known as_____ .
किसी विशेष कार्य के लिए एक से अधिक व्यवहार के पायथन असाइनमेंट में और किए गए ऑपरेशन में शामिल वस्तुओं या तर्कों के प्रकारों के अनुसार भिन्नता होती है, जिन्हें _____ के रूप में जाना जाता है।
Function overloading
operator overloading
Both of the above.
None of these
Previous Question
Next Question
25
See Explanation !
19
To increase the value of x five times using an augmented assignment operator, the correct expression will be
संवर्धित असाइनमेंट ऑपरेटर का उपयोग करके x के मान को पांच गुना बढ़ाने के लिए, सही अभिव्यक्ति होगी
x += 5
x *= 5
x = x ** 5
none of these
Previous Question
Next Question
25
See Explanation !
20
The way for solving a problem step by step is know as
किसी समस्या को चरण - दर - चरण हल करने का तरीका यह है कि
Design
Palnning
Algorithm
Execution
Previous Question
Next Question
25
See Explanation !
21
Which of the following is a logical operator in Python?
निम्नलिखित में से कौन पायथन में एक लॉजिकल ऑपरेटर है?
and
or
not
All of the these
Previous Question
Next Question
25
See Explanation !
22
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 !
23
Testing is known as -
परीक्षण को किस रूप में जाना जाता है -
A stage of all projects
Finding broken code
Evaluating deliverable to find errors
None of the above
Previous Question
Next Question
25
See Explanation !
24
What will be the output of the following Python code? print("xyyzxyzxzxyy".count('yy', 1))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? print("xyyzxyzxzxyy".count('yy', 1))
2
0
1
none of the mentioned
Previous Question
Next Question
25
See Explanation !
25
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