Problem Solving and Python Programming MCQs | Page - 8

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. The format function, when applied on a string returns

  • (A) error
  • (B) int
  • (C) bool
  • (D) str
Show Answer Discuss Share

M

Mr. Dubey • 102.44K Points
Coach

Q. +2+3?

  • (A) hello123
  • (B) hello
  • (C) error
  • (D) hello6
Show Answer Discuss Share

M

Mr. Dubey • 102.44K Points
Coach

Q. >>>print("A", end = ' ')

  • (A) dcba
  • (B) a, b, c, d
  • (C) d c b a
  • (D) d, c, b, a will be displayed on four lines
Show Answer Discuss Share

M

Mr. Dubey • 102.44K Points
Coach

Q. What will be displayed by print(ord(‘b’) – ord(‘a’))?

  • (A) 0
  • (B) 1
  • (C) -1
  • (D) 2
Show Answer Discuss Share

M

Mr. Dubey • 102.44K Points
Coach

Q. Say s=”hello” what will be the return value of type(s)?

  • (A) int
  • (B) bool
  • (C) str
  • (D) string
Show Answer Discuss Share

M

Mr. Dubey • 102.44K Points
Coach

Q. 2223334))

  • (A) 1,112,223,334
  • (B) 111,222,333,4
  • (C) 1112223334
  • (D) error
Show Answer Discuss Share

M

Mr. Dubey • 102.44K Points
Coach

Q. :.2}'.format(1/3))

  • (A) 0.333333
  • (B) 0.33
  • (C) 0.333333:.2
  • (D) error
Show Answer Discuss Share

M

Mr. Dubey • 102.44K Points
Coach

Q. :.2%}'.format(1/3))

  • (A) 0.33
  • (B) 0.33%
  • (C) 33.33%
  • (D) 33%
Show Answer Discuss Share

M

Mr. Dubey • 102.44K Points
Coach

Q. '.isalnum())

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

M

Mr. Dubey • 102.44K Points
Coach

Q. xa'.isdigit())

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