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

Problem Solving and Python Programming MCQs | Page - 11

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. 101) What is the type of sys.argv?

(A) set
(B) list
(C) tuple
(D) string
View Answer Discuss Share

Q. 102) f1(). .

(A) error
(B) 12
(C) 15
(D) 1512
View Answer Discuss Share

Q. 103) ,2,3,4 f(5,10,15)

(A) 1 2 3 4
(B) 5 10 15 4
(C) 10 20 30 40
(D) 5 10 15 40
View Answer Discuss Share

Q. 104) (1,2) print(total)

(A) error
(B) 7
(C) 8
(D) 15
View Answer Discuss Share

Q. 105) Which of the following data structures is returned by the functions globals() and locals()?

(A) list
(B) set
(C) dictionary
(D) tuple
View Answer Discuss Share

Q. 106) On assigning a value to a variable inside a function, it automatically becomes a global variable.

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

Q. 107) What happens if a local variable exists with the same name as the global variable you want to access?

(A) error
(B) the local variable is shadowed
(C) undefined behavior
(D) the global variable is shadowed
View Answer Discuss Share

Q. 108) print(a)

(A) 10
(B) 25
(C) junk value
(D) error
View Answer Discuss Share

Q. 109) f() x

(A) error
(B) 4
(C) junk value
(D) 1
View Answer Discuss Share

Q. 110) Which is the most appropriate definition for recursion?

(A) a function that calls itself
(B) a function execution instance that calls another execution instance of the same function
(C) a class method that calls another class method
(D) an in-built method that is automatically called
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