Hardware and software

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/28

flashcard set

Earn XP

Description and Tags

Rer

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

29 Terms

1
New cards

Logical unit

Sections in which computers are technically divided into:

Input unit

Storages (Primary & secondary)

Output unit

Control unit

Arithmetic logic unit

2
New cards

Input unit

Receiving section, it can receive anything from external devices, scanning images or secondary storage devices as well. 

3
New cards

Output unit

Transfers the taken information onto output devices, mostly screens, but applies to many devices.

4
New cards

Memory unit

Rapid access, lower capacity “warehouse” that stores information from input unit or processed info ready for output. Also called primary memory or RAM, volatile and disappears when computer is turned off. 

5
New cards

Arithmetic and logic unit

Manufacturing section that performs calculations, also compares and decides whether two items in memory are equal.

6
New cards

CPU Central Processing unit

Coordinates and supervises actions of the other sections. Tells when input should go to memory, when memory should be processed by ALU, etc.

7
New cards

Multicore processors

Computers have more than one processors to multitask directions. Some have dual-core processors, and others quad-core processors.

8
New cards

Secondary storage unit

Long term high capacity warehouse section. Stores programs and data not actively used. Information is persistent, takes longer to access, but its cost per unit is lesser.

9
New cards

Data Hierarchy

File

Record

Field

Character/Byte

Bit

<p>File</p><p>Record</p><p>Field</p><p>Character/Byte</p><p>Bit</p><p></p>
10
New cards

Machine language

Understandable by computers, generally consists of numbers reduced to 1s and 0s.

11
New cards

Assembly languages

Made with english abbreviations for programmers to understand and work with better.

12
New cards

Translator programs/Assemblers

Developed to convert assembly language to machine language.

13
New cards

High-level language

Substantial tasks are accomplished in a single statement.

Use everyday English and common math expressions.

14
New cards

Compilers

Translator programs for high-level languages to machine languages.

15
New cards

Interpreter

Program that executes high-level language programs directly, although slower than compiler programs.

16
New cards

Scripting languages

Interpreted from source code directly, no need for compiling, can execute directly. Control applications and used in automation. They are processed by interpreters.

Examples: JavaScript, Python and PHP

17
New cards

C facts

Evolved from B by Dennis Ritchie

Implemented in 1972

Development language of UNIX operating system

Is mostly hardware independent

C programs are portable to most computers usually.

18
New cards

C standard library

C programs consist of pieces called functions, programmers take advantage of a rich collection of existing functions names the standard library.

19
New cards

Parts of C systems

Program development environment 

Language

C Standard Library

20
New cards

C program phases

Edit, process, compile, link, load, execute

21
New cards

Linker

During the linking phase, holes are created in the code due to functions being defined/referenced elsewhere such as standard libraries. A linker links the object code with code from missing functions to create an executable image.

22
New cards

gcc

Command to compile and link a program in linux system (GNU compiler)

23
New cards

Execute command

./a.out

24
New cards

Editing

Creating code in the editing program, also where you make corrections, then store it.

25
New cards

Preprocessing a C program

Compiler translates the c program into machine language code.

In C, preprocessor executes automatically before compiler translation, includes other files in file and text replacements.

26
New cards

Compiling a C program

Where the compiler does its job of translating, you may get a syntax/compile error when something is written wrong.

27
New cards

Linking

Linker creates an executable image when there are “holes” in program created by references to functions defined elsewhere (other libraries).

28
New cards

Loading

Program, and other additional components from library are placed in memory before being executed.

Done by loader, which takes executable image from disk to memory.

29
New cards

Execution

Actually running the program.