1. Home
  2. Data Science
  3. Python
  4. What does a single leading underscore (_x) in a name…

Added 25 Nov 2026

What does a single leading underscore (_x) in a name signify in Python?

  1. A truly private variable
  2. A constant
  3. A convention that the name is for internal use Correct answer
  4. A syntax error

Correct answer

C. A convention that the name is for internal use

MCQSEXAM

Explanation

Python has no true privacy; _x is only a convention.

Reference

Asked in: Python Interview OOP

https://docs.python.org/3/tutorial/classes.html

Preparing for an exam?

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs