Nice Academy Bilari

TestsO Level M3File Processing in PythonQuick Test
Instant Feedback Mode

File Processing in Python - Quick Test

Tap any option to see instant feedback. Green = Correct, Red = Wrong. Change answers freely!

No submit button
57 questions
Change answers anytime

Instant feedback

Tap and see the answer

Green = correct, Red = wrong. Keep trying until you nail it.

Progress

0/57 correct

0 attempted0% mastered
You can change your choice anytime—no submit needed.
1

Which is the function to read the remaining lines of the file from a file object infile?

फ़ाइल ऑब्जेक्ट infile से फ़ाइल की शेष पंक्तियों को पढ़ने के लिए कौन सा फंक्शन है?

Attempts: 0
2

Which of the function take takes two arguments?

कौन सा फंक्शन को दो आर्गूमेंट की जरूरत पड़ेगी

Attempts: 0
3

Which is mean by 'a' mode when working with text file.

टेक्स्ट फ़ाइल के साथ काम करते समय a मोड से इसका मतलब है।

Attempts: 0
4

to use load() function for working with binary file in python which module is require

पायथन में बाइनरी फ़ाइल के साथ काम करने के लिए load() फ़ंक्शन का उपयोग करने के लिए किस मॉड्यूल की आवश्यकता है

Attempts: 0
5

Which function of pickle module is used to write data on binary file

बाइनरी फ़ाइल पर डेटा लिखने के लिए अचार मॉड्यूल का कौन सा फ़ंक्शन प्रयोग किया जाता है

Attempts: 0
6

If we open a file in write mode and file does not exists, which of the error will generate?

यदि हम एक फाइल को राइट मोड में खोलते हैं और फाइल मौजूद नहीं है, तो कौन सी त्रुटि उत्पन्न होगी?

Attempts: 0
7

Which of the following is an invalid mode?

निम्न में से कौन सा अमान्य मोड है?

Attempts: 0
8

Which of the following is not a correct mode to open a file ?

फ़ाइल खोलने के लिए निम्न में से कौन सा सही मोड नहीं है?

Attempts: 0
9

Which function returns the strings?

कौन सा फंक्शन स्ट्रिंग्स लौटाता है?

Attempts: 0
10

The syntax used to rename a file :

फ़ाइल का नाम बदलने के लिए प्रयुक्त सिंटैक्स:

Attempts: 0
11

A Function used for writing data in the binary format :

बाइनरी फॉर्मेट में डेटा लिखने के लिए उपयोग किया जाने वाला एक फंक्शन:

Attempts: 0
12

The syntax of seek() is: file_object.seek(offset [, reference_point]) What does the reference_point indicate?

seek () का सिंटैक्स है: file_object.seek(offset [, Reference_point]) रेफरेंस_पॉइंट क्या दर्शाता है?

Attempts: 0
13

Which function is used to read all the characters from file?

फ़ाइल से सभी वर्णों को पढ़ने के लिए किस फ़ंक्शन का उपयोग किया जाता है?

Attempts: 0
14

Which one is not the attribute of a file ?

इनमें से कौन एक फाइल की विशेषता नहीं है ?

Attempts: 0
15

Which of the following error is returned when we try to open a file in write mode which does not exist?

जब हम किसी ऐसी फ़ाइल को राइट मोड में खोलने की प्रयास करते हैं जो मौजूद नहीं है तो निम्न में से कौन सी एरर दिखाई देती है

Attempts: 0
16

What does readlines() method return ?

रीडलाइन () मेथड क्या रिटर्न करता है?

Attempts: 0
17

Which of the following declarations is incorrect?

निम्नलिखित में से कौन सी डेक्लरेशंस गलत है?

Attempts: 0
18

Which statement will return one line from a file (file object is f) ?

