Subscribe Us

Responsive Advertisement

Advertisement

o level m3 r5 python mcqs set 1

 



o level m3 r5 python mcqs set 1


1. What is the index of "python 3.0"?  "python 3.0” में 3 का क्या इन्डेक्स है।

 

A. 7

B. 4

C. 2

D.None of these

 

2. Which operator is used for Exclusive OR (XOR) in python? पायथन में, किस ऑपरेटर का प्रयोग Exclusive OR (XOR) के लिए किया जाता हैं?

 

A. & 

Β. ^

C. *

D. None of the above

 

3. What will be the output of the following Python code? निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

>>trunc(3.4)

 

A. 3

B.4

C.2

D. None of these

 

4. What will be the output of the following Python code? निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

 

A=15

B=10

C=[10,15,20,30]

A in c

B in not c

 

A. True False

B. False False

C. True True

D. None of these

 

5. is the python Extension. पायथन एक्सटेन्शन है।

 

A. .py

B..python

C. .P

D. None of these

 

6. What is variable defined inside a function referred to as _? किसी फंक्शन के अंदर परिभाषित वेरिएबल को क्या कहा जाता है?

 

 A. A static variable

B. A global variable

C. A local variable

D. An Automatic variable

 

7. Which of the following is not exist in python? निम्नलिखित में से कौन सा पायथन में मौजूद नहीं है?

 

A. Non-extensible

B.Interpreter

C. Pointer

D.None of the above

 

8. What type of data below नीचे किस प्रकार का डेटा है?

 

Arr=[[1,2,3][2,3,4,5]]

 

A. List of List

B. List of Tuple

C. List of string

D. None of these

 

9. In a flowchart an input/Output instruction is represented by......फ़्लोचार्ट में एक इनपुट/आउटपुट निर्देश को ... में दर्शाया जाता है

 

A. Rectangle - आयत

B. rhombus - विषमकोण

C. parallelogram - चतुर्भुज

D. Circle - वृत्त

 

10. Which symbol is used for decision in flow chart? फ्लो चार्ट में निर्णय के लिए किस चिन्ह का प्रयोग किया जाता है?

 

A.diamond

 B.rectangle

 C.circle

 D.None of these

 

11. Which keyword is used to define a function? किसी फंक्शन को परिभाषित करने के लिए किस कीवर्ड का उपयोग किया जाता है?

 

A.def

 B. function

 C. module

D.None of these

 

12. Pictorial representation of an algorithm is called as_. किसी एल्गोरिथम के सचित्र प्रतिनिधित्व को जाता है। कहा

 

A. Statement

B. Program

 C. Flow chart

D. All of the above

 

13. In flowcharts, symbol of rectangle is used to represent_. फ़्लोचार्ट में,  दर्शाने के लिए आयत के प्रतीक का उपयोग किया जाता है।

 

A. Operation of data

 B. system process

C. manual operations

 D. None of these

 

14. Which of the following is/are features of tuple? निम्नलिखित में से कौन-सा दुपल का फीचर हैं?

 

A. Tuple is immutable- टुपल अपरिवर्तनीय है

B. Tuple is a sequence data type टुपल एक सिक्वेन्स डेटा टाइप है

C. In tuple, elements are enclosed in parenthesis. टुपल में, एलिमेन्ट कोष्ठक में संलग्न होते हैं।

D. All of the above उपरोक्त सभी

 

 

15. To define a block in python, we use पायथन में एक ब्लॉक को डिफाइन करने के लिए, हम . का उपयोग करते हैं।

 

A. indentation

 B. function

 C.module

 D. None

 

16. What is the name of the Python module to get socket functionality? सॉकेट कार्यक्षमता प्राप्त करने के लिए पायथन मॉड्यूल का नाम क्या है?

 

A. Socket

 B. http

 C. Port

D. Protocol

 

17. In flowchart OVAL shape is used for फ़्लोचार्ट में OVAL शेप का उपयोग ..... के लिए किया जाता है।

 

A. Input/Output

 B. Start/Stop

C. decision

D. processing

 

18. Which of the following is used to find the maximum elements in numpy array? numpy ऐरे में अधिकतम एलिमेन्ट को खोजने के लिए निम्नलिखित में से किसका उपयोग किया जाता है?

 

A. maxi()

 B. array.max()

 C.amax()

 D. all()

 

19. In which format python file considered? पायथन फाइल को किस फार्मेट में माना जाता है?

 

