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 symbol used for both input and output is a _____ .
इनपुट और आउटपुट दोनों के लिए उपयोग किया जाने वाला प्रतीक _____ है।
parallelogram
Diamond shape
Circle shape
None of the above
Next Question
25
See Explanation !
2
Which of the following statements create a dictionary?
निम्नलिखित में से कौन सा स्टेट्मेंट एक ड़िक्शनरी बनाता है?
d = {}
d = {“john”:40, “peter”:45}
d = {40:”john”, 45:”peter”}
All of the mentioned
Previous Question
Next Question
25
See Explanation !
3
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 !
4
What will be the output of the following Python code? a={1:"A",2:"B",3:"C"} a.clear() print(a)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? a={1:"A",2:"B",3:"C"} a.clear() print(a)
None
{ None:None, None:None, None:None}
{1:None, 2:None, 3:None}
{ }
Previous Question
Next Question
25
See Explanation !
5
What will be the output of the following code? print(10 // 3)
निम्नलिखित कोड का आउटपुट क्या होगा? print(10 // 3)
3.33
3
4
Error
Previous Question
Next Question
25
See Explanation !
6
Which of the following is false about “from ….. import …… " form of import?
निम्नलिखित में से कौन सा आयात के "from ….. import …… " रूप के बारे में गलत है?
The syntax is: from module name import identifier
This form of import does not import anything
The namespace of imported module becomes part of importing module
The identifiers in module are accessed directly as: identifier
Previous Question
Next Question
25
See Explanation !
7
What will be the output of the following ? import numpy as np arr=np.array([1,2,3]) print(arr.shape)
निम्नलिखित कोड का परिणाम क्या है? import numpy as np arr=np.array([1,2,3]) print(arr.shape)
(3,)
(4,)
1
3
Previous Question
Next Question
25
See Explanation !
8
Which statement is correct
कौन सा कथन सही है
List is mutable & Tuple is immutable
List is immutable & Tuple is mutable
Both List and Tuple are Mutable
Both List and Tuple are Immutable
Previous Question
Next Question
25
See Explanation !
9
The Pandas ______ method returns a new Data Prame.
पांडा की ______ विधि एक नया डेटा प्रैम बताती है।
dropna()
Pandas
read_csv()
None of these
Previous Question
Next Question
25
See Explanation !
10
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 !
11
To add a new element to a list we use which command?
एक लिस्ट में एक न्यू एलिमेंट ऐड करने के लिए हम किस कमांड का यूज़ करते हैं?
list1.add(5)
list1.append(5)
list1.addLast(5)
list1.addEnd(5)
Previous Question
Next Question
25
See Explanation !
12
Which type of errors flagged by compilers
किस प्रकार की त्रुटि को compilers द्वारा चिह्नित किया जाता है
Logical errors
Syntax errors
Both Logical and Syntax errors
None of these
Previous Question
Next Question
25
See Explanation !
13
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 !
14
What is called when a function is defined inside a class?
जब किसी फ़ंक्शन को क्लास के अंदर परिभाषित किया जाता है तो उसे क्या कहा जाता है?
Module
Class
Another function
Method
Previous Question
Next Question
25
See Explanation !
15
What will be the output of the following Python code? a={1:"A",2:"B",3:"C"} b=a.copy() b[2]="D" print(a)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? a={1:"A",2:"B",3:"C"} b=a.copy() b[2]="D" print(a)
Error, copy() method doesn’t exist for dictionaries
{1: ‘A’, 2: ‘B’, 3: ‘C’}
{1: ‘A’, 2: ‘D’, 3: ‘C’}
“None” is printed
Previous Question
Next Question
25
See Explanation !
16
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 !
17
What will be the output of the following Python code? print('Hello!2@#World'.istitle())
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? print('Hello!2@#World'.istitle())
True
False
None
error
Previous Question
Next Question
25
See Explanation !
18
Which is the function to read the remaining lines of the file from a file object infile?
फ़ाइल ऑब्जेक्ट infile से फ़ाइल की शेष पंक्तियों को पढ़ने के लिए कौन सा फंक्शन है?
infile.read(2)
infile.read()
infile.readlines()
infile.readline()
Previous Question
Next Question
25
See Explanation !
19
_________immediately terminates the current loop iteration.
_________ वर्तमान लूप पुनरावृत्ति को तुरंत समाप्त कर देता है।
break
pass
continue
None of These
Previous Question
Next Question
25
See Explanation !
20
A sentinel-controlled loop can be implemented using _____
_____ का उपयोग करके एक प्रहरी - नियंत्रित लूप को लागू किया जा सकता है।
if
for
Both of the above
None
Previous Question
Next Question
25
See Explanation !
21
Which mode creates a new file if the file does not exist?
यदि फ़ाइल मौजूद नहीं है तो कौन सा मोड एक नई फाइल बनाता है?
write mode
read mode
append mode
Both (A) And (B)
Previous Question
Next Question
25
See Explanation !
22
What will be the output of the following Python code snippet? print('11'.isnumeric())
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? print('11'.isnumeric ())
True
False
None
Error
Previous Question
Next Question
25
See Explanation !
23
What is use of seek() method in files?
फ़ाइलों में सीक() विधि का उपयोग क्या है?
sets the file's current position at the offset.
sets the file's previous position at the offset.
sets the file's current position within the file.
None of the above
Previous Question
Next Question
25
See Explanation !
24
In which year was the Python language developed?
पायथन भाषा का विकास किस वर्ष में हुआ था?
1995
1972
1981
1991
Previous Question
Next Question
25
See Explanation !
25
Which of the following functions is used to open a file in Python?
पायथन में फ़ाइल खोलने के लिए निम्नलिखित में से किस फ़ंक्शन का उपयोग किया जाता है?
open_file()
file_open()
open()
read_file()
Previous Question