Home / Engineering / Problem Solving and Python Programming MCQs / Page 40

Problem Solving and Python Programming MCQs | Page - 40

Dear candidates you will find MCQ questions of Problem Solving and Python Programming here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.

M

Mr. Dubey • 51.17K Points
Coach

Q. 391) Which of the following are the modes of both writing and reading in binary format in file?

(A) wb+
(B) w
(C) wb
(D) w+
View Answer Discuss Share

M

Mr. Dubey • 51.17K Points
Coach

Q. 392) Which of the following is not a valid mode to open a file?

(A) ab
(B) rw
(C) r+
(D) w+
View Answer Discuss Share

M

Mr. Dubey • 51.17K Points
Coach

Q. 393) Which of the following is not a valid attribute of a file object (fp)?

(A) fp.name
(B) fp.closed
(C) fp.mode
(D) fp.size
View Answer Discuss Share

M

Mr. Dubey • 51.17K Points
Coach

Q. 394) How do you close a file object (fp)?

(A) close(fp)
(B) fclose(fp)
(C) fp.close()
(D) fp. close ()
View Answer Discuss Share

M

Mr. Dubey • 51.17K Points
Coach

Q. 395) How do you get the current position within the file?

(A) fp.seek()
(B) fp.tell()
(C) fp.loc
(D) fp.pos
View Answer Discuss Share

M

Mr. Dubey • 51.17K Points
Coach

Q. 396) How do you rename a file?

(A) fp.name = ‘new_name.txt’
(B) os.rename(existing_name, new_name)
(C) os.rename(fp, new_name)
(D) os.set_name(existing_name, new_name)
View Answer Discuss Share

M

Mr. Dubey • 51.17K Points
Coach

Q. 397) 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
View Answer Discuss Share

M

Mr. Dubey • 51.17K Points
Coach

Q. 398) In top-down design every module is broken into same number of submodules.

(A) true
(B) false
(C) ---
(D) ---
View Answer Discuss Share

M

Mr. Dubey • 51.17K Points
Coach

Q. 399) All modular designs are because of a top- down design process.

(A) true
(B) false
(C) ---
(D) ---
View Answer Discuss Share

M

Mr. Dubey • 51.17K Points
Coach

Q. 400) Which of the following is not a valid namespace?

(A) global namespace
(B) public namespace
(C) built-in namespace
(D) local namespace
View Answer Discuss Share

Explore Sets

Problem Solving and Python Programming MCQs Set 1

Problem Solving and Python Programming MCQs Set 2

Problem Solving and Python Programming MCQs Set 3

Problem Solving and Python Programming MCQs Set 4

Problem Solving and Python Programming MCQs Set 5

Problem Solving and Python Programming MCQs Set 6

Problem Solving and Python Programming MCQs Set 7

Problem Solving and Python Programming MCQs Set 8

Problem Solving and Python Programming MCQs Set 9

Problem Solving and Python Programming MCQs Set 10

Problem Solving and Python Programming MCQs Set 11

Problem Solving and Python Programming MCQs Set 12

Problem Solving and Python Programming MCQs Set 13

Problem Solving and Python Programming MCQs Set 14

Problem Solving and Python Programming MCQs Set 15

Problem Solving and Python Programming MCQs Set 16

Problem Solving and Python Programming MCQs Set 17

Problem Solving and Python Programming MCQs Set 18

Problem Solving and Python Programming MCQs Set 19

Problem Solving and Python Programming MCQs Set 20

Problem Solving and Python Programming MCQs Set 21

Problem Solving and Python Programming MCQs Set 22

Problem Solving and Python Programming MCQs Set 23

Problem Solving and Python Programming MCQs Set 24

Problem Solving and Python Programming MCQs Set 25

Problem Solving and Python Programming MCQs Set 26

Problem Solving and Python Programming MCQs Set 27

Problem Solving and Python Programming MCQs Set 28

Problem Solving and Python Programming MCQs Set 29

Problem Solving and Python Programming MCQs Set 30

Problem Solving and Python Programming MCQs Set 31

Problem Solving and Python Programming MCQs Set 32

Problem Solving and Python Programming MCQs Set 33

Problem Solving and Python Programming MCQs Set 34

Problem Solving and Python Programming MCQs Set 35

Problem Solving and Python Programming MCQs Set 36

Problem Solving and Python Programming MCQs Set 37

Problem Solving and Python Programming MCQs Set 38

Problem Solving and Python Programming MCQs Set 39

Problem Solving and Python Programming MCQs Set 40

Problem Solving and Python Programming MCQs Set 41

Problem Solving and Python Programming MCQs Set 42

Problem Solving and Python Programming MCQs Set 43