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 code ? f=open("demo.txt","w+") f.write("Welcome to python") f.seek(5) a=f.read(5) print(a)
निम्नलिखित कोड का आउटपुट क्या होगा? f=open("demo.txt","w+") f.write("Welcome to python") f.seek(5) a=f.read(5) print(a)
Welco
me to
Welcome to Python
e to
Next Question
25
See Explanation !
2
____function reads a single line from the file; a newline character (\n) is left at the end of the string.
____फ़ंक्शन फ़ाइल से एक पंक्ति पढ़ता है; स्ट्रिंग के अंत में एक नई पंक्ति वर्ण (\n) छोड़ दिया जाता है।
read()
Readline()
write()
None of these
Previous Question
Next Question
25
See Explanation !
3
Which one of the following has the same precedence level?
निम्नलिखित में से किसका वरीयता स्तर समान है?
Addition and Subtraction
Multiplication, Division and Addition
Multiplication, Division, Addition and Subtraction
Addition and Multiplication
Previous Question
Next Question
25
See Explanation !
4
What will be the output of the following Python code? a={} a[2]=1 a[1]=[2,3,4] print(a[1][1])
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? a={} a[2]=1 a[1]=[2,3,4] print(a[1][1])
[2,3,4]
3
2
An exception is thrown
Previous Question
Next Question
25
See Explanation !
5
What will be the output of the following Python code if the system date is: 6/19/2017 import datetime tday=datetime.date.today() tdelta=datetime.timedelta(days=10) print(tday+tdelta)
यदि सिस्टम दिनांक है: 6/19/2017 तो निम्नलिखित पायथन कोड का आउटपुट क्या होगा import datetime tday=datetime.date.today() tdelta=datetime.timedelta(days=10) print(tday+tdelta)
2017-16-19
2017-06-9
2017-06-29
Error
Previous Question
Next Question
25
See Explanation !
6
What will be the output of the following Python code? example = "helle" print(example.rfind("e"))
निम्नलिखित कोड का परिणाम क्या है ? example = "helle" print(example.rfind("e"))
1
2
4
5
Previous Question
Next Question
25
See Explanation !
7
What data type is the object below ? L=[1, 23, 'hello', 1]
नीचे दिया गया ऑब्जेक्ट किस डेटा प्रकार का है? L=[1, 23, 'hello', 1]
List
Dictionary
Tuple
Array
Previous Question
Next Question
25
See Explanation !
8
Which of the following is the use of id() function in python?
पायथन में id() फ़ंक्शन का उपयोग निम्नलिखित में से कौन सा है?
ID returns the identity of the object
Even object does not have a unique Id
All of the mentioned
None of the mentioned
Previous Question
Next Question
25
See Explanation !
9
What is the output of the following code? def s(n1): print(n1) n1=n1+2 n2=4 s(n2) print(n2)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def s(n1): print(n1) n1=n1+2 n2=4 s(n2) print(n2)
6 4
4 6
4 4
6 6
Previous Question
Next Question
25
See Explanation !
10
The ____ provides pictorial representation of given problem.
____ दी गई समस्या का चित्रात्मक प्रतिनिधित्व प्रदान करता है।
Algorithm
Flowchart
Pseudocode
All of these
Previous Question
Next Question
25
See Explanation !
11
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 !
12
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 !
13
What plays a vital role in Python programming?
पायथन प्रोग्रामिंग में क्या महत्वपूर्ण भूमिका निभाता है?
Statements
Control
Structure
Indentation
Previous Question
Next Question
25
See Explanation !
14
The symbol used for conditional statement n a flow chart is a ____
फ्लो चार्ट में सशर्त कथन के लिए उपयोग किया जाने वाला प्रतीक एक ____ है।
Diamond box
rectangular box
Circle shape
None of the above
Previous Question
Next Question
25
See Explanation !
15
It is a combination of Operators, Operands and Constants
यह ऑपरेटर्स, ऑपरेंड्स और कांस्टेंट्स का संयोजन है
Identifier
Expression
Syntax
Task
Previous Question
Next Question
25
See Explanation !
16
What will be the output after the following statements? for i in range(1,6): print(i, end='') if i == 3: break
निम्नलिखित कथनों के बाद आउटपुट क्या होगा? for i in range(1,6): print(i, end ='') if i == 3: break
1 2
1 2 3
1 2 3 4
1 2 3 4 5
Previous Question
Next Question
25
See Explanation !
17
Which of the following lines of code will result in an error?
कोड की निम्नलिखित लाइन्स में से कौन सा एरर होगा ?
s={abs}
s={4, ‘abc’, (1,2)}
s={2, 2.2, 3, ‘xyz’}
s={san}
Previous Question
Next Question
25
See Explanation !
18
What will be the output of the following Python code snippet? print('abcdefcdghcd'.split('cd', 2))
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? print('abcdefcdghcd '.split (' cd ', 2))
[‘ab’, ‘ef’, ‘ghcd’]
[‘ab’, ‘efcdghcd’]
[‘abcdef’, ‘ghcd’]
none of the mentioned
Previous Question
Next Question
25
See Explanation !
19
What is the output of this expression, 3*1**3?
इस व्यंजक का आउटपुट क्या है, 3*1**3?
29
9
3
1
Previous Question
Next Question
25
See Explanation !
20
What will be the output of the following code? list1=[2,33,222,14,25] print(list1[-1])
निम्नलिखित कोड का आउटपुट क्या होगा? list1=[2,33,222,14,25] print(list1[-1])
2
33
14
25
Previous Question
Next Question
25
See Explanation !
21
Users write the programs in which language?
यूज़र प्रोग्राम किस भाषा में लिखते हैं?
Low-level Language
High-level Language
Middle-level Language
None of these
Previous Question
Next Question
25
See Explanation !
22
What is Full form of LEGB ?
LEGB का फुल फॉर्म क्या है?
Low, Enclosing, Global and Built-in
Local, Enclosing, Global and Built-in
Local, Ending, Global and Built-in
Light, Emitting, Global and Built-in
Previous Question
Next Question
25
See Explanation !
23
NumPy arrays used over lists because
NumPy ऐरे का उपयोग लिस्ट पर किया जाता है क्योंकि
NumPy arrays have contiguous memory location
They are more speedy to work with
They are more convenient to deal with
All of the above
Previous Question
Next Question
25
See Explanation !
24
Which of the following is equivalent to random.randrange(3)?
निम्नलिखित में से कौन random.randrange(3) के बराबर है?
range(3)
random.choice(range(0, 3))
random.shuffle(range(3))
random.select(range(3))
Previous Question
Next Question
25
See Explanation !
25
Correcting the program code:
प्रोग्राम कोड को ठीक करना:
Testing
Syntax error
Runtime error
Debugging
Previous Question