A. giga bytes

 B.mega bytes

C.byte

 D.bits

 

20. Which of the following statement is true? निम्नलिखित में से कौन सा कथन सत्य है?

 

i) Computer stores every file in binary format. कंप्यूटर हर फाइल को बाइनरी फॉर्मेट में स्टोर करता है।

(ii) Both text and binary files are human readable टेक्स्ट और बाइनरी दोनों फाइलें मानव पठनीय हैं।

 

A. (i) True (ii) False

B. (i) False (ii) True

C. Both are true

D. Both are false

 

21. When file is open in write mode then which place cursur exist? जब फाइल राइट मोड में खुली होती है तो कर्सर किस स्थान पर मौजूद होता है?

 

A. Starting of the file-फाइल के प्रारंभ में

B. Ending of the file - फाइल के अन्त में

C. middle of the file फाइल के मध्य

D. None of these. इनमें से कोई नहीं

 

22. What is the output of the python code 8/4/2

 

A. 1.0

B. 1

C. 2

D. 1.1

 

23. Which of the following extension is not a binary file? निम्नलिखित में से कौन सा एक्सटेंसन बाइनरी फाइल का नहीं है?

 

A. .py

B. .exe

C. .mp3

D. .jpeg

 

 

24. If 5 elements in array then second element index is_. यदि ऐरे में 5 एलिमेन्ट हैं तो दूसरे एलिमेन्ट का इन्डेक्स है।

 

A. 1

B. 2

C. 3

D. -2

 

25. What is the use of the flush() method? flush() मेथड का क्या उपयोग है?

 

A. Fluses the internal buffer आंतरिक बज्र को साफ करना

B. Closes the file फाइल बंद करना

C. Deletes the file content फाइल कन्टेन्ट को हटाना

D. Reads the file content फाइल कन्टेन्ट को पढ़ना

 

26. What will be the output of >>"4+5" Python code?

 

A. 4+5

B. 9

C. 4

D. 5

 

27. What is the type of programming language supported in python? पायथन में किस प्रकार की प्रोग्रामिंग भाषा समर्थित है?

 

A. Object Oriented

B. Functional programming

C. Structured programming

D. All of the above.

 

28. What is the zero() function in Python? पायथन में जीरो() फंक्शन क्या है?

 

A. returns a new array of given shape and type, where the element's value as 0. दिए गए आकार और प्रकार की एक नई सरणी लौटाता है, जहां एलिमेन्ट की वैल्यू 0 है।

B. returns a new array of given shape and type, where the element's value as 1. दिए गए आकार और प्रकार की एक नई सरणी लौटाता है, जहां एलिमेन्ट की वैल्यू 1 है।

C. Both A and B

D. None of these - कोई नही

 

29. E character represent which symbol in PEMDAS? E अक्षर PEMDAS में किस प्रतीक को दर्शाता है?

 

A. Exponent operator()

B. Evaluate

C. Both A and B

D. None of these

 

30. Why does the name of local variables start with an underscore discouraged? स्थानीय वेरिएबल का नाम underscore discouraged से क्यों शुरू होता है?

 

A. To identify the variable वेरियेबिल की पहचान करना

B. It confuses the printer यह प्रिंटर को भ्रमित करता है

C. It indicates a private variable of class- यह क्लॉस के एक प्राईवेट वेरियेबिल को इंगित करता है

D. None of the above उपर्युक्त में से कोई नहीं

 

31. Which one of the following has the same precedence level? निम्नलिखित में से किसका पूर्वता स्तर समान है?

 

A. Division, Power, Multiplication, Addition  and Subtraction

B. Division and Multiplication

C. Subtraction and division    

 D. Power and Division

 

32. What will be the output of the below code? नीचे दिए गए कोड का आउटपुट क्या होगा? >>>print(ord('e')-ord('m'))

 

A. 8

B. -8

C. 7

D. -7

 

 

33. What will be the output of the below code . नीचे दिए गए कोड का आउटपुट क्या होगा?

 

print(6+5-4*3/2%1)

 

A. 11.0

B. -8

C. 11

D.-11

 

34. What is the output of the following program: निम्नलिखित कोड का आउटपुट क्या है?

 

int1 = 0b0110

print(int1)

 

A. 6

 Β. 10

C. NameError

D. 0b0110

 

35. How many control statements python supports? पायथन कितने कन्ट्रोल स्टेटमेन्ट को सपोर्ट करता है?

 

