day2 basic computer job title

1. What is programming?

Programming is a programmer with a programming language syntax will be in my mind want the computer to do the things written in the file. So the result is programming a bunch of files, the file is a bunch of programs.

2. The computer consists of:

1).CPU

Wherein the CPU and the arithmetic unit is divided into a controller

The controller: controls each section orderly work computer, computer system command.

Operator: into logical and arithmetic operations. Logic operation: True or False is determined such Boolean value; arithmetic operations: for example, 1 + 1 = 2.

2) The reservoir

The memory is divided into: external memory and memory;

External memory: such as disk, U disk, tape, etc.  

Advantages: long-term storage, storage capacity drawbacks: slow access speed 

Memory: Based on the electric signal to work as a temporary storage space.

Advantages: speed reading

Disadvantages: power failure disappear, not long-term storage of data, small capacity;

3) Input and output devices

Input device: input data such as a keyboard, touch screen, mouse; 

An output device: processing the data, output to the display screen; such as printers, monitors;

3. Description of mechanical hard disk works

Mechanical hard composition: track, mechanical arm, a sector;

All data is stored in the track of the mechanical hard disk, the mechanical arm movement, head movement of the driven end of the mechanical arm, so that the data tracks can be read;

4. What operating system?

The operating system is a computer hardware intermediate medium interacts with other applications, controls the computer hardware. No operating system, application software will not be able to operate the hardware.

5. What are the three major components of the computer?

A complete computer system consists of computer hardware, operating systems, application software.

6. Description of the operation flow starting the operating system and applications.

The operating system: 1) Press the power button to start the temporary operating system; 2) the temporary operating system wakeup real operating system;.

The application: 1) an application of Click Open button, transfer to the operating system instructions; 2) converting the operating system instructions 0 and 1 and transmitted to the CPU; 3) .CPU send commands to the memory; 4. .) corresponding application memory read from the hard disk, and opened;

Category 7. What programming language? And to assess the advantages and disadvantages of each programming language.

Programming languages ​​are divided into: machine language, assembly language, high-level language

Efficiency: Machine Language> Assembly language> high-level language

Development efficiency: Advanced Language> Assembly language> machine language

8. outlined two ways to execute Python programs as well as their advantages and disadvantages.

Interactive: one line print line, generally used for the test results.

Advantages: Enter a line, 'enter' look, you can immediately see the results, more quick and intuitive.

Disadvantages: Close Window environment, code execution disappeared, can not be saved.

Command line: .py file stored in the hard disk to execute internal code path through the Python interpreter calls the file.

Advantages: code can be in the form of long-term storage of documents;

Cons: not as efficient execution line print line as interactive.

 

Guess you like

Origin www.cnblogs.com/zhangchaocoming/p/11487893.html