Problem Solving and Python Programming MCQs | Page - 36

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 • 102.44K Points
Coach

Q. -i] for i in range(len(A))]

  • (A) [1, 5, 9]
  • (B) [4, 5, 6]
  • (C) [3, 5, 7]
  • (D) [2, 5, 8]
Show Answer Discuss Share

M

Mr. Dubey • 102.44K Points
Coach

Q. ) for col in range(3)]

  • (A) [3, 6, 9, 16, 20, 24, 35, 40, 45]
  • (B) error
  • (C) [0, 30, 60, 120, 160, 200, 300, 350, 400]
  • (D) 0
Show Answer Discuss Share

M

Mr. Dubey • 102.44K Points
Coach

Q. , row2)] for (row1, row2) in zip(A, B)]

  • (A) [0, 30, 60, 120, 160, 200, 300, 350, 400]
  • (B) [[3, 6, 9], [16, 20, 24], [35, 40, 45]]
  • (C) no output
  • (D) error
Show Answer Discuss Share

M

Mr. Dubey • 102.44K Points
Coach

Q. >>>t[1:3]

  • (A) (1, 2)
  • (B) (1, 2, 4)
  • (C) (2, 4)
  • (D) (2, 4, 3)
Show Answer Discuss Share

M

Mr. Dubey • 102.44K Points
Coach

Q. >>>t[1:-1]

  • (A) (1, 2)
  • (B) (1, 2, 4)
  • (C) (2, 4)
  • (D) (2, 4, 3)
Show Answer Discuss Share

M

Mr. Dubey • 102.44K Points
Coach

Q. >>>[t[i] for i in range(0, len(t), 2)]

  • (A) [2, 3, 9]
  • (B) [1, 2, 4, 3, 8, 9]
  • (C) [1, 4, 8]
  • (D) (1, 4, 8)
Show Answer Discuss Share

M

Mr. Dubey • 102.44K Points
Coach

Q. d["john"]

  • (A) 40
  • (B) 45
  • (C) “john”
  • (D) “peter”
Show Answer Discuss Share

M

Mr. Dubey • 102.44K Points
Coach

Q. >>>t1 < t2

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

M

Mr. Dubey • 102.44K Points
Coach

Q. >>>print len(my_tuple)

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

M

Mr. Dubey • 102.44K Points
Coach

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

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

Jump to

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

Image