Syllabus
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
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
2025
New!
2024
New!
2023
New!
2022
New!
2021
New!
2020
New!
2019
New!
2018
New!
2017
New!
2016
New!
2015
New!
2014
New!
2013
New!
2012
New!
2011
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
File Processing in Python
Set 2
25
See Explanation !
1
Hierarchy in a pseudo-code can be shown by:
सूड़ो-कोड में पदानुक्रम को द्वारा दिखाया जा सकता है|
Curly Braces
Round Brackets
Indentation
Semicolon
Next Question
25
See Explanation !
2
In which format Binary file contains information?
बाइनरी फ़ाइल में सूचना किस प्रारूप में होती है?
Quick response code
Same format in which the data is held in memory
ASCII format
Unicode format
Previous Question
Next Question
25
See Explanation !
3
Which of the following is used to define a block of code in Python language ?
पायथन लैंग्वेज में कोड के ब्लॉक को परिभाषित करने के लिए निम्न में से किसका प्रयोग किया जाता है?
try
Brackets
Indentation
Catch
Previous Question
Next Question
25
See Explanation !
4
what is 'f' in the following statement? f=open("Data.txt","r")
निम्नलिखित कथन में 'f' क्या है? f=open("Data.txt","r")
file name
file handle
Mode of file
file handling
Previous Question
Next Question
25
See Explanation !
5
What is the current syntax of remove a file?
remove() फाइल का वर्तमान सिंटैक्स क्या है?
remove((), file_name))
remove (new_file_name, current_file_name,)
remove (file_name)
All of the above
Previous Question
Next Question
25
See Explanation !
6
Which of the following mode argument is used in file to truncate ?
निम्नलिखित में से किन मोड आर्गुमेंट का उपयोग ट्रंकेट करने के लिए उपयोग किया जाता है?
a
f
w
t
Previous Question
Next Question
25
See Explanation !
7
The function which reads one line from standards input and returns it as a string (removing the trailing newline)
वह फंक्शन जो स्टैण्डर्ड इनपुट से एक पंक्ति रीड करता है और इसे स्ट्रिंग के रूप में लौटाता है (ट्रेलिंग न्यूलाइन को हटाते हुए)
raw_input
input
eval
accept
Previous Question
Next Question
25
See Explanation !
8
Which one of the following is not attributes of file?
निम्नलिखित में से कौन सा फाइल का ऐट्रीब्यूट नहीं है?
closed
softspace
rename
None of the above.
Previous Question
Next Question
25
See Explanation !
9
What is the pickling?
पिकलिंग क्या है?
It is used for object serialization
It is used for object deserialization
All of the mentioned
None of the mentioned
Previous Question
Next Question
25
See Explanation !
10
Which of the following options can be used to read the first line of a text file data.txt?
टेक्स्ट फाइल data.txt की पहली लाइन को पढ़ने के लिए निम्न में से कौन सा विकल्प इस्तेमाल किया जा सकता है?
f = open('data.txt'); f.read()
f = open('data.txt','r'); f.read(n)
myfile = open('data.txt'); f.readline()
f= open('data.txt'); f.readlines()
Previous Question
Next Question
25
See Explanation !
11
Which of the following mode will refer to binary data?
निम्न में से कौन सा मोड बाइनरी डेटा को संदर्भित करेगा?
r
w
+
b
Previous Question
Next Question
25
See Explanation !
12
Which statement will open file data.txt in append mode?
कौन सा स्टेटमेंट data.txt फाइल को एपेंड मोड में खोलेगा?
f = open("data.txt", "a")
f = Open("data.txt", "ab")
f= new("data.txt", "a")
open("data.txt", "a")
Previous Question
Next Question
25
See Explanation !
13
Which statement will move file pointer 10 bytes backward from current position.
कौन सा स्टेटमेंट फाइल पॉइंटर को वर्तमान स्थिति से 10 बाइट पीछे ले जाएगा ।
f.seek(-10, 0)
f.seek(10,0)
f.seek(-10, 1)
None of the above
Previous Question
Next Question
25
See Explanation !
14
When we open file in append mode the file pointer is at the ______ of the file.
जब हम अपेंड मोड में फाइल खोलते हैं तो फाइल पॉइंटर फाइल के _____ पर होता है।
end
beginning
anywhere in between the file
None of the above
Previous Question
Next Question
25
See Explanation !
15
Each line of a text file is terminated by a special character, called the ___
टेक्स्ट फाइल की प्रत्येक पंक्ति को एक विशेष कैरेक्टर द्वारा समाप्त किया जाता है, जिसे ____ कहा जाता है।
End of File
End of Line
End of Statement
End of program
Previous Question
Next Question
25
See Explanation !
16
Which of the following functions is used to open a file in Python?
पायथन में फ़ाइल खोलने के लिए निम्नलिखित में से किस फ़ंक्शन का उपयोग किया जाता है?
open_file()
file_open()
open()
read_file()
Previous Question
Next Question
25
See Explanation !
17
How can you close a file in Python after processing?
प्रसंस्करण के बाद आप पायथन में किसी फ़ाइल को कैसे बंद कर सकते हैं?
close_file()
file_close()
close()
end_file()
Previous Question
Next Question
25
See Explanation !
18
What does the 'r' mode signify when opening a file using open() in Python?
पायथन में ओपन() का उपयोग करके फ़ाइल खोलते समय 'r' मोड क्या दर्शाता है?
Read mode
Write mode
Append mode
Binary mode
Previous Question
Next Question
25
See Explanation !
19
Which method is used to read the entire content of a file as a string in Python?
पायथन में फ़ाइल के पूरे डाटा को स्ट्रिंग के रूप में पढ़ने के लिए किस फंक्शन का उपयोग किया जाता है?
read()
readline()
readlines()
load()
Previous Question
Next Question
25
See Explanation !
20
How can you write data to a file in Python?
आप पायथन में किसी फ़ाइल में डेटा कैसे लिख सकते हैं?
write()
append()
add()
insert()
Previous Question
Next Question
25
See Explanation !
21
Which of the following statements is used to check if a file exists in Python?
निम्नलिखित में से किस फंक्शन का उपयोग यह जांचने के लिए किया जाता है कि कोई फ़ाइल पायथन में मौजूद है या नहीं?
file_exists()
exists_file()
os.path.exists()
check_file()
Previous Question
Next Question
25
See Explanation !
22
Which of the following is the correct way to write multiple lines to a file in Python?
पायथन में किसी फ़ाइल में एक से अधिक पंक्तियाँ लिखने का सही तरीका निम्नलिखित में से कौन सा है?
Use multiple write() statements.
Use writelines() method.
Use writeLine() method.
Use append() method.
Previous Question
Next Question
25
See Explanation !
23
Which module in Python provides functions for file and directory manipulation?
पायथन में कौन सा मॉड्यूल फ़ाइल और फोल्डर में प्रोसेस के लिए फ़ंक्शन प्रदान करता है?
os
fileutils
filesystem
io
Previous Question
Next Question
25
See Explanation !
24
What is full form of CSV?
सीएसवी का फुल फॉर्म क्या है?
Comma Space Value
Comma Separated Value
Common spaced Value
Compact Structure View
Previous Question
Next Question
25
See Explanation !
25
What is the Full form of EOL?
EOL का फुल फॉर्म क्या है?
End of List
End of Line
End of Loop
End of Language
Previous Question