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.

(A) 1
(B) 2
(C) 5
(D) error

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

(A) tuple
(B) integer
(C) list
(D) both tuple and integer

## `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

## `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)

(A) true
(B) false
(C) ---
(D) ---

## `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

## `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”)

(A) true
(B) false
(C) none
(D) error

(A) true
(B) false
(C) none
(D) error

## `Q. 370) d1 > d2`

(A) true
(B) false
(C) error
(D) none

Download our easy to use, user friendly Android App from Play Store. And learn MCQs with one click.