Home>Article> In what form are all computer programs and data stored?

In what form are all computer programs and data stored?

coldplay.xixi
coldplay.xixi Original
2020-07-15 14:08:47 45108browse

All computer programs and data are stored in binary form. The computer only recognizes instructions and data in the form of binary encoding. Therefore, information including numbers, characters, sounds, graphics, images, etc. must be processed in some way. Only after the format is converted into binary format can it be provided to the computer for recognition and processing.

In what form are all computer programs and data stored?

All computer programs and data are stored in binary encoding.

Computers only understand instructions and data in the form of binary encoding.

Therefore, information including numbers, characters, sounds, graphics, images, etc. must be converted into binary form in some way before it can be provided to the computer for recognition and processing.

In what form are all computer programs and data stored?

Extended information:

1. Binary is used in computers because it is easy to implement physically. Since binary has only two states, 0 and 1, this exactly corresponds to the two states of a physical device.

For example, the high and low of the voltage signal, the on and off of the gate circuit, etc.; while the decimal circuit needs to be described by ten states, which will make the circuit very complex and difficult to process.

Therefore, the use of binary will make the computer physically simple to implement, and has the advantages of high reliability, simple processing, and strong anti-interference ability.

2. Binary is composed of two numbers, 1 and 0. It can represent two states, on and off. This state can be achieved by the level of potential. Computers are composed of various electronic components.

One of the important components is semiconductors, which are diodes, transistors, etc. that we are familiar with. Semiconductors can transmit and process information through their switching states.

If other base systems are used, the manufacturing of computers and the processing of information will be more complicated. All information entered into the computer must eventually be converted into binary data. Currently, the commonly used code isASCII. The most basic unit isbit.

Binary coding is to use a predetermined method to encode characters, numbers or other objects into binary numbers, or to convert information and data into prescribed binaryelectrical pulse signals.

The above is the detailed content of In what form are all computer programs and data stored?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn