In computer science, a mask is some data that, along with an operation, are used in order to extract information stored elsewhere.

The most common mask used, also known as a bitmask, extracts the status of certain bits in a binary string or number. For example, if we have the binary string 100111010 and we want to extract the status of the fifth bit counting along from the most significant bit, we would use a bitmask such as 000010000 and use the bitwise AND operator. Recalling that 1 AND 1 = 1, with 0 otherwise, we find the status of the fifth bit, since

```100111010 AND
000010000 =
000010000
```

Likewise we can set the fifth bit by applying the mask to the data using the OR operator.

Similarly, we can use a sequence of binary numbers with a piece of data of equal length used to inform as to what parts of the data should be examined. With the bitwise operation (NOT x) AND y, a Template:Num in the mask instructs that the binary datum below should be ignored, while Template:Nums in the mask tell that the data below are to be examined. A common type of mask of this type is a subnetwork mask, which is associated with a device's IP address and used to instruct a router which bits of the address indicate the subdivision of the network the computer is on and which identify the specific computer within the subnetwork.ro:Mascare binară

• Art and Cultures
• Countries of the World (http://www.academickids.com/encyclopedia/index.php/Countries)
• Space and Astronomy