Question mark
Template:Short description Template:Redirect Template:Infobox punctuation The question mark Template:Char (also known as interrogation point, query, or eroteme in journalismTemplate:Sfn) is a punctuation mark that indicates a question or interrogative clause or phrase in many languages.
HistoryEdit
The history of the question mark is contested. One popular theory posits that the shape of the symbol is inspired by the crook in a cat's tail, often attributed to the ancient Egyptians.<ref name=burb>Template:Cite news</ref> However, Egyption hieroglyphics did not utilize punctuation marks.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>
In the fifth century, Syriac Bible manuscripts used question markers, according to a 2011 theory by manuscript specialist Chip Coakley: he believes the zagwa elaya ("upper pair"), a vertical double dot over a word at the start of a sentence, indicates that the sentence is a question.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref><ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>
From around 783, in Godescalc Evangelistary, a mark described as "a lightning flash, striking from right to left" is attested.Template:RTemplate:Sfn This mark is later called a Template:Wikt-lang. According to some paleographers, it may have indicated intonation, perhaps associated with early musical notation like neumes.<ref name=grammarphobia>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> Another theory, is that the "lightning flash" was originally a tilde or titlo, as in Template:Char, one of many wavy or more or less slanted marks used in medieval texts for denoting things such as abbreviations, which would later become various diacritics or ligatures.<ref>Template:Cite book</ref><ref>The Straight Dope on the question mark Template:Webarchive (link down)</ref> The creation of the punctus interrogativus has also been attributed to Alcuin of York, an advisor to Charlemagne.<ref name=burb/>
From the 10th century, the pitch-defining element (if it ever existed) seems to have been gradually forgotten, so that the "lightning flash" sign (with the stroke sometimes slightly curved) is often seen indifferently at the end of clauses, whether they embody a question or not.Template:Citation needed
In the early 13th century, when the growth of communities of scholars (universities) in Paris and other major cities led to an expansion and streamlining of the book-production trade,<ref>De Hamel, Christopher History of Illuminated Manuscripts, 1997</ref> punctuation was rationalized by assigning the "lightning flash" specifically to interrogatives; by this time, the stroke was more sharply curved and can easily be recognized as the modern question mark (see, for example, Template:Interlanguage link (1496) printed by Aldo Manuzio in Venice<ref>Template:Cite book</ref>).
In 1598, the English term point of interrogation is attested in an Italian–English dictionary by John Florio.<ref>Template:Cite book</ref>
In the 1850s, the term question mark is attested:<ref>Template:Cite book</ref>
<templatestyles src="Template:Blockquote/styles.css" />
The mark which you are to notice in this lesson is of this shape ? You see it is made by placing a little crooked mark over a period.... The name of this mark is the Question Mark, because it is always put after a question. Sometimes it is called by a longer and harder name. The long and hard name is the Interrogation Point.{{#if:|{{#if:|}}
— {{#if:|, in }}Template:Comma separated entries}}
{{#invoke:Check for unknown parameters|check|unknown=Template:Main other|preview=Page using Template:Blockquote with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | 3 | 4 | 5 | author | by | char | character | cite | class | content | multiline | personquoted | publication | quote | quotesource | quotetext | sign | source | style | text | title | ts }}
ScopeEdit
In English, the question mark typically occurs at the end of a sentence, where it replaces the full stop (period). However, the question mark may also occur at the end of a clause or phrase, where it replaces the comma Template:Crossreference:
- "Is it good in form? style? meaning?"
or:
- "Showing off for him, for all of them, not out of hubris—hubris? him? what did he have to be hubrid about?—but from mood and nervousness."
- — Stanley Elkin.<ref>Template:Cite book</ref>
This is quite common in Spanish, where the use of bracketing question marks explicitly indicates the scope of interrogation.
- {{#invoke:Lang|lang}} ('In case you cannot go with them, would you like to go with us?')
A question mark may also appear immediately after questionable data, such as dates:
- Genghis Khan (1162?–1227)
In other languages and scriptsEdit
Opening and closing question marks in SpanishEdit
{{#invoke:Labelled list hatnote|labelledList|Main article|Main articles|Main page|Main pages}}
In Spanish, since the second edition of the {{#invoke:Lang|lang}} of the {{#invoke:Lang|lang}} in 1754, interrogatives require both opening Template:Char and closing Template:Char question marks.Template:Sfn<ref>Template:Cite book</ref> An interrogative sentence, clause, or phrase begins with an inverted question mark Template:Char and ends with the question mark Template:Char, as in:
- {{#invoke:Lang|lang}} – 'She asks me, "What time is it?Template:"'
Question marks must always be matched, but to mark uncertainty rather than actual interrogation omitting the opening one is allowed, although discouraged:<ref>Interrogación y exclamación (signos de). Punto 3d.</ref>
- {{#invoke:Lang|lang}} is preferred in Spanish over {{#invoke:Lang|lang}}
The omission of the opening mark is common in informal writing, but is considered an error. The one exception is when the question mark is matched with an exclamation mark, as in:
- {{#invoke:Lang|lang}} – 'Who do you think you are?!'
(The order may also be reversed, opening with a question mark and closing with an exclamation mark.) Nonetheless, even here the {{#invoke:Lang|lang}} recommends matching punctuation:<ref>Interrogación y exclamación (signos de). Punto 3b.</ref>
- {{#invoke:Lang|lang}}
The opening question mark in Unicode is Template:Unichar.
In other languages of SpainEdit
Galician also uses the inverted opening question mark, though usually only in long sentences or in cases that would otherwise be ambiguous. Basque and Catalan, however, use only the terminal question mark.Template:Clarify
Solomon Islands PidginEdit
In Solomon Islands Pidgin, the question can be between question marks since, in yes/no questions, the intonation can be the only difference.
{{#invoke:Lang|lang}} ('Solomon Islands is a great country, isn't it?')<ref name="Lee">Template:Cite book</ref>
Armenian question markEdit
In Armenian, the question mark is a diacritic that takes the form of an open circle and is placed over the stressed vowel of the question word. It is defined in Unicode at Template:Unichar. Template:Anchor Template:Clear left
Greek question markEdit
The Greek question mark (Template:Langx) looks like Template:Char. It appeared around the same time as the Latin one, in the 8th century.<ref>Template:Cite book</ref> It was adopted by Church Slavonic and eventually settled on a form essentially similar to the Latin semicolon. In Unicode, it is separately encoded as Template:Unichar, but the similarity is so great that the code point is normalised to Template:Unichar, making the marks identical in practice.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}". 2005. Accessed 7 October 2014.</ref>
Mirrored question mark in right-to-left scriptsEdit
In Arabic and other languages that use Arabic script such as Persian, Urdu and Uyghur (Arabic form), which are written from right to left, the question mark is mirrored right-to-left from the Latin question mark. In Unicode, two encodings are available: Template:Unicode character and Template:Unichar. Some browsers may display the character in the previous sentence as a forward question mark due to font or text directionality issues.
The Arabic question mark is also used in some other right-to-left scripts: Dhivehi,<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> N'Ko,<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> Syriac,<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> and Adlam.<ref name="r12a">{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> Adlam also has Template:Unichar: {{#invoke:Lang|lang}}, 'No?'.<ref name="r12a" />
Hebrew script is also written right-to-left, but it uses a question mark that appears on the page in the same orientation as the left-to-right question mark (e.g. {{#invoke:Lang|lang}}).Template:Sfn Template:Clear left
Fullwidth question mark in East Asian languagesEdit
The question mark is also used in modern writing in Chinese and, to a lesser extent, Japanese. Usually, it is written as fullwidth form in Chinese and Japanese, in Unicode: Template:Unichar. Fullwidth form is always preferred in official usage.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref><ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref><ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> In Korean language, however, halfwidth is used.<ref>Template:Cite journal</ref>
Japanese has an interrogative particle, か (ka), which functions grammatically like a question mark. Therefore, the question mark is not historically used Japanese, and still not officially sanctioned for use in government publications or school textbooks, but its popularity has been gradually increasing among younger people. Where official usage is {{#invoke:Lang|lang}}, some people would now informally write {{#invoke:Lang|lang}} to express "It may be over"; the question mark here adds a nuance of uncertainty to the sentence rather than turning it into a question.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>
Chinese also has a spoken indicator of questions, which is 吗 (ma). However, the question mark should always be used after {{#invoke:Lang|lang}} when asking questions.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>
In other scriptsEdit
Some other scripts have a specific question mark:
Stylistic variantsEdit
French orthography specifies a narrow non-breaking space before the question mark.<ref>Template:Cite book.</ref> (e.g., "{{#invoke:Lang|lang}}"); in English orthography, no space appears in front of the question mark (e.g. "What would you like to drink?").<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>
Typological variants of ?Edit
The rhetorical question mark or percontation point (see Irony punctuation) was invented by Henry Denham in the 1580s and was used at the end of a rhetorical question;Template:Sfn however, it became obsolete in the 17th century. It was the reverse of an ordinary question mark, so that instead of the main opening pointing back into the sentence, it opened away from it.Template:Sfn This character can be represented using Template:Unichar.
Bracketed question marks can be used for rhetorical questions, for example Template:Char, in informal contexts such as closed captioning.
The question mark can also be used as a meta-sign to signal uncertainty regarding what precedes it. It is usually put between brackets: Template:Char. The uncertainty may concern either a superficial level (such as unsure spelling), or a deeper truth (real meaning).
In typography, some other variants and combinations are available: "⁇," "⁈," and "⁉," are usually used for chess annotation symbols; the interrobang, "‽," is used to combine the functions of the question mark<ref name="A course of reading for common schools and the lower classes of academies">Template:Cite book</ref> and the exclamation mark, superposing these two marks.
Unicode makes available these variants:
- Template:Unichar
- Template:Unichar
- Template:Unichar
- Template:Unichar
- Template:Unichar
- Template:Unichar
- Template:Unichar
- Template:Unichar
- Template:Unichar
- Template:Unichar
- Template:Unichar
- Template:Unichar
- Template:Unichar
- Template:Unichar
ComputingEdit
In computing, the question mark character is represented by ASCII code 63 (0x3F hexadecimal), and is located at Unicode code-point Template:Unichar. The full-width (double-byte) equivalent (?), is located at code-point Template:Unichar.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>
The inverted question mark (¿) corresponds to Unicode code-point Template:Unichar, and can be accessed from the keyboard in Microsoft Windows on the default US layout by holding down the Alt and typing either 1 6 8 (ANSI) or 0 1 9 1 (Unicode) on the numeric keypad. In GNOME applications on Linux operating systems, it can be entered by typing the hexadecimal Unicode character (minus leading zeros) while holding down both Ctrl and Shift, i.e.: Ctrl Shift B F. In recent XFree86 and X.Org incarnations of the X Window System, it can be accessed as a compose sequence of two straight question marks, i.e. pressing Compose ? ? yields ¿. In classic Mac OS and Mac OS X (macOS), the key combination Option Shift ? produces an inverted question mark.
In shell and scripting languages, the question mark is often utilized as a wildcard character: a symbol that can be used to substitute for any other character or characters in a string. In particular, filename globbing uses "?" as a substitute for any one character, as opposed to the asterisk, "*", which matches zero or more characters in a string.
The question mark is used in ASCII renderings of the International Phonetic Alphabet, such as SAMPA, in place of the glottal stop symbol, {{#invoke:IPA|main}}, (which resembles "?" without the dot), and corresponds to Unicode code point Template:Unichar.
In computer programming, the symbol "?" has a special meaning in many programming languages. In C-descended languages, ?
is part of the ?:
operator, which is used to evaluate simple boolean conditions. In C# 2.0, the ?
modifier is used to handle nullable data types and ??
is the null coalescing operator. In the POSIX syntax for regular expressions, such as that used in Perl and Python, ?
stands for "zero or one instance of the previous subexpression", i.e. an optional element. It can also make a quantifier like {x,y}
, +
or *
match as few characters as possible, making it lazy, e.g. /^.*?px/
will match the substring 165px
in 165px 17px
instead of matching 165px 17px
.Template:Efn In certain implementations of the BASIC programming language, the ?
character may be used as a shorthand for the "print" function; in others (notably the BBC BASIC family), ?
is used to address a single-byte memory location. In OCaml, the question mark precedes the label for an optional parameter. In Scheme, as a convention, symbol names ending in ?
are used for predicates, such as odd?
, null?
, and eq?
. Similarly, in Ruby, method names ending in ?
are used for predicates. In Swift a type followed by ?
denotes an option type; ?
is also used in "optional chaining", where if an option value is nil, it ignores the following operations. Similarly, in Kotlin, a type followed by ?
is nullable and functions similar to option chaining are supported. In APL, ?
generates random numbers or a random subset of indices. In Rust, a ?
suffix on a function or method call indicates error handling. In SPARQL, the question mark is used to introduce variable names, such as ?name
. In MUMPS, it is the pattern match operator.
In the Xbase family of programming languages, which includes dBase and FoxPro, either one or two question marks at the start of a line of code serve as a shorthand for the Print function. The effect is to evaluate the following expression(s) and to send the result(s) either to the screen or a printer. A single question mark sends a carriage return and line feed before the output; this is not the case with a double question mark.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref><ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>
In many Web browsers and other computer programs, when converting text between encodings, it may not be possible to map some characters into the target character set. In this situation it is common to replace each unmappable character with a question mark ?, inverted question mark ¿, or the Unicode replacement character, usually rendered as a white question mark in a black diamond: Template:Unichar. This commonly occurs for apostrophes and quotation marks when they are written with software that uses its own proprietary non-standard code for these characters, such as Microsoft Office's "smart quotes".
The generic URL syntax allows for a query string to be appended to a resource location in a Web address so that additional information can be passed to a script; the query mark, ?
, is used to indicate the start of a query string. A query string is usually made up of a number of different field/value pairs, each separated by the ampersand symbol, &
, as seen in this URL:
http://www.example.com/search.php?query=testing&database=English
Here, a script on the page search.php on the server www.example.com is to provide a response to the query string containing the pairs query=testing and database=English.
GamesEdit
In algebraic chess notation, some chess punctuation conventions include: "?" denotes a bad move, "??" a blunder, "?!" a dubious move, and "!?" an interesting move.
In Scrabble, a question mark indicates a blank tile.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>
LinguisticsEdit
In most areas of linguistics, but especially in syntax, a question mark in front of a word, phrase or sentence indicates that the form in question is strongly dispreferred, "questionable" or "strange", but not outright ungrammatical.Template:Efn (The asterisk is used to indicate outright ungrammaticality.<ref name="Graffi"/>Template:Rp)
Other sources go further and use several symbols (e.g. the question mark and the asterisk plus <syntaxhighlight lang="text" class="" style="" inline="1">?*</syntaxhighlight> or the degree symbol <syntaxhighlight lang="text" class="" style="" inline="1">°</syntaxhighlight>) to indicate gradations or a continuum of acceptability.Template:Efn
Yet others use double question marks <syntaxhighlight lang="text" class="" style="" inline="1">??</syntaxhighlight> to indicate a degree of strangeness between those indicated by a single question mark and that indicated by the combination of question mark and asterisk.<ref>Template:Cite book</ref><ref>Template:Cite book</ref>
Mathematics and formal logicEdit
Template:Anchor In mathematics, "?" commonly denotes Minkowski's question mark function.
In linear logic, the question mark denotes one of the exponential modalities that control weakening and contraction.
When placed above the relational symbol in an equation or inequality, a question-mark annotation means that the stated relation is "questioned". This can be used to ask whether the relation might be true or to point out the relation's possible invalidity.
MedicineEdit
A question mark is used in English medical notes to suggest a possible diagnosis. It facilitates the recording of a doctor's impressions regarding a patient's symptoms and signs. For example, for a patient presenting with left lower abdominal pain, a differential diagnosis might include ?diverticulitis (read as "query diverticulitis").
See alsoEdit
- Template:Annotated link
- Cosmic "Question Mark"
- Template:Annotated link ('upspeak', 'uptalk')
- Template:Annotated link
- Template:Annotated link
- Template:Annotated link
- List of typographical symbols and punctuation marks
- Template:Annotated link
- .notdef. symbolTemplate:Snd diamond with a question mark, �, or a box with a question mark in it, ⍰, used to indicate that a font lacks the desired character.
NotesEdit
ReferencesEdit
BibliographyEdit
External linksEdit
- {{#invoke:citation/CS1|citation
|CitationClass=web }} – provides an overview of question mark usage, and the differences between direct, indirect, and rhetorical questions.