PYTHON Output Statement MCQ

Python MCQ
  1. Home
  2. Tutorials
  3. Python
  4. Output Statement
  5. Multiple Choice Question

(1) In python which of the following operator is used as string concatenation withon print() function.

A) + (Plus)
B) . (Dot)
C) & (ampersand)
D) _ (Underscore)

(2) In python programming which keyword is used for changing default output separator?

A) separator
B) sep
C) divider
D) link

(3) How many variables and strings can be provided as parameter input in python print() function?

A) One String , Multiple variables
B) One String, One Variable
C) Multiple Strings, One Variable
D) Multiple Strings, Multiple variables

(4) In python which of the following keyword is used for changing default statement terminator?

A) Terminator
B) Last
C) End
D) Close

(5) How many parameters are optional in python print() function?

A) One
B) Two
C) None
D) All

(6) How many paramters are used in python printf syntax?

A) One
B) Three
C) Five
D) Seven

(7) In python which of the following function is used to display output on screnn?

A) display()
B) print()
C) show()
D) printf()
Comments
Login to TRACK of Comments.