PCEP 30 02 PCEP Certified Entry Level Python Programmer · Free Practice Question Easy

Question 2

What is true about tuples ?

  • A

    + Operator can be applied to tuple and means concatenation.

  • B

    tuple () - built-in function can be used to produce an empty tuple

  • C

    We can declare one-element tuple like this - (1)

  • D

    All tuple elements must be of same type

Reveal correct answers

Correct answers: A, B

Explanation

tuple () - built-in function can be used to produce an empty tuple

+ Operator can be applied to tuple and means concatenation like below :

(3,) + (4,) evaulates to (3,4)

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need