कौन सा स्टेटमेंट फ़ाइल (file object is 'f) से एक पंक्ति प्रस्तुत करेगा |

Attempts: 0
19

f.read(5) will read________from a file (file object 'f')

f.read(5) एक फ़ाइल से________ पढ़ेगा (file object 'f')

Attempts: 0
20

Which mode creates a new file if the file does not exist?

यदि फ़ाइल मौजूद नहीं है तो कौन सा मोड एक नई फाइल बनाता है?

Attempts: 0
21

which of the following will read entire content of file (file object 'f')?

निम्नलिखित में से कौन फ़ाइल (file object 'f') की संपूर्ण सामग्री को पढ़ेगा ?

Attempts: 0
22

Hierarchy in a pseudo-code can be shown by:

सूड़ो-कोड में पदानुक्रम को द्वारा दिखाया जा सकता है|

Attempts: 0
23

In which format Binary file contains information?

बाइनरी फ़ाइल में सूचना किस प्रारूप में होती है?

Attempts: 0
24

Which of the following is used to define a block of code in Python language ?

पायथन लैंग्वेज में कोड के ब्लॉक को परिभाषित करने के लिए निम्न में से किसका प्रयोग किया जाता है?

Attempts: 0
25

What is the current syntax of remove a file?

remove() फाइल का वर्तमान सिंटैक्स क्या है?

Attempts: 0
26

Which of the following mode argument is used in file to truncate ?

निम्नलिखित में से किन मोड आर्गुमेंट का उपयोग ट्रंकेट करने के लिए उपयोग किया जाता है?

Attempts: 0
27

The function which reads one line from standards input and returns it as a string (removing the trailing newline)

वह फंक्शन जो स्टैण्डर्ड इनपुट से एक पंक्ति रीड करता है और इसे स्ट्रिंग के रूप में लौटाता है (ट्रेलिंग न्यूलाइन को हटाते हुए)

Attempts: 0
28

Which one of the following is not attributes of file?

निम्नलिखित में से कौन सा फाइल का ऐट्रीब्यूट नहीं है?

Attempts: 0
29

What is the pickling?

पिकलिंग क्या है?

Attempts: 0
30

Which of the following options can be used to read the first line of a text file data.txt?

टेक्स्ट फाइल data.txt की पहली लाइन को पढ़ने के लिए निम्न में से कौन सा विकल्प इस्तेमाल किया जा सकता है?

Attempts: 0
31

Which of the following mode will refer to binary data?

निम्न में से कौन सा मोड बाइनरी डेटा को संदर्भित करेगा?

Attempts: 0
32

Which statement will open file data.txt in append mode?

कौन सा स्टेटमेंट data.txt फाइल को एपेंड मोड में खोलेगा?

Attempts: 0
33

Which statement will move file pointer 10 bytes backward from current position.

कौन सा स्टेटमेंट फाइल पॉइंटर को वर्तमान स्थिति से 10 बाइट पीछे ले जाएगा ।

Attempts: 0
34

When we open file in append mode the file pointer is at the ______ of the file.

जब हम अपेंड मोड में फाइल खोलते हैं तो फाइल पॉइंटर फाइल के _____ पर होता है।

Attempts: 0
35

Each line of a text file is terminated by a special character, called the ___

टेक्स्ट फाइल की प्रत्येक पंक्ति को एक विशेष कैरेक्टर द्वारा समाप्त किया जाता है, जिसे ____ कहा जाता है।

Attempts: 0
36

Which of the following functions is used to open a file in Python?

पायथन में फ़ाइल खोलने के लिए निम्नलिखित में से किस फ़ंक्शन का उपयोग किया जाता है?

Attempts: 0
37

How can you close a file in Python after processing?

प्रसंस्करण के बाद आप पायथन में किसी फ़ाइल को कैसे बंद कर सकते हैं?

Attempts: 0
38

What does the 'r' mode signify when opening a file using open() in Python?

पायथन में ओपन() का उपयोग करके फ़ाइल खोलते समय 'r' मोड क्या दर्शाता है?

Attempts: 0
39

Which method is used to read the entire content of a file as a string in Python?

पायथन में फ़ाइल के पूरे डाटा को स्ट्रिंग के रूप में पढ़ने के लिए किस फंक्शन का उपयोग किया जाता है?

Attempts: 0
40

How can you write data to a file in Python?

आप पायथन में किसी फ़ाइल में डेटा कैसे लिख सकते हैं?

Attempts: 0
41

Which of the following statements is used to check if a file exists in Python?

निम्नलिखित में से किस फंक्शन का उपयोग यह जांचने के लिए किया जाता है कि कोई फ़ाइल पायथन में मौजूद है या नहीं?

Attempts: 0
42

Which of the following is the correct way to write multiple lines to a file in Python?

पायथन में किसी फ़ाइल में एक से अधिक पंक्तियाँ लिखने का सही तरीका निम्नलिखित में से कौन सा है?

Attempts: 0
43

Which module in Python provides functions for file and directory manipulation?

पायथन में कौन सा मॉड्यूल फ़ाइल और फोल्डर में प्रोसेस के लिए फ़ंक्शन प्रदान करता है?

Attempts: 0
44

What is full form of CSV?

सीएसवी का फुल फॉर्म क्या है?

Attempts: 0
45

What is the Full form of EOL?

EOL का फुल फॉर्म क्या है?

Attempts: 0
46

Identify the correct function call to read first 5 character of the file from the beginning

शुरुआत से फ़ाइल के पहले 5 अक्षर को पढ़ने के लिए सही फ़ंक्शन कॉल की पहचान करें

Attempts: 0
47

Work of tell() method in file processing is

फाइल प्रोसेसिंग में tell() फंक्शन का कार्य है

Attempts: 0
48

in python which function is used to read CSV file

पायथन में CSV फ़ाइल को पढ़ने के लिए किस फ़ंक्शन का उपयोग किया जाता है?

Attempts: 0
49

What will be the output of : infile.read(2)

निम्नलिखित कोड का आउटपुट क्या होगा? infile.read(2)

Attempts: 0
50

Which denotes file binary mode?

फ़ाइल बाइनरी मोड को कौन दर्शाता है?

Attempts: 0
51

which is a correct way to open a file in python

पायथन में फ़ाइल खोलने के लिए किस फ़ंक्शन का उपयोग किया जाता है?

Attempts: 0
52

Which of the following is not a valid mode to open a file?

निम्नलिखित में से कौन सा फ़ाइल खोलने के लिए वैध मोड नहीं है?

Attempts: 0
53

In which format python file considered

पाइथन फ़ाइल को किस प्रारूप में माना जाता है

Attempts: 0
54

What is unpickling?

अनपिकलिंग क्या है

Attempts: 0
55

What is the use of seek() method in files?

फाइलों में seek() फंक्शन का क्या उपयोग है?

Attempts: 0
56

What is the default mode for files in Python?

पायथन में फ़ाइलों के लिए डिफ़ॉल्ट मोड क्या है?

Attempts: 0
57

What keyword is used in Python to raise exceptions?

एक्सेप्शन उत्पन्न करने के लिए पायथन में किस कीवर्ड का उपयोग किया जाता है?

Attempts: 0