A. One

 B. two

C. Three

D. None of the above

 

36. What is the output of the following code? निम्नलिखित कोड का आउटपुट क्या है?

 

print(22%3)

print(22//3)

print(22/3)

 

A. 1      7        7.333333333

B. Error

C. 7      1      7.3333333

D. None of these

 

37. What will be the output of the below code? नीचे दिए गए कोड का आउटपुट क्या होगा?

 

>>>8//4//2

 

A. 8

B. 1

C. 7

D. -7

 

38. Which of the following arithmetic operators cannot be used with strings in python निम्नलिखित में से किस अंकगणितीय ऑपरेटर का उपयोग, पायथन में स्ट्रिंग्स के साथ नहीं किया जा सकता है।

 

A. +

B. *

C. -

D. All of the above

 

39. What is the use of seek() method in files? फाइलों में seek मेथड का क्या उपयोग है?

 

A. sets the file's current position at the offset ऑफसेट पर फाइल की वर्तमान स्थिति सेट करता है।

B. sets the file's previous position at the offset ऑफसेट पर फाइल की पिछली स्थिति सेट करता है।

C. sets the file's current position within the file फाइल के भीतर फाइल की वर्तमान स्थिति सेट करता है।

D. none of the mentioned उल्लेखित कोई भी नहीं।

 

40. The most important object defined in Numpy is an N-dimensional array type called? Numpy में डिफाइन सबसे महत्वपूर्ण ऑब्जेक्ट एक N- dimensional array प्रकार है जिसे कहा जाता है?

 

A. ndarray

B. narray

C. nd_array

D. darray

 

41. Which of the following is the default mode of python file? निम्नलिखित में से कौन सा पायथन फाइल का डिफॉल्ट मोड है?

 

A. read() - mode r

B. write() - mode w

C. append()- mode a

D. None of these

 

42. The readline() function read till the रीडलाइन() फंक्शन तक पढ़ा जाता है।

 

A. End of file

B. End of word

C. End of line

D. End of character

 

43. In python which method is used to write multiple strings to a file? पायथन में एक फाइल में एकाधिक स्ट्रिंग लिखने के लिए किस विधि का उपयोग किया जाता है?

 

A. writelines()

B. write()

C. read()

D. readline()

 

44. Which of the following is used to convert int to float? निम्नलिखित में से किसका उपयोग int को float में बदलने के लिए किया जाता है?

 

A. typecasting-float()

B. Assignment

C. Sequencing

D. Repetition

 

45. What is the fullform of PVM? पीवीएम का फुलफॉर्म क्या है?

 

A. Python virtual Machine

B. Python variable model

C. Python Vernacular Machine

D. Python VRAM Machine

 

46. Which of the following statement is true about PVM? पीवीएम के बारे में निम्नलिखित में से कौन सा कथन सत्य है?

 

A. It is a program which provides programming environment. यह एक प्रोग्राम है जो प्रोग्रामिंग वातावरण प्रदान करता है।

B. It is used to convert the byte code instructions into machine code. इसका उपयोग बाइट कोड निर्देशों को मशीन कोड में बदलने के लिए किया जाता है।

C. An interpreter which is present inside the PVM, converts the byte code into machine code and sends that machine code to the computer processor for execution. एक इन्टरप्रिटर जो PVM के अंदर मौजूद होता है, बाइट कोड को मशीन कोड (0-1) में परिवर्तित करता है और उस मशीन कोड को निष्पादन के लिए कंप्यूटर प्रोसेसर को भेजता है।

D. All of these

 

47.......... is used as loop in python......... पायथन में लूप के रूप में प्रयोग किया जाता है।

 

A. for and while

B. do while

C. Both A and B

D. None of the above.

 

48. Amongst which of the following is / are the application areas of Python programming? निम्नलिखित में से कौन-सा / से पायथन प्रोग्रामिंग का ऐप्लिकेशन क्षेत्र है?

 

A. Web Development

B. Game Development

C. Artificial Intelligence and Machine learning

D. All of the above

 

49. What is the return value of trunc()? trunc() की रिटर्न वैल्यू क्या है?

 

A. int

B. bool

C. float

D. None


 

50. What is the use of truncate() method in file? फाइल में ट्रंकेट() विधि का क्या उपयोग है?

 

A. truncates the file size

B. deletes the content of the file

C. deletes the file size

D. none of the mentioned

 

51. What is the current syntax of remove a file? किसी फाइल को हटाने का वर्तमान सिंटैक्स क्या है?

 

A. remove(file_name)

B. remove(new_file_name,

current_file_name,)

C. remove((), file_name))

