Single quote

Updated: 04/26/2017 by Computer Hope

A single quote may refer to any of the following:

1. Sometimes referred to as an apostrophe, a single quote is a punctuation symbol that is found on the United States QWERTY keyboard next to the Enter key.

Where is the single quote key on the keyboard?

Below is an overview of a computer keyboard with the single quote key highlighted in blue.

Tilde key

How to create the single quote symbol

Creating the single quote symbol on a U.S. keyboard

To create the quote symbol using a U.S. keyboard and press the single quote key, which is on the same key as the quote ( " ) and typically to the left of the Enter key.

Creating the single quote symbol on a smartphone or tablet

To create a quote symbol on a smartphone or tablet open the keyboard and go into the numbers (123) or symbols (sym) section and then press your finger on the " symbol.

What is a single quote used for on a computer?

In computer programming single quotes are commonly used to contain commands or literal strings.

my $example = "Example of variable";
print 'Do not print $example';

In the above example, the variable $example would not be treated as a variable, instead it would print "Do not print $example". If you used quotes instead of a single quote it would print "Do not print Example of variable".

2. In programming languages like QBasic, the single quote is treated as a nonexecutable statement.

Back quote, Keyboard terms, Quote