Unit 2 (ORGANIZED Flashcards

1
Q

Computer system

A

Computer systems consist of hardware and software components and follow the concept of the input, process, output and storage model.

This means that a computer system takes in some data as input, processes it in a manner that we have requested and outputs the result in some way. During the processing phase, other data, may be needed apart from the inputted. This data will exist in the storage of the computer system and will be used during the processing phase. Furthermore, any new information that may arise from the processing phase may also be saved in the storage.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Data or instructions, storage that are processed

A

by the central processing unit (CPU).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The cpu

A

he CPU is a hardware component of a computer system and can perform basic arithmetic, logical or input/output operations, in order to process data from input devices into useful information. The CPU is the ”brain” of a computer system and can process data very quickly but can only process data by following instructions — it cannot think for itself. The CPU can also be referred to as the processor or chip. A block diagram can be created to represent the elements that compromise it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Main components of CPU and what do they do

A

MAR, (memory address reigster)
MDR( Memory data register)
CU (control unit)
ALU (arhtimitc logic unit)

The control unit (CU) is responsible for the operation of the CPU. It retrives instructions from the primary memory as well as the sequence of their execution.
The CU is responsible for providing the ALU with the data that needs to be processed as well as the instructions of how the data should be processed..

The arithmetic logic unit (ALU) performs all the basic arithmetic, logical or input/output operations.

The MAR holds the memory address of the data to be used by the ALU, so that the ALU can fetch the corresponding content from the memory and process it accordingly. The MAR may also hold the memory address of where data that has been processed will need to be stored. In order for the MAR to communicate with the primary memory, a connection is necessary. This connection is accomplished by the Memory (Address) Bus.

The MDR holds the data that is to be used by the ALU and then saved to the RAM. The MDR is closely related to the MAR, since whichever memory address location the MAR is holding, the corresponding data will be loaded onto the MDR for processing by the ALU. After the processing has taken place, the ALU places the result onto the MDR and the data is copied to the memory address location in RAM specified by the MAR. The connection between the RAM and the MDR is accomplished by the Data Bus.

What happens is the CU fethces the instructions from primary memory through its registers (MDR &MAR) then once it retrives it, it decodes it and sends it to the ALU for processing). Once the ALU has the instructions on what to do with the data provided by the CU, it does the operations and stores the result in the primary memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Question: Describe the function of the data bus found in a PC.

A

:

It carries data to the MDR and then to the ALU from memory and from ALU to the MDR and then to memory.

The data bus carries data between the processor, the memory unit and the input/output devices

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Basic registers in the CU

A

The basic registers in the CU are the memory address register (MAR) and the memory data register (MDR).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Computer systems are, what is binary digit, byte,

A

Computer systems are binary systems. That means that all the data and instructions that are stored in a computer system are stored in sequences of binary digits that can take only two possible values, 1 and 0. Thus a binary digit (bit) is the basic unit of information in computer systems and can have only two values: either 1 or 0. Eight bits form a byte.

1 Byte = 8 Bits

One byte can store a single character (ex. the letter A).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Size in binary

A

Bit
4 bites = 1 nibble
8 bites = 1 Byte
1024 Bytes = 1 Kilobyte
1024 Kilobyte = 1 Megabyte
1024 Megabyte = 1 Gigabyte
1024 Gigbyte = 1 Terabyte

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Rom and Ram

A

The RAM stores the executing program instructions as well as any data that is needed. Instructions and data in the RAM are stored in unique memory locations and every such location has an address as well as content. The content is where the instructions and data reside, whereas the memory location is used by the CU to find, retrieve and access the data in order to send it to the ALU for processing.
Similar to the RAM, the ROM holds instructions and data in unique memory locations. Every such location has an address as well as content. Unlike the RAM however, the ROM is used to store permanent instructions and data that cannot be changed and are used to boot and operate the computer. As such, nothing can be altered in the ROM.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Primary memory

A

The primary memory is the only storage that is directly accessible by the CPU. At any point in time, the primary memory may hold both data and instructions that are currently running on the computer system. These data and instructions are stored in the primary memory as binary machine code (i.e. a series of Os and 15).

Primary memory consists of two type of memory: RAM and ROM’

RAM is a general—purpose storage area meaning that the data stored can be over— written. This allows data and instructions to be loaded for execution and use whenever they are necessary. However, RAM is volatile, which means that whenever power is lost the contents of its memory are wiped (ex. if an unsaved document with changes is open when the power is lost, all the changes that have been made will be lost

On the other hand, ROM is used to store instructions and data and cannot be over—written. This means that the instructions that are embedded in ROM cannot be changed, even if power is lost, and as such is considered non- volatile memory. ROM is used to store programs and instructions that do not need to be
updated or change

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Identify some differences between ROM and RAM found in a PC.

A

ROM cannot be written to, but RAM can be written to.
ROM holds the (BIOS) Basic Input / Output System, but RAM holds the programs running and the data used.
ROM is much smaller than RAM.
ROM is non-volatile (permanent), but RAM is volatile.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Ram two main types

A

RAM has two main types:

Dynamic RAM (DRAM) Static RAM(SRAM)

Sram is faster but more expesive than dram and as such DRAM is preferred for the main RAM of a computer system. However, a small amount of SRAM is placed between the main RAM and the processor and it is called cache (Figure 2.3). As such, cache is a smaller and faster RAM (SRAM) that temporarily stores instructions and data so that the processor does not need to access the slower main memory (DRAM).
Cache holds the information from the RAM that is most actively used, and accessed most frequently. The computer system will run faster as the slower main memory will need to be accessed less frequently. When the processor needs to read from the main memory, it first checks if a copy of the data exists in the cache. If so, the processor reads from the cache, instead of reading from main memory. This action speeds up the process. If the data to be read do not exist in the cache, the data are first copied to the cache and then used. When the processor needs to write to the main memory it does so through cache memory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

State some differences between Cache Memory and RAM.

A

Cache memory is closer to the CPU
Cache memory is much faster than RAM. Cache memory is more expensive than RAM.

Cache memory is separated in L1 and L2.
We are interested in two types of cache memories that reside between the main RAM and the processor. These two types are L1 cache and L2 cache. L1 cache is placed on the microprocessor itself whereas L2 cache is placed between the primary memory and the microprocessor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Machine instuction cycle

A

It is the basic operation cycle of a computer, taking place in a definite time period, during which one instruction is fetched from memory and executed. It typically consists of four stages: fetch, decode, executer and store.

The machine instruction cycle describes the order that instructions are fethched, decoded, executed, and stored in a computer.

Computer programs are stored in the primary memory as a series of instructions in machine code. These instructions, as well as any other necessary data, have to be moved from the primary memory and into the CPU in order for the computer program to operate. In order for that to happen, specific steps are followed. The following functions are carried out by the CPU in order to run a computer program:

  1. Fetch instruction from primary memory to control unit
    The CPU is responsible for knowing which instruction it needs to take from the primary memory in order to operate correctly. To do that it sends the appropriate address through the memory (address) bus to the primary memory. The instruction that resides in the specific address is then copied into the data bus and sent to the control unit (CU).

The Cu fetches the instructions and stores them in the MAR and MDR using the data bus and address bus, and those instructions are then sent to the alu for operations

  1. Decode instruction in control unit
    The instruction that has been received by the CU is then decoded. Decoding an instruction allows the CPU to be aware of any additional data that are necessary for the execution of the instruction. Any required data that need to be loaded from the primary memory in order for the instruction to be executable are then fetched. The addresses of these data are placed into the memory (address) bus and the data from these addresses are received by the CPU through the data
  2. Execute instruction
    The CPU executes the instruction using the necessary data that have been loaded and calculates a result. Depending on the result, additional data may be needed. These data are fetched from the primary memory for further calculations. As before, the addresses of these data are placed into the memory (address) bus and the data from these addresses are received by the CPU through the data bus.
  3. Store result of execution and check for next instruction
    After executing the instruction and computing the result the CPU then stores the result in the primary memory. To do so, it specifies the address where the result will reside in the primary memory, using the memory (address) bus and sends the data through the data bus. The CPU then checks for the next instruction and repeats the steps described above by fetching, decoding, executing and finally storing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Secondary memory

A

Secondary memory is a slow memory that may be written to (just like the RAM) but is also non-volatile (just like the ROM); that is not directly accesible by the CPU .Secondary memory has a relatively high capacity to hold data compared to the primary memory.

he CPU can only access the volatile primary memory that is relatively fast but moderate in capacity. The primary memory is connected to the non-volatile secondary memory that is relatively slower but has a higher capacity to hold data.

Secondary memory is thus what provides persistent storage to computer systems. This is very important since if secondary memory did not exist a computer system would be unable to store instructions and data persistently. Whenever it shut down all the contents of the only existing primary memory would be lost.
Without the availability of secondary memory only ROM, would be able to store programs and instructions. That would mean that since ROM cannot be over-written, a computer would only be able to perform fixed operations and any user data would have to be re- inputted every time the user wished to use them. This would be acceptable for devices such as simple calculators, but imagine a mobile telephone user, who would have to re-enter the names and telephone numbers every time the mobile telephone was powered on. Such a system would be very hard or impossible to use as the user would have to remember all the telephone numbers or carry an address book everywhere!

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Main examples of different secondary memory (storage) devices.

A

Hard drive (a.k.a. hard disk)
CD-RW, DVD-RW
USB Flash drive
Secure Digital (SD) or Compact Flash (CF) card Zip disk
Floppy disk MBBHEtiC tape

17
Q

State some differences between primary and secondary memory.

A

computers are equipped with a smaller amount of primary memory and a larger amount of secondary memory.
Primary memory is volatile, which means it does not retain data when the power is turned off.

Primary memory is more expensive compared to secondary memory. Primary memory is much faster than secondary memory.
Primary memory is directly accessed by the CPU.
Secondary memory is not directly accessible by the CPU.
Secondary memory is non-volatile, which means it retains data when the power is turned off.

18
Q

Operating system

A

An operating system (05) is a set of software that controls the computer’s hardware resources and provides services for computer programs. It is a very important part of a computer system since it acts as an intermediary between software applications (i.e. programs) and the computer hardware

19
Q

Main services that an operating system provides

A

Perhipal communication, memory managment , resource monitoring and multitasking, networking, disk access and data managment, security

Peripheral devices
Peripheral devices are all the hardware components of the computer system that reside outside the CPU. Examples of peripheral devices include keyboards, monitors, mice, printers, microphones, etc. The operating system is responsible for communicating directly with the hardware and providing an interface between hardware devices and applications. This allows for applications to use hardware devices in a trouble-free manner.

Memory management
An operating system (OS) is responsible for all the memory that is available in a computer system. This means that an OS manages how the memory is used by applications and ensures that one application does not interfere with memory that is being used by some other application. If one application interferes with another application’s memory, the latter may stop functioning or its data may be affected or overwritten.

Resource monitoring and multitasking
Most computer systems however have a single CPU that can perform a single action at any particular time. That means that applications must share the CPU time in order to accomplish their goal. This is known as multitasking and it is a core OS service.

An application that is running on a computer system takes up resources. These resources include the amount of memory the application is occupying, or how much processor time it needs in order to function properly. An OS is responsible for the efficient allocation of resources so that an application can run as effectively as possible on a particular computer system. Multiple applications may run on a computer system at any one time, appearing as though they are performing tasks simultaneously. Most computer systems however have a single CPU that can perform a single action at any particular time. That means that applications must share the CPU time in order to accomplish their goal. This is known as multitasking and it is a core OS service.

Networking
An operating system manages connections to and interactions with networks of other computer systems so as to allow the sharing of resources (such as files and printers). Networking is essential to modern computer systems, most connected with either a local area network or the Internet. An operating system acts as an intermediary between applications and networks, allowing applications to interact with networks in a straightforward manner.

Security
Apart from allowing applications to run successfully, the
operating system is also responsible for the overall security of
a computer system. The most common but effective method
of protection is to provide some form of identity to the user
that will allow his/her authentication. Most often a username
and a password must be provided. However, other methods
of authentication may be used, such as magnetic cards or biometric

20
Q

GUI

A

graphical user interface (GUI) to allow the user to interact with them in a number of ways, instead ofjust typing in commands.

while command line interfaces (CL/s) are purly just typing very specfiic commands tha tmak rthe computer operate, it is extrmemly detail

21
Q

Decimal number system

A

The decimal number system is a positional system that uses ten digits (0, 1, 2, 3, 4, 5, 6, 7, 8, and 9) to represent any number, no matter how large or small. The decimal number system (or base-10) has ten as its base and it is the most widely-used number system. Its basically just whole numbers

Example:
An example of a number in the decimal number system is 6275 base 10

We know that 10

22
Q

Binary number system

A

The binary number system is a positional system that uses two digits (0 and 1) to represent any number. The binary number system (or base—2) has two as its base. It is the most widely used number system in computer science. Numbers represented in this system are known as binary numbers. Since base-2 is a positional system, the position of each digit within a number provides the multiplier with which that digit is multiplied.

so its

2^7,2^6,2^5,2^4,2^3,2^2,2^1,2^0
and you start from 2^7 = 128. And if the value is equal or over 128 you place a zero, and subtract the value 128, then h

23
Q

The hexadecimal number system

A

The hexadecimal number system is a positional system that uses 16 digits (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E and F) to represent any number. Digits A to F represent quantities from 10 to 15, thus A = 10, B = 11, C = 12, D = 13, E = 14 and F = 15. The hexadecimal number system (or base-16) has sixteen as its base and is used in computer science. Numbers represented in this system are known as hexadecimal numbers.
Since base-16 is a positional system, the position of each digit within a number provides by the multiplier which that digit is multiplied.

So it goes from 16^4,16^3,16^2,16^1,16^0

So imagine we needed to convert 1EB5 base 16 to a decimal integer

It would be

16^3 for the first digit 1
16^2 for the second digit E
16^1 for the third digit B
16^0 for the last digit 5

Then it would be
1 * 4096 (number gotten from 16^3)
E* 256
B16
5
1

24
Q

Logic gates (6)

A

AND, OR, NOT, NAND, NOR and XOR.

AND means that both must be true for the output to be true

OR means only one has to be true for the output to be true

NOT has a single input and a single output, it takes in the input and outputs the revenue (exmaple input =0(false), output =1(true)

NAND is the opposite value of AND

NOR is the opposite value of OR

XOR: if both inputs are the same, then its 0, if both inputs are different then its 1