D. none of the mentioned

 

52. What is the use of "a" in file handling? फाइल प्रबंधन में 'a' का क्या उपयोग है?

 

A.Read

B.Write

C. Append

D. None of these

 

53. Which among the following is NOT a Python keyword? निम्नलिखित में से कौन सा पायथन कीवर्ड नहीं है?

 

A. True

B. true

C. and

D. or

 

54. Which is the type of 'inf in Python? पायथन में 'inf का प्रकार कौन सा है?

 

A. Boolean

 b. String

C. Complex

 d. Float

 

55. Which among the following is NOT a Python keyword? निम्नलिखित में से कौन सा पायथन कीवर्ड नहीं है?

 

A. finally

 B. for

C. from

D. None of these

 

56. What is the output of the expression? एक्सप्रेशन का आउटपुट क्या है? round(4.5676,2)

 

Α. 4.5

 Β. 4.6

C. 4.57

D. 4.56

 

57. What is the output of the following code. निम्नलिखित कोड का आउटपुट क्या है। >>x=3 >>eval('x^2')

 

A. Error

B. 1

C. 9

D. 6

 

58. What is the output of the functions shown below? नीचे दिखाए गए फंक्शंस का आउटपुट क्या है? >>float('-infinity') >>float('inf')

 

A. -inf and inf

B. -infinity and inf

C. Error and Error

 D. Error and Junk value

 

59. What is the purpose of Numpy in Python? पायथन में Numpy का उद्देश्य क्या है?

 

A. To do numerical calculations

B. To do scientific computing

C. Both A and B

D. None of these

 

60. Amongst which Python library is similar to Pandas? कौन पायथन लाइब्रेरी Pandas के समान है?

 

A. NPY

B. RPY

C. Numpy

D. None of these

 

61. Amongst which of the following is true with reference to Pip in Python? पायथन में Pip के संदर्भ में निम्नलिखित में से कौन सा सत्य है?

 

A. Pip is a standard package management system. Pip एक स्टैंडर्ड पैकेज प्रबंधन प्रणाली है।

B. It is used to install and manage the software packages written in Python. इसका उपयोग पायथन में लिखे गए सॉफ्टवेयर पैकेजों को स्थापित करने और प्रबंधित करने के लिए किया जाता है।

C. Pip can be used to search a Python package. Pip का उपयोग पायथन पैकेज को खोजने के लिए किया जा सकता है।

D. All of the mentioned above उपरोक्त सभी

 

62. NumPy arrays can be

 

A. Indexed

 B. Sliced

 C. Iterated

D. All of these

 

63. How are keyword arguments specified in the function heading? फंक्शन हेडिंग में कीवर्ड आर्गुमेन्ट कैसे निर्दिष्ट किए जाते हैं?

 

A. one star followed by a valid identifier

B. one underscore followed by a valid identifier

C. two stars followed by a valid identifier.

D. two underscores followed by a valid identifier.

 

64. What are the attributes of numpy array?

numpy ऐरे के ऐट्रीब्यूट क्या हैं?

 

A. Shape,dtype,ndim

B. objects,type,list

C. objects, non vectorization

D. Unicode and shape

 

65. What does size attribute in numpy use to find?  Numpy में साइज ऐट्रीब्यूट का उपयोग क्या खोजने के लिए किया जाता है?

 

 A. Number of Rows and Columns in array 7

B. Size of each items in array

C. Number of elements in array

D. Largest element of an array

 

66. The number of axes in an ndarray is called its.  किसी ndarray में अक्षों की संख्या को कहा जाता है।

 

A. rank

B. dtype

C. shape

D. None

 

67. Which of the following is true about top- down design process? टॉप-डाउन डिज़ाइन प्रक्रिया के बारे में निम्नलिखित में  से कौन सा सत्य है?

 

A. The details of a program design are addressed before the overall design. किसी प्रोग्राम डिज़ाइन के विवरण को समग्र डिजाइन से पहले ध्यान दिया जाता है।

B. Only the details of the program are addressed. केवल प्रोग्राम का विवरण दिया जाता है।

C. The overall design of the program is addressed before the details. प्रोग्राम के समग्र डिजाइन को विवरण से पहले ध्यान दिया जाता है।

