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

Problem Solving and Python Programming MCQs | Page - 37

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. 361) >>>print len(my_tuple)

(A) 1
(B) 2
(C) 5
(D) error
View Answer Discuss Share

Q. 362) What is the data type of (1)?

(A) tuple
(B) integer
(C) list
(D) both tuple and integer
View Answer Discuss Share

Q. 363) What type of data is: a=[(1,1),(2,4),(3,9)]?

(A) array of tuples
(B) list of tuples
(C) tuples of lists
(D) invalid type
View Answer Discuss Share

Q. 364) Is the following Python code valid? >>> a,b=1,2,3

(A) yes, this is an example of tuple unpacking. a=1 and b=2
(B) yes, this is an example of tuple unpacking. a=(1,2) and b=3
(C) no, too many values to unpack
(D) yes, this is an example of tuple unpacking. a=1 and b=(2,3)
View Answer Discuss Share

Q. 365) Tuples can’t be made keys of a dictionary.

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

Q. 366) Which of the following statements create a dictionary?

(A) d = {}
(B) d = {“john”:40, “peter”:45}
(C) d = {40:”john”, 45:”peter”}
(D) all of the mentioned
View Answer Discuss Share

Q. 367) d = {"john":40, "peter":45}

(A) “john”, 40, 45, and “peter”
(B) “john” and “peter”
(C) 40 and 45
(D) d = (40:”john”, 45:”peter”)
View Answer Discuss Share

Q. 368) "john" in d

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

Q. 369) d1 == d2

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

Q. 370) d1 > d2

(A) true
(B) false
(C) error
(D) none
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