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

Problem Solving and Python Programming MCQs | Page - 41

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.

Q. 401) Which of the following is false about “import modulename” form of import?

(A) the namespace of imported module becomes part of importing module
(B) this form of import prevents name clash
(C) the namespace of imported module becomes available to importing module
(D) the identifiers in module are accessed as: modulename.identifier
View Answer Discuss Share

Q. 402) Which of the following is false about “from-import” form of import?

(A) the syntax is: from modulename import identifier
(B) this form of import prevents name clash
(C) the namespace of imported module becomes part of importing module
(D) the identifiers in module are accessed directly as: identifier
View Answer Discuss Share

Q. 403) Which of the statements about modules is false?

(A) in the “from-import” form of import, identifiers beginning with two underscores are private and aren’t imported
(B) dir() built-in function monitors the items in the namespace of the main module
(C) in the “from-import” form of import, all identifiers regardless of whether they are private or public are imported
(D) when a module is loaded, a compiled version of the module with file extension .pyc is automatically produced
View Answer Discuss Share

Q. 404) What is the order of namespaces in which Python looks for an identifier?

(A) python first searches the global namespace, then the local namespace and finally the built- in namespace
(B) python first searches the local namespace, then the global namespace and finally the built-in namespace
(C) python first searches the built-in namespace, then the global namespace and finally the local namespace
(D) python first searches the built-in namespace, then the local namespace and finally the global namespace
View Answer Discuss Share

Q. 405) What type of a structure is this?

(A) sequence
(B) case
(C) repetition
(D) process
View Answer Discuss Share

Q. 406)                            are identified by their addresses, we give them names (field names / variable names) using words.

(A) memory variables
(B) memory locations
(C) memory addresses
(D) data variables
View Answer Discuss Share

Q. 407) Operators with the same precedence are evaluated in which manner?

(A) left to right
(B) right to left
(C) can’t say
(D) none of the mentioned
View Answer Discuss Share

Q. 408) The expression Int(x) implies that the variable x is converted to integer.

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

Q. 409) Hence the result of this expression is 27.2.

(A) 4.7 – 1.5
(B) 7.9 * 6.3
(C) 1.7 % 2
(D) 3.4 + 4.6
View Answer Discuss Share

Q. 410) x75

(A) 115
(B) 116
(C) 117
(D) 118
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