The question mark (also known as interrogation point, query, or eroteme in
journalism
Journalism is the production and distribution of reports on the interaction of events, facts, ideas, and people that are the "news of the day" and that informs society to at least some degree of accuracy. The word, a noun, applies to the journ ...
) is a
punctuation mark
Punctuation marks are marks indicating how a piece of written text should be read (silently or aloud) and, consequently, understood. The oldest known examples of punctuation marks were found in the Mesha Stele from the 9th century BC, consisti ...
that indicates a
question
A question is an utterance which serves as a request for information. Questions are sometimes distinguished from interrogatives, which are the grammar, grammatical forms, typically used to express them. Rhetorical questions, for instance, are i ...
or
interrogative clause or phrase in many
language
Language is a structured system of communication that consists of grammar and vocabulary. It is the primary means by which humans convey meaning, both in spoken and signed language, signed forms, and may also be conveyed through writing syste ...
s.
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.
However, Egyption hieroglyphics did not utilize punctuation marks.
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.

From around 783, in
Godescalc Evangelistary
The Godescalc Evangelistary, Godescalc Sacramentary, Godescalc Gospels, or Godescalc Gospel Lectionary (Paris, BNF. acquisitions nouvelles lat.1203) is an illuminated manuscript in Latin made by the Franks, Frankish scribe Godescalc and today kept ...
, a mark described as "a lightning flash, striking from right to left" is attested. This mark is later called a . According to some
paleographers, it may have indicated
intonation, perhaps associated with early musical notation like
neume
A neume (; sometimes spelled neum) is the basic element of Western and some Eastern systems of musical notation prior to the invention of five-line staff (music), staff notation.
The earliest neumes were inflective marks that indicated the gener ...
s.
Another theory, is that the "lightning flash" was originally a
tilde
The tilde (, also ) is a grapheme or with a number of uses. The name of the character came into English from Spanish , which in turn came from the Latin , meaning 'title' or 'superscription'. Its primary use is as a diacritic (accent) in ...
or
titlo
Titlo is an extended diacritic symbol initially used in early Cyrillic and Glagolitic manuscripts, e.g., in Old Church Slavonic and Old East Slavic language, Old East Slavic languages. The word is a borrowing from the , and is a cognate of t ...
, as in , one of many wavy or more or less slanted marks used in
medieval
In the history of Europe, the Middle Ages or medieval period lasted approximately from the 5th to the late 15th centuries, similarly to the post-classical period of World history (field), global history. It began with the fall of the West ...
texts for denoting things such as
abbreviations
An abbreviation () is a shortened form of a word or phrase, by any method including shortening, contraction, initialism (which includes acronym), or crasis. An abbreviation may be a shortened form of a word, usually ended with a trailing per ...
, which would later become various
diacritics
A diacritic (also diacritical mark, diacritical point, diacritical sign, or accent) is a glyph added to a letter or to a basic glyph. The term derives from the Ancient Greek (, "distinguishing"), from (, "to distinguish"). The word ''diacrit ...
or
ligatures. The creation of the ''punctus interrogativus'' has also been attributed to
Alcuin of York
Alcuin of York (; ; 735 – 19 May 804), also called Ealhwine, Alhwin, or Alchoin, was a scholar, clergyman, poet, and teacher from York, Northumbria. He was born around 735 and became the student of Archbishop Ecgbert at York. At the invita ...
, an advisor to
Charlemagne
Charlemagne ( ; 2 April 748 – 28 January 814) was List of Frankish kings, King of the Franks from 768, List of kings of the Lombards, King of the Lombards from 774, and Holy Roman Emperor, Emperor of what is now known as the Carolingian ...
.
[
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.
In the early 13th century, when the growth of communities of scholars (]universities
A university () is an educational institution, institution of tertiary education and research which awards academic degrees in several Discipline (academia), academic disciplines. ''University'' is derived from the Latin phrase , which roughly ...
) in Paris and other major cities led to an expansion and streamlining of the book-production trade, punctuation was rationalized by assigning the "lightning flash" specifically to interrogative
An interrogative clause is a clause whose form is typically associated with question-like meanings. For instance, the English sentence (linguistics), sentence "Is Hannah sick?" has interrogative syntax which distinguishes it from its Declarative ...
s; by this time, the stroke was more sharply curved and can easily be recognized as the modern question mark (see, for example, ' (1496) printed by Aldo Manuzio
Aldus Pius Manutius (; ; 6 February 1515) was an Italian printer and humanist who founded the Aldine Press. Manutius devoted the later part of his life to publishing and disseminating rare texts. His interest in and preservation of Greek manusc ...
in Venice
Venice ( ; ; , formerly ) is a city in northeastern Italy and the capital of the Veneto Regions of Italy, region. It is built on a group of 118 islands that are separated by expanses of open water and by canals; portions of the city are li ...
).
In 1598, the English term ''point of interrogation'' is attested in an Italian
Italian(s) may refer to:
* Anything of, from, or related to the people of Italy over the centuries
** Italians, a Romance ethnic group related to or simply a citizen of the Italian Republic or Italian Kingdom
** Italian language, a Romance languag ...
–English dictionary by John Florio.
In the 1850s, the term ''question mark'' is attested:
Scope
In English, the question mark typically occurs at the end of a sentence, where it replaces the full stop
The full stop ( Commonwealth English), period (North American English), or full point is a punctuation mark used for several purposes, most often to mark the end of a declarative sentence (as distinguished from a question or exclamation).
A ...
(period). However, the question mark may also occur at the end of a clause or phrase, where it replaces the comma :
:"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
Stanley Lawrence Elkin (May 11, 1930 – May 31, 1995) was an American novelist, short story writer, and essayist. His extravagant, satirical fiction revolves around American consumerism, popular culture, and male-female relationships.
Biograp ...
.
This is quite common in Spanish
Spanish might refer to:
* Items from or related to Spain:
**Spaniards are a nation and ethnic group indigenous to Spain
**Spanish language, spoken in Spain and many countries in the Americas
**Spanish cuisine
**Spanish history
**Spanish culture
...
, where the use of bracketing question marks explicitly indicates the scope of interrogation.
: ('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
In Spanish, since the second edition of the of the in 1754, interrogatives require both opening and closing question marks. An interrogative sentence, clause, or phrase begins with an inverted question mark
The upside-down (also inverted, turned or rotated) question mark and exclamation mark are punctuation marks used to begin interrogative and exclamatory sentences or clauses in Spanish and some languages that have cultural ties with Spain, su ...
and ends with the question mark , as in:
: – 'She asks me, "What time is it?
Question marks must always be matched, but to mark uncertainty rather than actual interrogation omitting the opening one is allowed, although discouraged:
: is preferred in Spanish over
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:
: – '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 recommends matching punctuation:
:
The opening question mark in Unicode is .
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.
('Solomon Islands
Solomon Islands, also known simply as the Solomons,John Prados, ''Islands of Destiny'', Dutton Caliber, 2012, p,20 and passim is an island country consisting of six major islands and over 1000 smaller islands in Melanesia, part of Oceania, t ...
is a great country, isn't it?')
Armenian question mark
In Armenian
Armenian may refer to:
* Something of, from, or related to Armenia, a country in the South Caucasus region of Eurasia
* Armenians, the national people of Armenia, or people of Armenian descent
** Armenian diaspora, Armenian communities around the ...
, the question mark is a diacritic
A diacritic (also diacritical mark, diacritical point, diacritical sign, or accent) is a glyph added to a letter or to a basic glyph. The term derives from the Ancient Greek (, "distinguishing"), from (, "to distinguish"). The word ''diacrit ...
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 .
Greek question mark
The Greek
Greek may refer to:
Anything of, from, or related to Greece, a country in Southern Europe:
*Greeks, an ethnic group
*Greek language, a branch of the Indo-European language family
**Proto-Greek language, the assumed last common ancestor of all kno ...
question mark () looks like . It appeared around the same time as the Latin one, in the 8th century. It was adopted by Church Slavonic
Church Slavonic is the conservative Slavic liturgical language used by the Eastern Orthodox Church in Belarus, Bulgaria, North Macedonia, Montenegro, Poland, Russia, Ukraine, Serbia, the Czech Republic and Slovakia, Slovenia and Croatia. The ...
and eventually settled on a form essentially similar to the Latin semicolon
The semicolon (or semi-colon) is a symbol commonly used as orthographic punctuation. In the English language, a semicolon is most commonly used to link (in a single sentence) two independent clauses that are closely related in thought, such as ...
. In Unicode
Unicode or ''The Unicode Standard'' or TUS is a character encoding standard maintained by the Unicode Consortium designed to support the use of text in all of the world's writing systems that can be digitized. Version 16.0 defines 154,998 Char ...
, it is separately encoded as , but the similarity is so great that the code point
A code point, codepoint or code position is a particular position in a Table (database), table, where the position has been assigned a meaning. The table may be one dimensional (a column), two dimensional (like cells in a spreadsheet), three dime ...
is normalised to , making the marks identical in practice.
Mirrored question mark in right-to-left scripts
In Arabic
Arabic (, , or , ) is a Central Semitic languages, Central Semitic language of the Afroasiatic languages, Afroasiatic language family spoken primarily in the Arab world. The International Organization for Standardization (ISO) assigns lang ...
and other languages that use Arabic script such as Persian
Persian may refer to:
* People and things from Iran, historically called ''Persia'' in the English language
** Persians, the majority ethnic group in Iran, not to be conflated with the Iranic peoples
** Persian language, an Iranian language of the ...
, Urdu
Urdu (; , , ) is an Indo-Aryan languages, Indo-Aryan language spoken chiefly in South Asia. It is the Languages of Pakistan, national language and ''lingua franca'' of Pakistan. In India, it is an Eighth Schedule to the Constitution of Indi ...
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: and . 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, N'Ko
NKo (ߒߞߏ), also spelled N'Ko, is an alphabetic script devised by Solomana Kante, Solomana Kanté in 1949, as a modern writing system for the Manding languages of West Africa. The term ''NKo'', which means ''I say'' in all Manding languages, i ...
, Syriac, and Adlam. Adlam also has : , 'No?'.
Hebrew script
The Hebrew alphabet (, ), known variously by scholars as the Ktav Ashuri, Jewish script, square script and block script, is a unicase, unicameral abjad script used in the writing of the Hebrew language and other Jewish languages, most notably ...
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. ).
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: . Fullwidth form is always preferred in official usage. In Korean language
Korean is the first language, native language for about 81 million people, mostly of Koreans, Korean descent. It is the national language of both South Korea and North Korea. In the south, the language is known as () and in the north, it is kn ...
, however, halfwidth is used.
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 , some people would now informally write 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.
Chinese also has a spoken indicator of questions, which is 吗 (ma). However, the question mark should always be used after when asking questions.
In other scripts
Some other scripts have a specific question mark:
*
*
* , and
*
Stylistic variants
French orthography
French orthography encompasses the spelling and punctuation of the French language. It is based on a combination of phonemic and historical principles. The spelling of words is largely based on the pronunciation of Old French –1200 AD, and has ...
specifies a narrow non-breaking space before the question mark. (e.g., ""); in English orthography
English orthography comprises the set of rules used when writing the English language, allowing readers and writers to associate written graphemes with the sounds of spoken English, as well as other features of the language. English's orthograp ...
, no space appears in front of the question mark (e.g. "What would you like to drink?").
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
A rhetorical question is a question asked for a purpose other than to obtain information. In many cases it may be intended to start a discourse, as a means of displaying or emphasizing the speaker's or author's opinion on a topic.
A simple example ...
; 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. This character can be represented using .
Bracketed question marks can be used for rhetorical questions, for example , in informal contexts such as closed captioning
Closed captioning (CC) is the process of displaying text on a television, video screen, or other visual display to provide additional or interpretive information, where the viewer is given the choice of whether the text is displayed. Closed cap ...
.
The question mark can also be used as a meta-sign to signal uncertainty regarding what precedes it. It is usually put between brackets: . The uncertainty may concern either a superficial level (such as unsure spelling), or a deeper truth
Truth or verity is the Property (philosophy), property of being in accord with fact or reality.Merriam-Webster's Online Dictionarytruth, 2005 In everyday language, it is typically ascribed to things that aim to represent reality or otherwise cor ...
(real meaning).
In typography, some other variants and combinations are available: "⁇," "⁈," and "⁉," are usually used for chess annotation symbols
When annotating chess games, commentators frequently use widely recognized annotation symbols. Question marks and exclamation points that denote a move as bad or good are ubiquitous in chess literature. Some publications intended for an interna ...
; the interrobang, "‽," is used to combine the functions of the question mark and the exclamation mark
The exclamation mark (also known as exclamation point in American English) is a punctuation mark usually used after an interjection or exclamation to indicate strong feelings or to show wikt:emphasis, emphasis. The exclamation mark often marks ...
, superposing these two marks.
Unicode makes available these variants:
*
*
*
** with an emoji variation selector
*
*
*
*
*
*
*
*
*
*
*
Computing
In computing
Computing is any goal-oriented activity requiring, benefiting from, or creating computer, computing machinery. It includes the study and experimentation of algorithmic processes, and the development of both computer hardware, hardware and softw ...
, the question mark character is represented by ASCII
ASCII ( ), an acronym for American Standard Code for Information Interchange, is a character encoding standard for representing a particular set of 95 (English language focused) printable character, printable and 33 control character, control c ...
code 63 (0x3F hexadecimal), and is located at Unicode code-point . The full-width (double-byte) equivalent (?), is located at code-point .
The inverted question mark
The upside-down (also inverted, turned or rotated) question mark and exclamation mark are punctuation marks used to begin interrogative and exclamatory sentences or clauses in Spanish and some languages that have cultural ties with Spain, su ...
(¿) corresponds to Unicode code-point , and can be accessed from the keyboard in Microsoft Windows
Windows is a Product lining, product line of Proprietary software, proprietary graphical user interface, graphical operating systems developed and marketed by Microsoft. It is grouped into families and subfamilies that cater to particular sec ...
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
A gnome () is a mythological creature and diminutive spirit in Renaissance magic and alchemy, introduced by Paracelsus in the 16th century and widely adopted by authors, including those of modern fantasy literature. They are typically depict ...
applications on Linux
Linux ( ) is a family of open source Unix-like operating systems based on the Linux kernel, an kernel (operating system), operating system kernel first released on September 17, 1991, by Linus Torvalds. Linux is typically package manager, pac ...
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
XFree86 is an implementation of the X Window System. It was originally written for Unix-like operating systems on IBM PC compatibles and was available for many other operating systems and platforms. It is free software, free and Open-source softw ...
and X.Org incarnations of the X Window System
The X Window System (X11, or simply X) is a windowing system for bitmap displays, common on Unix-like operating systems.
X originated as part of Project Athena at Massachusetts Institute of Technology (MIT) in 1984. The X protocol has been at ...
, it can be accessed as a compose sequence of two straight question marks, i.e. pressing Compose ? ? yields ¿. In classic Mac OS
Mac OS (originally System Software; retronym: Classic Mac OS) is the series of operating systems developed for the Mac (computer), Macintosh family of personal computers by Apple Computer, Inc. from 1984 to 2001, starting with System 1 and end ...
and Mac OS X
macOS, previously OS X and originally Mac OS X, is a Unix, Unix-based operating system developed and marketed by Apple Inc., Apple since 2001. It is the current operating system for Apple's Mac (computer), Mac computers. With ...
(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
In software, a wildcard character is a kind of placeholder represented by a single character (computing), character, such as an asterisk (), which can be interpreted as a number of literal characters or an empty string. It is often used in file ...
: a symbol that can be used to substitute for any other character or characters in a string
String or strings may refer to:
*String (structure), a long flexible structure made from threads twisted together, which is used to tie, bind, or hang other objects
Arts, entertainment, and media Films
* ''Strings'' (1991 film), a Canadian anim ...
. In particular, filename globbing uses "?" as a substitute for any one character, as opposed to the asterisk
The asterisk ( ), from Late Latin , from Ancient Greek , , "little star", is a Typography, typographical symbol. It is so called because it resembles a conventional image of a star (heraldry), heraldic star.
Computer scientists and Mathematici ...
, "*", which matches zero or more characters in a string.
The question mark is used in ASCII renderings of the International Phonetic Alphabet
The International Phonetic Alphabet (IPA) is an alphabetic system of phonetic notation based primarily on the Latin script. It was devised by the International Phonetic Association in the late 19th century as a standard written representation ...
, such as SAMPA
The Speech Assessment Methods Phonetic Alphabet (SAMPA) is a computer-readable phonetic script using 7-bit printable ASCII characters, based on the International Phonetic Alphabet (IPA). It was originally developed in the late 1980s for six Europ ...
, in place of the glottal stop
The glottal stop or glottal plosive is a type of consonantal sound used in many Speech communication, spoken languages, produced by obstructing airflow in the vocal tract or, more precisely, the glottis. The symbol in the International Phonetic ...
symbol, , (which resembles "?" without the dot), and corresponds to Unicode code point .
In computer programming
Computer programming or coding is the composition of sequences of instructions, called computer program, programs, that computers can follow to perform tasks. It involves designing and implementing algorithms, step-by-step specifications of proc ...
, the symbol "?" has a special meaning in many programming language
A programming language is a system of notation for writing computer programs.
Programming languages are described in terms of their Syntax (programming languages), syntax (form) and semantics (computer science), semantics (meaning), usually def ...
s. 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
The null coalescing operator is a binary operator that is part of the syntax for a basic conditional expression in several programming languages, such as (in alphabetical order): C# since version 2.0, Dart since version 1.12.0, PHP since versi ...
. In the POSIX
The Portable Operating System Interface (POSIX; ) is a family of standards specified by the IEEE Computer Society for maintaining compatibility between operating systems. POSIX defines application programming interfaces (APIs), along with comm ...
syntax for regular expression
A regular expression (shortened as regex or regexp), sometimes referred to as rational expression, is a sequence of characters that specifies a match pattern in text. Usually such patterns are used by string-searching algorithms for "find" ...
s, such as that used in Perl
Perl is a high-level, general-purpose, interpreted, dynamic programming language. Though Perl is not officially an acronym, there are various backronyms in use, including "Practical Extraction and Reporting Language".
Perl was developed ...
and Python, ?
stands for "zero or one instance of the previous subexpression", i.e. an optional element. It can also make a quantifier like
, +
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
. In certain implementations of the BASIC
Basic or BASIC may refer to:
Science and technology
* BASIC, a computer programming language
* Basic (chemistry), having the properties of a base
* Basic access authentication, in HTTP
Entertainment
* Basic (film), ''Basic'' (film), a 2003 film
...
programming language, the ?
character may be used as a shorthand for the "print" function; in others (notably the BBC BASIC
BBC BASIC is an interpreted version of the BASIC programming language. It was developed by Acorn Computers Ltd when they were selected by the BBC to supply the computer for their BBC Literacy Project in 1981.
It was originally supplied on ...
family), ?
is used to address a single-byte memory location. In OCaml
OCaml ( , formerly Objective Caml) is a General-purpose programming language, general-purpose, High-level programming language, high-level, Comparison of multi-paradigm programming languages, multi-paradigm programming language which extends the ...
, 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
Ruby is a pinkish-red-to-blood-red-colored gemstone, a variety of the mineral corundum ( aluminium oxide). Ruby is one of the most popular traditional jewelry gems and is very durable. Other varieties of gem-quality corundum are called sapph ...
, method names ending in ?
are used for predicates. In Swift
Swift or SWIFT most commonly refers to:
* SWIFT, an international organization facilitating transactions between banks
** SWIFT code
* Swift (programming language)
* Swift (bird), a family of birds
It may also refer to:
Organizations
* SWIF ...
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
Rust is an iron oxide, a usually reddish-brown oxide formed by the reaction of iron and oxygen in the catalytic presence of water or air moisture. Rust consists of hydrous iron(III) oxides (Fe2O3·nH2O) and iron(III) oxide-hydroxide (FeO(OH) ...
, a ?
suffix on a function or method call indicates error handling. In SPARQL
SPARQL (pronounced ":wikt:sparkle, sparkle", a recursive acronym for SPARQL Protocol and RDF Query Language) is an RDF query language—that is, a Semantic Query, semantic query language for databases—able to retrieve and manipulate data sto ...
, the question mark is used to introduce variable names, such as ?name
. In MUMPS
MUMPS ("Massachusetts General Hospital Utility Multi-Programming System"), or M, is an imperative, high-level programming language with an integrated transaction processing key–value database. It was originally developed at Massachusetts Gen ...
, it is the pattern match operator.
In the Xbase
xBase is the generic term for all programming languages that derive from the original dBASE (Ashton-Tate) programming language and database formats. These are sometimes informally known as dBASE "clones". While there was a non-commercial predec ...
family of programming languages, which includes dBase
dBase (also stylized dBASE) was one of the first database management systems for microcomputers and the most successful in its day. The dBase system included the core database engine, a query system, a Form (programming), forms engine, and a pr ...
and FoxPro
FoxPro is a text-based (computing), text-based Procedural programming, procedurally oriented programming language and database management system (DBMS), and it is also an object-oriented programming language, originally published by Fox Softwar ...
, 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.
In many Web browser
A web browser, often shortened to browser, is an application for accessing websites. When a user requests a web page from a particular website, the browser retrieves its files from a web server and then displays the page on the user's scr ...
s and other computer programs, when converting text between encodings, it may not be possible to map some characters into the target character set
Character encoding is the process of assigning numbers to graphical characters, especially the written characters of human language, allowing them to be stored, transmitted, and transformed using computers. The numerical values that make up a c ...
. In this situation it is common to replace each unmappable character with a question mark ?, inverted question mark ¿, or the Unicode replacement character
Specials is a short Unicode block of characters allocated at the very end of the Basic Multilingual Plane, at U+FFF0–FFFF, containing these code points:
*, marks start of annotated text
*, marks start of annotating character(s)
*, marks e ...
, usually rendered as a white question mark in a black diamond: . 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
Microsoft Office, MS Office, or simply Office, is an office suite and family of client software, server software, and services developed by Microsoft. The first version of the Office suite, announced by Bill Gates on August 1, 1988, at CO ...
's "smart quotes".
The generic URL
A uniform resource locator (URL), colloquially known as an address on the Web, is a reference to a resource that specifies its location on a computer network and a mechanism for retrieving it. A URL is a specific type of Uniform Resource Identi ...
syntax allows for a query string
A query string is a part of a uniform resource locator ( URL) that assigns values to specified parameters. A query string commonly includes fields added to a base URL by a Web browser or other client application, for example as part of an HTML doc ...
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
The ampersand, also known as the and sign, is the logogram , representing the grammatical conjunction, conjunction "and". It originated as a typographic ligature, ligature of the letters of the word (Latin for "and").
Etymology
Tradi ...
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
Algebraic notation is the standard method of chess notation, used for recording and describing moves. It is based on a system of coordinates to identify each square on the board uniquely. It is now almost universally used by books, magazines, n ...
, some chess punctuation conventions include: "?" denotes a bad move, "??" a blunder, "?!" a dubious move, and "!?" an interesting move.
In Scrabble
''Scrabble'' is a word game in which two to four players score points by placing tiles, each bearing a single letter, onto a Board game, game board divided into a 15×15 grid of squares. The tiles must form words that, in crossword fashion, re ...
, a question mark indicates a blank tile.
Linguistics
In most areas of linguistics
Linguistics is the scientific study of language. The areas of linguistic analysis are syntax (rules governing the structure of sentences), semantics (meaning), Morphology (linguistics), morphology (structure of words), phonetics (speech sounds ...
, but especially in syntax
In linguistics, syntax ( ) is the study of how words and morphemes combine to form larger units such as phrases and sentences. Central concerns of syntax include word order, grammatical relations, hierarchical sentence structure (constituenc ...
, 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. (The asterisk
The asterisk ( ), from Late Latin , from Ancient Greek , , "little star", is a Typography, typographical symbol. It is so called because it resembles a conventional image of a star (heraldry), heraldic star.
Computer scientists and Mathematici ...
is used to indicate outright ungrammaticality.)
Other sources go further and use several symbols (e.g. the question mark and the asterisk plus or the degree symbol
The degree symbol or degree sign, , is a glyph or symbol that is used, among other things, to represent degrees of arc (e.g. in geographic coordinate systems), hours (in the medical field), degrees of temperature or alcohol proof. The symbo ...
) to indicate gradations or a continuum of acceptability.
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.
Mathematics and formal logic
In mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, "?" commonly denotes Minkowski's question mark function
In mathematics, Minkowski's question-mark function, denoted , is a Function (mathematics), function with unusual fractal properties, defined by Hermann Minkowski in 1904. It maps quadratic irrational numbers to rational numbers on the unit int ...
.
In linear logic
Linear logic is a substructural logic proposed by French logician Jean-Yves Girard as a refinement of classical and intuitionistic logic, joining the dualities of the former with many of the constructive properties of the latter. Although the ...
, the question mark denotes one of the exponential modalities that control weakening and contraction.
When placed above the relational symbol in an equation
In mathematics, an equation is a mathematical formula that expresses the equality of two expressions, by connecting them with the equals sign . The word ''equation'' and its cognates in other languages may have subtly different meanings; for ...
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
Diagnosis (: diagnoses) is the identification of the nature and cause of a certain phenomenon. Diagnosis is used in a lot of different academic discipline, disciplines, with variations in the use of logic, analytics, and experience, to determine " ...
. 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
Diverticulitis, also called colonic diverticulitis, is a gastrointestinal disease characterized by inflammation of abnormal pouches—Diverticulum, diverticula—that can develop in the wall of the large intestine. Symptoms typically include lo ...
'' (read as "query diverticulitis").
See also
*
* Cosmic "Question Mark"
* ('upspeak', 'uptalk')
*
*
*
* List of typographical symbols and punctuation marks
Typographical symbols and punctuation marks are marks and symbols used in typography with a variety of purposes such as to help with legibility and accessibility, or to identify special cases. This list gives those most commonly encountered with ...
*
* .notdef. symbol diamond with a question mark, �, or a box with a question mark in it, ⍰, used to indicate that a font lacks the desired character.
Notes
References
Bibliography
*
*
External links
* – provides an overview of question mark usage, and the differences between direct, indirect, and rhetorical questions.
{{DEFAULTSORT:Question Mark
Interrogative words and phrases
Punctuation
Typographical symbols