D. Only the design of the program is addressed. प्रोग्राम के डिजाइन पर ध्यान दिया जाता है।

 

68. Which among the following is NOT a Python string method? निम्नलिखित में से कौन सा पायथन स्ट्रिंग मेथड नहीं है?

 

A. capitalize()

B.find()

 C.isalnum()

 D. sqrt()

 

69. Which of the following is a tuple method in Python? निम्नलिखित में से कौन सा पायथन में एक टपल मेथड है?

 

A. indexof() and get()

B. count() index() len() and sorted()

C. min() and max()

D. B and C

 

 70.Which of the  following is a dictionary method in Python? निम्नलिखित में से कौन सा पायथन में डिक्शनरी मेथड है?

 

A. copy()

B. get

C. key() and values()

 D. All of the above

 

 71. Which is NOT a built-in Math function in Python? पायथन में कौन सा बिल्ट-इन मैथ फंक्शन नहीं है?

 

A. min and max

B. abs and sqrt

C. sq

D. ceil & floor

 

72. Which is not a Python list function? कौन सा पायथन लिस्ट का फंक्शन नहीं है?

 

A. append

B. remove

C. sort

 D. Push

 

73. Which of the statements best describes a package in Python? कौन सा कथन पायथन में पैकेज का सबसे अच्छा वर्णन करता है?

 

A. A collection of python modules. पायथन मॉड्यूल का एक संग्रह

B. A collection of files with python functions .पायधन फंक्शंस वाली फाइलों का संग्रह

C. A set of programs using python module. पायथन मॉड्यूल का उपयोग करने वाले प्रोग्रामों का एक सेट हैं।

D. None of the above .उपर्युक्त में से कोई नही

 

74. list, tuple, and range are the of Data Types. लिस्ट, टुपल और रेंज डेटा प्रकार होता है।

 

A. Sequence Type

B. Binary Type

C. Boolean Type

D. None of these

 

75. bytes, byte array, memory view are type of the data type. बाइट्स, बाइटएरे, मेमोरीव्यू हैं। डेटा प्रकार के प्रकार

 

A. Mapping Type

B. Boolean Type

C. Binary Types

D. None कोई नहीं

 

76. NumPy arrays used over lists because.   NumPy ऐरे का उपयोग सूचियों पर किया जाता है क्योंकि

 

A. Numpy Arrays have contiguous memory location

B. They are more speedy to work with

C. They are more convenient to deal with

D. All of the above

 

77. The list.index(x[, start[,end]]) is used to list.index(x[, start[, end]]) का उपयोग लिए किया जाता है।

 

A. Return zero-based index in the list

 B. Raises a ValueError if there is no such item

C. Both A and B

D. None of the mentioned above

 

78. Python Dictionary is used to store the data in a format. पायथन डिक्शनरी का उपयोग डेटा को ... फार्मेट में संग्रहीत करने के लिए किया जाता है।

 

A. key value pair

 B. Group value pair

C. select value pair

 D. None of these

 

79. The following is used to define a………     ………. को डिफाइन करने के लिए निम्नलिखित का उपयोग किया जाता है।

 

d = {

<key>: <value>,

<key>: <value>,

.

.

<key>: <value>

}

 

A.Group

 B.List

 C. Dictionary

D.All of these

 

80. Conditional statements are also known as statements. कंडीशनल स्टेटमेन्टो को .... कथनों के रूप में भी जाना जाता है

 

A. Decision-making

B. Array

C. List

D. None

 

81. In a Python program, Nested if Statements denotes? पायथन प्रोग्राम में, नेस्टेड if स्टेटमेंट्स को दर्शाता है?

 

A. if statement inside another if statement

B. if statement outside the another if statement

C. Both A and B

D. None of the mentioned

 

82. What is the output of the following code. निम्नलिखित कोड का आउटपुट क्या है। x=13 if x>12 or x<15 and x==16: print("Given condition matched") else: print("Given condition did not match")

 

A. Given condition matched

B. Given condition did not match

C. Both A and B

D. None of the mentioned above

 

83. What is the output of the following code. निम्नलिखित कोड का आउटपुट क्या है।

 num = 10 if num > 0: print("Positive number") elif num == 0: print("Zero")

else:

print("Negative rmber")

 

A. Positive Number

B. Negative Number

C. Zero

D. None of these

 

84. Loops are known as....  in programming. प्रोग्रामिंग में लूप्स को....के रूप में जाना जाता है।

 

A. Control flow statements

B. Conditional statements

