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? values = [[3, 4, 5, 1], [33, 6, 1, 2]] v = values[0][0] for row in range(0, len(values)): for column in range(0, len(values[row])): if v < values[row][column]:
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? values = [[3, 4, 5, 1], [33, 6, 1, 2]] v = values[0][0] for row in range(0, len(values)): for column in range(0, len(values[row])): if v < values[row][column]: v
3
5
6
33
Next Question
25
See Explanation !
2
The function used to find power of a number.
एक संख्या की शक्ति का पता लगाने के लिए उपयोग किया जाने वाला फ़ंक्शन।
pow()
exp()
tell()
None of these
Previous Question
Next Question
25
See Explanation !
3
The ______ mode of Python gives instant result of typed statement
पायथन का ______ मोड टाइप किए गए कथन का तत्काल परिणाम देता है।
Interactive Mode
Script Mode
Combination of Interactive and Script modes
All of these
Previous Question
Next Question
25
See Explanation !
4
What will the following code output? a=5 a*=10 print(a)
निम्नलिखित कोड क्या आउटपुट देगा? a=5 a*=10 print(a)
5
10
50
Error
Previous Question
Next Question
25
See Explanation !
5
What will be the output of the following Python code snippet? test = {1:'A', 2:'B', 3:'C'} del test[1] test[1] = 'D' del test[2] print(len(test))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? test = {1:'A', 2:'B', 3:'C'} del test[1] test[1] = 'D' del test[2] print(len(test))
0
2
Error as the key-value pair of 1:’A’ is already deleted
1
Previous Question
Next Question
25
See Explanation !
6
What is unpickling?
अनपिकलिंग क्या है
It is used for object serialization
It is used for object de-serialization
change the string value to number
extract the list element in simple variable
Previous Question
Next Question
25
See Explanation !
7
The error that can be pointed out by the compiler are
कम्पाइलर द्वारा इंगित की जा सकने वाली त्रुटि हैं
Syntax errors
Semantic errors
logical errors
None of the above
Previous Question
Next Question
25
See Explanation !
8
In which of the following data type, duplicate items are not allowed ?
निम्नलिखित में से किस डेटा प्रकार में डुप्लीकेट आइटम की अनुमति नहीं है?
List
Dictionary
Set
None of the Above
Previous Question
Next Question
25
See Explanation !
9
If we have two sets, s1 and s2, and we want to check if all the elements of s1 are present in s2 or not, we can use the function:
यदि हमारे पास दो सेट हैं, s1 और s2, और हम यह चेक करना चाहते हैं कि s1 के सभी एलिमेंट s2 में मौजूद हैं या नहीं, हम फ़ंक्शन का यूज़ कर सकते हैं:
s2.issubset(s1)
s2.issuperset(s1)
s1.issuperset(s2)
s1.isset(s2)
Previous Question
Next Question
25
See Explanation !
10
Which of the following statements given below is/are true?
नीचे दिए गए कथनों में से कौन - सा कथन सही है/हैं?
Tuples have structure; lists have an order
Tuples are homogeneous, lists are heterogeneous.
Tuples are immutable, lists are mutable.
All of them
Previous Question
Next Question
25
See Explanation !
11
The order of statement execution in the form of top to bottom, is known as .......... construct.
ऊपर से नीचे के रूप में कथन निष्पादन के क्रम को.......... निर्माण के रूप में जाना जाता है।
selection
repetition
sequence
flow
Previous Question
Next Question
25
See Explanation !
12
Which of the following operations is NOT allowed on a tuple?
एक टपल पर निम्नलिखित में से किस ऑपरेशन की अनुमति नहीं है?
Slicing
Concatenation
Deletion of elements
Iteration
Previous Question
Next Question
25
See Explanation !
13
What will be the output of the following code snippet? a=[1,2,3,4,5,6,7,8,9] a[::2]=10,20,30,40,50,60 print(a)
निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा? a=[1,2,3,4,5,6,7,8,9] a[:2]= 10,20,30,40,50,60 print(a)
ValueError: attempt to assign sequence of size 6 to extended slice of size 5
[10, 2, 20, 4, 30, 6, 40, 8, 50, 60]
[1, 2, 10, 20, 30, 40, 50, 60]
[1, 10, 3, 20, 5, 30, 7, 40, 9, 50, 60]
Previous Question
Next Question
25
See Explanation !
14
The number of axes in an ndarray is called its ___
एक ndarray में अक्षों की संख्या को उसका ___कहा जाता है।
rank
dtype
shape
None of these
Previous Question
Next Question
25
See Explanation !
15
Which of the following functions that retrieve information from the data type?
निम्नलिखित में से कौन सा कार्य डेटा प्रकार से जानकारी प्राप्त करता है?
Constructors
Retriever
Finder
Selectors
Previous Question
Next Question
25
See Explanation !
16
Which of the following is not a keyword in Python
पायथन में इनमें से कौन सा कीवर्ड कीवर्ड नहीं है
eval
assert
nonlocal
pass
Previous Question
Next Question
25
See Explanation !
17
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 !
18
What will be the output of the following ? print((range(4)))
निम्नलिखित कोड का परिणाम क्या है? print((range(4)))
0,1,2,3
[0,1,2,3]
range(0, 4)
(0,1,2,3)
Previous Question
Next Question
25
See Explanation !
19
which of the following will read entire content of file (file object 'f')?
निम्नलिखित में से कौन फ़ाइल (file object 'f') की संपूर्ण सामग्री को पढ़ेगा ?
f.reads()
f.read()
f.read(all)
f.read( *)
Previous Question
Next Question
25
See Explanation !
20
The input() returns the value as ____ type.
INPUT() मान को ____ प्रकार के रूप में बताता है।
Integer
String
Floating point
None of these
Previous Question
Next Question
25
See Explanation !
21
What will be the output of the following Python code? x = "abcdef" i = "a" while i in x[:-1]: print(i, end = " ")
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? x = "abcdef" i = "a" जबकि i x में [:-1]: print(i, end = "")
a a a a a
a a a a a a
a a a a a a … infinite Time
a
Previous Question
Next Question
25
See Explanation !
22
Which of the following environment variable for Python tells the Python interpreter where to locate the module files imported into a program ?
पायथन के लिए निम्नलिखित में से कौन सा पर्यावरण चर पायथन दुभाषिया को बताता है कि किसी प्रोग्राम में आयात की गई मॉड्यूल फ़ाइलों का पता कहां लगाया जाए?
PYTHONPATH
PYTHONSTARTUP
PYTHONCASEOK
PYTHONHOME
Previous Question
Next Question
25
See Explanation !
23
_______ are user Define name
_______ उपयोगकर्ता हैं नाम को परिभाषित करें
Identifiers
constant
syntax
expression
Previous Question
Next Question
25
See Explanation !
24
What will be the output of the following Python code? print("xyyzxyzxzxyy".endswith("xyy", 0, 2))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? print(" xyyzxyzxzxyy ".endswith(" xyyy ", 0, 2))
0
1
True
False
Previous Question
Next Question
25
See Explanation !
25
Which of the following environment variable for Python tells the Python interpreter where to locate the module files imported into a program?
पायथन के लिए निम्नलिखित में से कौन सा पर्यावरण चर पायथन दुभाषिया को बताता है कि किसी प्रोग्राम में आयात की गई मॉड्यूल फ़ाइलों का पता कहां लगाया जाए?
PYTHONPATH
PYTHONSTARTUP
PYTHONCASEOK
PYTHONCASEOK
Previous Question