Question mark: Difference between revisions

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
imported>ScalarFactor
Reverting edit(s) by 2600:387:1:811:0:0:0:76 (talk) to rev. 1297175807 by OAbot: Non-constructive edit (UV 0.1.6)
imported>Plasticwonder
Restored revision 1321077489 by ClueBot NG (talk): Good faith, but terribly unreliable sources
 
Line 11: Line 11:


==History==
==History==
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>{{cite news |last1=Casagrande |first1=June |title=A Word, Please: Curious cases surrounding the question mark |url=https://www.latimes.com/socal/burbank-leader/opinion/tn-blr-me-aword-20190109-story.html |access-date=15 May 2025 |work=Burbank Leader |publisher=Los Angeles Times |date=10 January 2019}}</ref> However, Egyption hieroglyphics did not utilize punctuation marks.<ref>{{cite web |title=Daily Life in Ancient Egypt |url=http://giza.fas.harvard.edu/lessons/ancient-egyptian-writing |website=Digital Giza |publisher=The Giza Project at Harvard University |access-date=15 May 2025}}</ref>  
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>{{cite news |last1=Casagrande |first1=June |title=A Word, Please: Curious cases surrounding the question mark |url=https://www.latimes.com/socal/burbank-leader/opinion/tn-blr-me-aword-20190109-story.html |access-date=15 May 2025 |work=Burbank Leader |publisher=Los Angeles Times |date=10 January 2019}}</ref> However, [[Egyptian hieroglyphics]] did not use punctuation marks.<ref>{{cite web |title=Daily Life in Ancient Egypt |url=http://giza.fas.harvard.edu/lessons/ancient-egyptian-writing |website=Digital Giza |publisher=The Giza Project at Harvard University |access-date=15 May 2025}}</ref>  


In the fifth century, [[Classical Syriac|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>{{cite web |title=The riddle of the Syriac double dot: it's the world's earliest question mark |url=https://www.cam.ac.uk/research/news/the-riddle-of-the-syriac-double-dot-its-the-worlds-earliest-question-mark |website=University of Cambridge |date=2011-07-21 |access-date=2022-11-01 |archive-date=2022-11-01 |archive-url=https://web.archive.org/web/20221101174509/https://www.cam.ac.uk/research/news/the-riddle-of-the-syriac-double-dot-its-the-worlds-earliest-question-mark |url-status=live}}</ref><ref>{{cite web |title=Symbol in Syriac may be world's first question mark |url=https://www.reuters.com/article/us-academic-questionmark-idUKTRE76K4ZI20110721 |website=Reuters |date=2011-07-21 |access-date=2022-11-01 |archive-date=2022-11-01 |archive-url=https://web.archive.org/web/20221101182412/https://www.reuters.com/article/us-academic-questionmark-idUKTRE76K4ZI20110721 |url-status=live}}</ref>
In the fifth century, [[Classical Syriac|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>{{cite web |title=The riddle of the Syriac double dot: it's the world's earliest question mark |url=https://www.cam.ac.uk/research/news/the-riddle-of-the-syriac-double-dot-its-the-worlds-earliest-question-mark |website=University of Cambridge |date=2011-07-21 |access-date=2022-11-01 |archive-date=2022-11-01 |archive-url=https://web.archive.org/web/20221101174509/https://www.cam.ac.uk/research/news/the-riddle-of-the-syriac-double-dot-its-the-worlds-earliest-question-mark |url-status=live}}</ref><ref>{{cite web |title=Symbol in Syriac may be world's first question mark |url=https://www.reuters.com/article/us-academic-questionmark-idUKTRE76K4ZI20110721 |website=Reuters |date=2011-07-21 |access-date=2022-11-01 |archive-date=2022-11-01 |archive-url=https://web.archive.org/web/20221101182412/https://www.reuters.com/article/us-academic-questionmark-idUKTRE76K4ZI20110721 |url-status=live}}</ref>
Line 84: Line 84:


===Fullwidth question mark in East Asian languages===
===Fullwidth question mark in East Asian languages===
The question mark is also used in modern writing in [[Chinese language|Chinese]] and, to a lesser extent, [[Japanese language|Japanese]]. Usually, it is written as [[fullwidth form]] in Chinese and Japanese, in Unicode: {{unichar|ff1f|FULLWIDTH QUESTION MARK|ulink=|html=}}. Fullwidth form is always preferred in official usage.<ref>{{cite web |title=标点符号用法 |url=http://www.moe.gov.cn/ewebeditor/uploadfile/2015/01/13/20150113091548267.pdf |website=Chinese Ministry of Education |lang=zh-hans |quote=句号、逗号、顿号、分号、冒号均置于相应文字之后,占一个字位置,居左下,不出现在一行之首。 }}</ref><ref>{{cite web |title=常用格式說明 |url=http://www.cjpsy.com/_i/assets/upload/files/(%E5%85%AC%E5%91%8A%E7%89%88)%E4%B8%AD%E8%8F%AF%E5%BF%83%E7%90%86%E5%AD%B8%E5%88%8A%E5%B8%B8%E7%94%A8%E6%A0%BC%E5%BC%8F%E8%AA%AA%E6%98%8Ev6.pdf |website=Chinese Journal of Psychology |lang=zh-hant |quote=請使用新式標準符號,所有的中文標點符號都要佔全形。}}</ref><ref>{{cite web |title=記述上の約束事 |url=https://jss-sociology.org/bulletin/guide/promise |website=The Japan Sociological Society |date=8 February 2019 |lang=ja |quote=和文を書くときには,原則としてすべて全角文字を使用しなければならない.漢字,ひらがな,カタカナのみならず,句読点やカッコ記号なども,全角文字を使用すること(このルールの例外については,そのつど述べる).}}</ref> In [[Korean language]], however, halfwidth is used.<ref>{{cite journal | title=한글 타이포그라피 환경으로서의 문장부호에 대하여 : 표준화 이슈를 중심으로 개선 방향 제안 |author=심우진 | journal=글짜씨 |date=December 2011 | volume=3 | issue=2 | issn=2093-1166 | pages=987–1005 | url=https://www.dbpia.co.kr/journal/articleDetail?nodeId=NODE07406554 | language=ko | access-date=2024-10-07 |quote=일반적인 키보드 입력 환경에서 사용하는 문장 부호는 대부분 반각 문장 부호이며, 이들은 라틴 문자의 문장 부호를 차용한 것이다. }}</ref>
The question mark is also used in modern writing in [[Chinese language|Chinese]] and, to a lesser extent, [[Japanese language|Japanese]]. Usually, it is written as [[fullwidth form]] in Chinese and Japanese, in Unicode: {{unichar|ff1f|FULLWIDTH QUESTION MARK|ulink=|html=}}. Fullwidth form is always preferred in official usage.<ref>{{cite web |title=标点符号用法 |url=http://www.moe.gov.cn/ewebeditor/uploadfile/2015/01/13/20150113091548267.pdf |website=Chinese Ministry of Education |lang=zh-hans |quote=句号、逗号、顿号、分号、冒号均置于相应文字之后,占一个字位置,居左下,不出现在一行之首。 }}</ref><ref>{{cite web |title=常用格式說明 |url=http://www.cjpsy.com/_i/assets/upload/files/(%E5%85%AC%E5%91%8A%E7%89%88)%E4%B8%AD%E8%8F%AF%E5%BF%83%E7%90%86%E5%AD%B8%E5%88%8A%E5%B8%B8%E7%94%A8%E6%A0%BC%E5%BC%8F%E8%AA%AA%E6%98%8Ev6.pdf |website=Chinese Journal of Psychology |lang=zh-hant |quote=請使用新式標準符號,所有的中文標點符號都要佔全形。}}</ref><ref>{{cite web |title=記述上の約束事 |url=https://jss-sociology.org/bulletin/guide/promise |website=The Japan Sociological Society |date=8 February 2019 |lang=ja |quote=和文を書くときには,原則としてすべて全角文字を使用しなければならない.漢字,ひらがな,カタカナのみならず,句読点やカッコ記号なども,全角文字を使用すること(このルールの例外については,そのつど述べる).}}</ref> In [[Korean language|Korean]], however, halfwidth is used.<ref>{{cite journal | title=한글 타이포그라피 환경으로서의 문장부호에 대하여 : 표준화 이슈를 중심으로 개선 방향 제안 |author=심우진 | journal=글짜씨 |date=December 2011 | volume=3 | issue=2 | issn=2093-1166 | pages=987–1005 | url=https://www.dbpia.co.kr/journal/articleDetail?nodeId=NODE07406554 | language=ko | access-date=2024-10-07 |quote=일반적인 키보드 입력 환경에서 사용하는 문장 부호는 대부분 반각 문장 부호이며, 이들은 라틴 문자의 문장 부호를 차용한 것이다. }}</ref>


Japanese has an interrogative particle, [[wiktionary:か|か]] (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 {{lang|ja|終わったのかもしれませんよ。}}, some people would now informally write {{lang|ja|終わったのかもしれませんよ?}} 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>{{cite web |title=疑問文でないのに"?"を付けてもよいか? |author=塩田雄大 |url=https://www.nhk.or.jp/bunken/research/kotoba/20170401_4.html |website=NHK放送文化研究所 |lang=ja }}</ref>
Japanese has an interrogative particle, [[wiktionary:か|か]] (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 {{lang|ja|終わったのかもしれませんよ。}}, some people would now informally write {{lang|ja|終わったのかもしれませんよ?}} 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>{{cite web |title=疑問文でないのに"?"を付けてもよいか? |author=塩田雄大 |url=https://www.nhk.or.jp/bunken/research/kotoba/20170401_4.html |website=NHK放送文化研究所 |lang=ja }}</ref>
Line 127: Line 127:


==Computing==
==Computing==
{{More citations|section|date=September 2025}}
In [[computing]], the question mark [[Character (computing)|character]] is represented by [[ASCII]] code 63 (0x3F hexadecimal), and is located at Unicode code-point {{unichar|003F|QUESTION MARK|html=}}. The full-width (double-byte) equivalent ('''?'''), is located at code-point {{unichar|FF1F|FULLWIDTH QUESTION MARK|html=}}.<ref>{{cite web |title=Character Codes – HTML Codes, Hexadecimal Codes & HTML Names |url=http://www.character-code.com/ |work=Character-Code.com |access-date=August 7, 2016 |archive-date=August 7, 2016 |archive-url=https://web.archive.org/web/20160807130637/http://www.character-code.com/ |url-status=live}}</ref>
In [[computing]], the question mark [[Character (computing)|character]] is represented by [[ASCII]] code 63 (0x3F hexadecimal), and is located at Unicode code-point {{unichar|003F|QUESTION MARK|html=}}. The full-width (double-byte) equivalent ('''?'''), is located at code-point {{unichar|FF1F|FULLWIDTH QUESTION MARK|html=}}.<ref>{{cite web |title=Character Codes – HTML Codes, Hexadecimal Codes & HTML Names |url=http://www.character-code.com/ |work=Character-Code.com |access-date=August 7, 2016 |archive-date=August 7, 2016 |archive-url=https://web.archive.org/web/20160807130637/http://www.character-code.com/ |url-status=live}}</ref>


The [[Inverted question mark and exclamation point|inverted question mark]] ('''¿''') corresponds to Unicode code-point {{unichar|00BF|INVERTED QUESTION MARK|html=}}, and can be accessed from the keyboard in [[Microsoft Windows]] on the default US layout by holding down the [[Alt key|<kbd>Alt</kbd>]] and typing either <kbd>1 6 8</kbd> (ANSI) or <kbd>0 1 9 1</kbd> (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 key|<kbd>Ctrl</kbd>]] and [[Shift key|<kbd>Shift</kbd>]], i.e.: <kbd>Ctrl Shift B F</kbd>. In recent [[XFree86]] and [[X.Org Server|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 key|<kbd>Compose</kbd>]]<kbd> ? ?</kbd> yields <samp>¿</samp>. In [[classic Mac OS]] and [[Mac OS X]] (macOS), the key combination [[Option key|<kbd>Option</kbd>]]<kbd> Shift ?</kbd> produces an inverted question mark.
The [[Inverted question mark and exclamation point|inverted question mark]] ('''¿''') corresponds to Unicode code-point {{unichar|00BF|INVERTED QUESTION MARK|html=}}


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 (computer science)|string]]. In particular, [[glob (programming)|filename globbing]] uses "?" as a substitute for any one character, as opposed to the [[asterisk]], "*", which matches zero or more characters in a string.
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 (computer science)|string]]. In particular, [[glob (programming)|filename globbing]] uses "?" as a substitute for any one character, as opposed to the [[asterisk]], "*", which matches zero or more characters in a string.
Line 135: Line 136:
The question mark is used in ASCII renderings of the [[International Phonetic Alphabet]], such as [[SAMPA]], in place of the [[glottal stop]] symbol, {{IPA|'''ʔ'''}}, (which resembles "'''?'''" without the dot), and corresponds to Unicode code point {{unichar|0294|LATIN LETTER GLOTTAL STOP|html=}}.
The question mark is used in ASCII renderings of the [[International Phonetic Alphabet]], such as [[SAMPA]], in place of the [[glottal stop]] symbol, {{IPA|'''ʔ'''}}, (which resembles "'''?'''" without the dot), and corresponds to Unicode code point {{unichar|0294|LATIN LETTER GLOTTAL STOP|html=}}.


In [[computer programming]], the symbol "'''?'''" has a special meaning in many [[programming language]]s. In [[C (programming language)|C]]-descended languages, <code>?</code> is part of the [[?:|<code>?:</code>]] operator, which is used to evaluate simple [[Boolean domain|boolean conditions]]. In [[C Sharp (programming language)|C#]] 2.0, the <code>?</code> modifier is used to handle [[Nullable type|nullable data types]] and <code>??</code> is the [[null coalescing operator]]. In the [[POSIX]] syntax for [[regular expression]]s, such as that used in [[Perl]] and [[Python (programming language)|Python]], <code>?</code> stands for "zero or one instance of the previous subexpression", i.e. an optional element. It can also make a quantifier like <code>{x,y}</code>, <code>+</code> or <code>*</code> match as few characters as possible, making it lazy, e.g. <code lang="js">/^.*?px/</code> will match the substring <code>165px</code> in <code>165px 17px</code> instead of matching <code>165px 17px</code>.{{efn|The [[Perl Compatible Regular Expressions]] library implements the <code>U</code> flag, which reverses behavior of quantifiers: these become lazy by default, and <code>?</code> can make them greedy.|name="pcre-qm-Uflag"}} In certain implementations of the [[BASIC]] programming language, the <code>?</code> character may be used as a shorthand for the "print" function; in others (notably the [[BBC BASIC]] family), <code>?</code> is used to address a single-byte memory location. In [[OCaml]], the question mark precedes the label for an optional parameter. In [[Scheme (programming language)|Scheme]], as a convention, symbol names ending in <code>?</code> are used for predicates, such as <code>odd?</code>, <code>null?</code>, and <code>eq?</code>. Similarly, in [[Ruby (programming language)|Ruby]], method names ending in <code>?</code> are used for predicates. In [[Swift (programming language)|Swift]] a type followed by <code>?</code> denotes an [[option type]]; <code>?</code> is also used in "optional chaining", where if an option value is nil, it ignores the following operations. Similarly, in [[Kotlin (programming language)|Kotlin]], a type followed by <code>?</code> is [[Nullable type|nullable]] and functions similar to option chaining are supported. In [[APL (programming language)|APL]], <code>?</code> generates random numbers or a random subset of indices. In [[Rust (programming language)|Rust]], a <code>?</code> suffix on a function or method call indicates error handling. In [[SPARQL]], the question mark is used to introduce variable names, such as <code>?name</code>. In [[MUMPS]], it is the pattern match operator.
In [[computer programming]], the symbol "'''?'''" has a special meaning in many [[programming language]]s.  
 
* In [[C (programming language)|C]]-descended languages, <code>?</code> is part of the [[?:|<code>?:</code>]] operator, which is used to evaluate simple [[Boolean domain|boolean conditions]].  
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>{{cite web |title=The Xbase++ Reference Documentation |url=https://doc.alaska-software.com/ |website=Alaska Software |access-date=23 March 2025}}</ref><ref>{{cite web |title=Visual FoxPro Reference |url=https://hackfox.github.io/section4/ |website=Hacker’s Guide to Visual FoxPro |publisher=Hentzenwerke Publishing |access-date=23 March 2025}}</ref>
* In [[C Sharp (programming language)|C#]] 2.0, the <code>?</code> modifier is used to handle [[Nullable type|nullable data types]] and <code>??</code> is the [[null coalescing operator]].  
* In [[Java (programming language)|Java]], <code>?</code> can represent a [[Wildcard (Java)|wildcard]] type parameter. For instance, <code>List<?></code> denotes a list that can hold any type (but not [[null pointer|{{mono|null}}]]), and <code>List<? '''extends''' T></code> and <code>List<? '''super''' T></code> denote a list that can hold any type that inherits from/is an ancestor class of (respectively) type <code>T</code> (including <code>T</code> itself).
* In the [[POSIX]] syntax for [[regular expression]]s, such as that used in [[Perl]] and [[Python (programming language)|Python]], <code>?</code> stands for "zero or one instance of the previous subexpression", i.e. an optional element. It can also make a quantifier like <code>{x,y}</code>, <code>+</code> or <code>*</code> match as few characters as possible, making it lazy, e.g. <code lang="js">/^.*?px/</code> will match the substring <code>165px</code> in <code>165px 17px</code> instead of matching <code>165px 17px</code>.{{efn|The [[Perl Compatible Regular Expressions]] library implements the <code>U</code> flag, which reverses behavior of quantifiers: these become lazy by default, and <code>?</code> can make them greedy.|name="pcre-qm-Uflag"}}  
* In certain implementations of the [[BASIC]] programming language, the <code>?</code> character may be used as a shorthand for the "print" function; in others (notably the [[BBC BASIC]] family), <code>?</code> is used to address a single-byte memory location.  
* In [[OCaml]], the question mark precedes the label for an optional parameter.  
* In [[Scheme (programming language)|Scheme]], as a convention, symbol names ending in <code>?</code> are used for predicates, such as <code>odd?</code>, <code>null?</code>, and <code>eq?</code>. Similarly, in [[Ruby (programming language)|Ruby]], method names ending in <code>?</code> are used for predicates.  
* In [[Swift (programming language)|Swift]] a type followed by <code>?</code> denotes an [[option type]]; <code>?</code> is also used in "optional chaining", where if an option value is nil, it ignores the following operations. Similarly, in [[Kotlin (programming language)|Kotlin]], a type followed by <code>?</code> is [[Nullable type|nullable]] and functions similar to option chaining are supported.  
* In [[APL (programming language)|APL]], <code>?</code> generates random numbers or a random subset of indices.  
* In [[Rust (programming language)|Rust]], a <code>?</code> suffix on a function or method call indicates error handling.  
* In [[SPARQL]], the question mark is used to introduce variable names, such as <code>?name</code>. 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>{{cite web |title=The Xbase++ Reference Documentation |url=https://doc.alaska-software.com/ |website=Alaska Software |access-date=23 March 2025}}</ref><ref>{{cite web |title=Visual FoxPro Reference |url=https://hackfox.github.io/section4/ |website=Hacker’s Guide to Visual FoxPro |publisher=Hentzenwerke Publishing |access-date=23 March 2025}}</ref>


In many [[Web browser]]s 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 <samp>?</samp>, inverted question mark <samp>¿</samp>, or the Unicode [[replacement character]], usually rendered as a white question mark in a black diamond: {{unichar|FFFD|REPLACEMENT CHARACTER}}. 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 [[Quotation marks in English#Smart quotes|"smart quotes"]].
In many [[Web browser]]s 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 <samp>?</samp>, inverted question mark <samp>¿</samp>, or the Unicode [[replacement character]], usually rendered as a white question mark in a black diamond: {{unichar|FFFD|REPLACEMENT CHARACTER}}. 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 [[Quotation marks in English#Smart quotes|"smart quotes"]].

Latest revision as of 14:57, 8 November 2025

Template:Short description Template:For-multi 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.

History

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.[1] However, Egyptian hieroglyphics did not use punctuation marks.[2]

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.[3][4]

File:Btv1b6000718s.png
8th century punctus interrogativus from the Godescalc Evangelistary. (BnF NAL 1203, f. 6v.)

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.[5] 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.[6][7] The creation of the punctus interrogativus has also been attributed to Alcuin of York, an advisor to Charlemagne.[1]

File:Punctus interrogativus from Bern, Bürgerbibliothek Cod. 162, f. 15r.jpg
An 11th century punctus interrogativus; in the third line, before "tamen". (Burgerbibliothek Bern, Cod. 162, f. 15r.)

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.Script error: No such module "Unsubst".

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,[8] 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[9]).

In 1598, the English term point of interrogation is attested in an Italian–English dictionary by John Florio.[10]

In the 1850s, the term question mark is attested:[11]

<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.

Script error: No such module "Check for unknown parameters".

Scope

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.[12]

This is quite common in Spanish, where the use of bracketing question marks explicitly indicates the scope of interrogation.

Script error: No such module "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 scripts

Opening and closing question marks in Spanish

Script error: No such module "Labelled list hatnote".

File:Question opening-closing.svg
Opening and closing question marks

In Spanish, since the second edition of the Script error: No such module "Lang". of the Script error: No such module "Lang". in 1754, interrogatives require both opening Template:Char and closing Template:Char question marks.Template:Sfn[13] An interrogative sentence, clause, or phrase begins with an inverted question mark Template:Char and ends with the question mark Template:Char, as in:

Script error: No such module "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:[14]

Script error: No such module "Lang". is preferred in Spanish over Script error: No such module "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:

Script error: No such module "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 Script error: No such module "Lang". recommends matching punctuation:[15]

Script error: No such module "Lang".

The opening question mark in Unicode is Template:Unichar.

Solomon Islands Pidgin

In Solomon Islands Pidgin, the question can be between question marks since, in yes/no questions, the intonation can be the only difference.

Script error: No such module "Lang". ('Solomon Islands is a great country, isn't it?')[16]

Armenian question mark

File:Harcakan.svg
Armenian question mark

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. Script error: No such module "anchor".

Greek question mark

The Greek question mark (Template:Langx) looks like Template:Char. It appeared around the same time as the Latin one, in the 8th century.[17] 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.[18]

Mirrored question mark in right-to-left scripts

Script error: No such module "redirect hatnote".

File:Arabic Question mark (RTL).svg
Mirrored question mark in Arabic and Perso-Arabic

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,[19] N'Ko,[20] Syriac,[21] and Adlam.[22] Adlam also has Template:Unichar: Script error: No such module "Lang"., 'No?'.[22]

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. Script error: No such module "Lang".).Template:Sfn

Fullwidth question mark in East Asian languages

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.[23][24][25] In Korean, however, halfwidth is used.[26]

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 Script error: No such module "Lang"., some people would now informally write Script error: No such module "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.[27]

Chinese also has a spoken indicator of questions, which is (ma). However, the question mark should always be used after Script error: No such module "Lang". when asking questions.[28]

In other scripts

Some other scripts have a specific question mark:

Stylistic variants

French orthography specifies a narrow non-breaking space before the question mark.[29] (e.g., "Script error: No such module "Lang"."); in English orthography, no space appears in front of the question mark (e.g. "What would you like to drink?").[30]

Typological variants of ?

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[31] and the exclamation mark, superposing these two marks.

Unicode makes available these variants:

Computing

Template:More citations 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.[32]

The inverted question mark (¿) corresponds to Unicode code-point Template:Unichar

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, Script error: No such module "IPA"., (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 Java, ? can represent a wildcard type parameter. For instance, List<?> denotes a list that can hold any type (but not [[null pointer|Template:Mono]]), and List<? extends T> and List<? super T> denote a list that can hold any type that inherits from/is an ancestor class of (respectively) type T (including T itself).
  • 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.[33][34]

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.

Games

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.[35]

Linguistics

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.[36]Template:Rp)

Other sources go further and use several symbols (e.g. the question mark and the asterisk plus ?* or the degree symbol °) to indicate gradations or a continuum of acceptability.Template:Efn

Yet others use double question marks ?? 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.[37][38]

Mathematics and formal logic

Script error: No such module "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.

Medicine

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 also

Template:Div col

Template:Div col end

Notes

Template:Notelist

References

Template:Reflist

Bibliography

Template:Refbegin

  • Script error: No such module "citation/CS1".
  • Script error: No such module "citation/CS1".

Template:Refend

External links

Template:Sister project

  • Script error: No such module "citation/CS1". – provides an overview of question mark usage, and the differences between direct, indirect, and rhetorical questions.

Template:Navbox punctuation Template:Authority control

  1. a b Script error: No such module "citation/CS1".
  2. Script error: No such module "citation/CS1".
  3. Script error: No such module "citation/CS1".
  4. Script error: No such module "citation/CS1".
  5. Script error: No such module "citation/CS1".
  6. Script error: No such module "citation/CS1".
  7. The Straight Dope on the question mark Template:Webarchive (link down)
  8. De Hamel, Christopher History of Illuminated Manuscripts, 1997
  9. Script error: No such module "citation/CS1".
  10. Script error: No such module "citation/CS1".
  11. Script error: No such module "citation/CS1".
  12. Script error: No such module "citation/CS1".
  13. Script error: No such module "citation/CS1".
  14. Interrogación y exclamación (signos de). Punto 3d.
  15. Interrogación y exclamación (signos de). Punto 3b.
  16. Script error: No such module "citation/CS1".
  17. Script error: No such module "citation/CS1".
  18. Script error: No such module "citation/CS1".". 2005. Accessed 7 October 2014.
  19. Script error: No such module "citation/CS1".
  20. Script error: No such module "citation/CS1".
  21. Script error: No such module "citation/CS1".
  22. a b Script error: No such module "citation/CS1".
  23. Script error: No such module "citation/CS1".
  24. Script error: No such module "citation/CS1".
  25. Script error: No such module "citation/CS1".
  26. Script error: No such module "Citation/CS1".
  27. Script error: No such module "citation/CS1".
  28. Script error: No such module "citation/CS1".
  29. Script error: No such module "citation/CS1"..
  30. Script error: No such module "citation/CS1".
  31. Script error: No such module "citation/CS1".
  32. Script error: No such module "citation/CS1".
  33. Script error: No such module "citation/CS1".
  34. Script error: No such module "citation/CS1".
  35. Script error: No such module "citation/CS1".
  36. Cite error: Invalid <ref> tag; no text was provided for refs named Graffi
  37. Script error: No such module "citation/CS1".
  38. Script error: No such module "citation/CS1".