C. Data structure statements

D. None of the mentioned above

 

85. Amongst which of the following is / are true with reference to loops in Python? पायथन में लूप के संदर्भ में निम्नलिखित में से कौन सा/से सत्य हैं?

 

A. It allows for code reusability to be achieved.

B. By utilizing loops, we avoid having to write the same code over and over again.

C. We can traverse through the elements of data structures by utilizing looping.

D. All of the above

 

86. Amongst which of the following shows the types of function calls in Python? निम्नलिखित में से कौन पायथन में फंक्शन कॉल के प्रकार दिखाता है?

 

A. Call by value

B. Call by reference

C. Both A and B

D. None of these

 

87. Amongst which of the following is a function which does not have any name? निम्नलिखित में से कौन सा ऐसा फंक्शन है जिसका कोई नाम नहीं है?

 

A. Del     

 B. Show      

 C. Lambda

D. None of these

 

88. Which of the following symbol displayed in the python shell prompt? निम्नलिखित में से कौन सा प्रतीक, पायथन शेल प्रॉम्प्ट में प्रदर्शित होता है?

 

A. >>

B. >>>

 C. :

D. :>

 

89. The continue statement can be used in? कंटिन्यू स्टेटमेन्ट का उपयोग किया जा सकता है?

 

A. while loop

B. for loop

 C. while-do

D. Both A and B

 

90. Which is not true about text files? टेक्स्ट फाइलों के बारे में कौन सा सत्य नहीं है?

 

(i) Files with extensions like py, .csv, docx are considered as text files.

(ii) Text files content are stored in ASCII, UNICODE or any other encoding scheme.

(iii) Text files are not human readable.

A. (i), (ii) True

B. (i), (iii) True

C. All True

D. Only (i) True

 

91. A python program is converted into code after compilation. एक पायथन प्रोग्राम को कम्पाइल करने के बाद ..... कोड में परिवर्तित किया जाता है।

 

A. Cheat code

 B. Short code

C. Byte code

D. Nano code

 

92. A text file contains only textual information consisting of एक टेक्स्ट फाइल में केवल टेक्स्ट संबंधी जानकारी होती है।

 

A. Alphabets

B. Numbers

C. Special symbol

D. All of the above

 

93. What is the output of the following code? नीचे दिए गए कोड का आउटपुट क्या होगा?

 

a = '12'

print(a* 2)

print(a* 0)

print(a*-2)

A. 1    21     2

B. 2    4

C. O

D.    -1     -2     -1    -2

 

94. How many times will this program run the loop? यह प्रोग्राम कितनी बार लूप चलाएगा?

 

a = 2

while(a >-100):

a=a-1

print(a)

 

 A. infinite

 B. 102

C. 2

D. 1

 

95. PVM is often called…PVM को अक्सर कहा जाता है।

 

A. Python interpreter

B. Python compiler

C. Python volatile machine

D. Portable virtual Machine

 

96. Write the output of the following: निम्नलिखित का आउटपुट लिखेंः i = {4, 5, 6} i.update({2, 3, 4}) print(i)

 

A. {2, 3, 4, 5, 6}

B. {4, 5, 6, 2, 3}

C. {4, 3, 2, 5, 6}

D. {4, 3, 4, 5, 6}

 

97. When you try to open a binary file in MSWord, It will show?  जब आप एम-एसवर्ड में एक बाइनरी फाइल खोलने का प्रयास करेंगे, तो यह दिखाई देगी?

 

A. Actual content

B. Garbage values

C. will not be opened

D. Binary digits

 

98. If you want to add new line of text in 'Sample.txt, than which file open mode you would select? यदि आप 'Sample.txt' में टेक्स्ट की नई लाइन जोड़ना चाहते हैं, तो आप कौन सा फाइल ओपन मोड चुनेंगे?

 

A. a

B. a+

C.w

D. both A and B

 

 

99. Which of the following is invalid? निम्नलिखित में से कौन सा इनवैलिड है?-

 

A.a=1  

 B._a=1    

 C._str=1     

 D. None of these

 

100. To read the remaining lines of the file from a file object infile, we use …फाइल ऑब्जेक्ट इनफाइल से फाइल की शेष पंक्तियों को पढ़ने के लिए, हम का उपयोग करते हैं।

 

A. infile.read(2)

B. infile.read()

C. infile.readline()

D. infile.readlines()

Post a Comment

0 Comments

 python most imp  mcqs set 5