Punctuation that asks a question, and an operator that chooses between two values.
As punctuation it ends an interrogative sentence. In code it opens a three-part choice: a condition, then the value if true, a colon, then the value if false. The colon is the tell — a question mark with a colon later on the same line is an operator, not a question.
The question mark is the punctuation; the ternary operator is one of the jobs programming languages give it.
Drawn from the visual attributes recorded for each symbol. Only traits the two records disagree about are listed.
| Trait | Question mark | Ternary conditional operator |
|---|---|---|
| Built from | lines and dots, abstract | lines and dots |
| Question mark | Ternary conditional operator | |
|---|---|---|
| Read by | A person | A compiler or interpreter |
| Needs a colon | No | Yes |
| Operands | — | Three, which is where the name comes from |
| Doubled form | — | Two question marks is the null coalescing operator |
| Relationship (from Symbolwise's records) | Commonly confused with Ternary conditional operator — The question mark is the punctuation; the ternary operator is one of the jobs programming languages give it. | Commonly confused with Question mark — The question mark is the punctuation; the ternary operator is one of the jobs programming languages give it. |
Unicode Code Chart: Basic Latin (U+0000–U+007F)
The Unicode Consortium · retrieved 2026-07-30
Authoritative for the character's code point, name and block only. Unicode assigns identity; it does not define what a symbol means in use.
ECMA-262, ECMAScript Language Specification
Ecma International · retrieved 2026-08-01
Authoritative for JavaScript's own syntax and only for that. A construct spelled the same way in another language may behave differently, and records say which language they are describing.
Wikipedia · retrieved 2026-08-01
Tertiary reference. Used for widely-agreed identity, origin and current use, not for contested detail or exact dates.
Both are drawn as one continuous decorative stroke with a closed loop and a tail that crosses back over itself, which is why a description of the shape alone reaches both. The clef is far taller, spans a stave, and its spiral encircles one specific line — that encircled line is the note G, and it is the only reason the shape is drawn where it is.
As punctuation the asterisk points at a footnote or marks a required field. In a filename pattern typed at a shell it matches any run of characters, including none — and the shell expands it against real filenames before the command runs, so the command never sees the pattern at all. That expansion is the part people are surprised by.
Check where the dot sits. A dot immediately to the right of the notehead adds half the note's value again — a dotted half note lasts three beats. A dot directly above or below the head means staccato: play it short and detached. One dot, two opposite instructions, and only position distinguishes them.
Look at whether the adult is standing or seated. Baby changing shows an adult leaning over an infant on a table — a facility for changing a nappy. A nursing room shows a seated figure holding an infant — a private space for feeding. They are separate rooms, and signage that conflates them sends people to the wrong one.