Question:

A .......... value can be written using single, double or triple quotes in Python.

Show Hint

In Python, strings can be enclosed in single, double, or triple quotes, giving flexibility to handle special characters and multi-line text.
Updated On: Jan 9, 2026
  • numeric
  • Boolean
  • string
  • real
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

Step 1: Understanding the question.
In Python, strings can be written using single, double, or triple quotes. This allows flexibility in how strings are represented.
Step 2: Analyzing the options.
(A) numeric: This is incorrect. Numeric values are written as numbers, not using quotes.
(B) Boolean: This is incorrect. Boolean values `True` and `False` are not written using quotes.
(C) string: Correct — Strings in Python can be enclosed in single quotes (`'`), double quotes (`"`), or triple quotes (`'''` or `"""`).
(D) real: This is incorrect. Real numbers are written as numeric values, not as strings.
Step 3: Conclusion.
The correct answer is (C) string, as strings in Python can be written using various types of quotes.
Was this answer helpful?
0
0