Computer architecture Flashcards

(37 cards)

1
Q

What are the 3 main components of a CPU???

A

CU[control unit]
ALU[Arithmetic and logic unit]
registers

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

What is the role of ALU???

A

The role of the ALU is for computing arithmetic and logic gate based logic

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

What is the role of the control unit???

A

The CU directs the operation of the CPU, interpreting instructions from programs and coordinating the activities of other components.

It manages the flow of data and controls signals to and from other parts of the CPU

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

What is the role of the registers???

A

temporally holds data while a CPU is computing instructions - same as RAM but doesn’t hold the data for as long

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

What is the role of RAM???

A

RAM is a type of volatile memory used to store data and programs temporarily while the computer is running

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

What are three types of ram???

A

Vram
Dynamic Ram
Static Ram

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

What is the role of a data bus???

A

The data bus carries data between the CPU, memory, and other components. It determines how much data can be transferred at once.

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

What is the role of a memory bus???

A

The address bus carries memory addresses from the CPU to other components. It determines how much memory can be addressed.

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

What is the role of a control bus???

A

The control bus carries control signals from the CPU, indicating what operations to perform (read, write, etc.).

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

How does an interpreter work???

A

An interpreter directly executes code line by line. It doesn’t convert the entire program into machine code

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

What programming languages that commonly use interpreters???

A

interpreters are often used in dynamic languages like Python and JavaScript.

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

What are some pros and cons of interpreters???

A

Pros: Easier debugging, immediate execution, flexible code modifications.
Cons: Slower execution compared to compilers, as each line is interpreted individually.

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

How does an complier work???

A

A compiler translates the entire source code into machine code, creating an executable program

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

What programming languages that commonly use complier???

A

Compilers are commonly used in languages like C, C++, and Java.

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

What are some pros and cons of compliers???

A

Pros: Faster execution, optimized code, doesn’t require source code for execution.
Cons: Longer compilation time, harder to debug, requires recompilation for code changes

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

What are binary numbers???

A

Computers use binary (base 2) to represent data. A binary number consists of only 0s and 1s.

17
Q

What are positive integers[denary]???

A

Positive integers are whole numbers greater than zero. They can be represented in binary.

18
Q

How to convert from decimal to binary???

A

use either the division method or subtraction method:
To convert in division method, decimal number to binary, repeatedly divide by 2 and track the remainders. Reverse the order of remainders to get the binary representation.

or for the subtraction method if the positive integer is > than the number of bytes a 1 has it = 0 else

19
Q

How are real numbers represented within a computer???

A

Real numbers can have fractional components. They are often represented using floating-point notation.

20
Q

describe floating point notation

A

This uses scientific notation with a base (binary) and an exponent. It’s commonly used to represent real numbers in computers

21
Q

How does a computer represent text???

A

Text is represented using character encoding schemes like ASCII and Unicode.

22
Q

What are some examples of text encoding schemes and how do they work???

A

ASCII: Represents characters using 7 or 8 bits, allowing for 128 or 256 different characters.
Unicode: A more extensive encoding scheme allowing for thousands of characters, including those from different languages.

23
Q

How do vector graphics get used to represent images???

A

Vector graphics use mathematical equations to represent images. They are resolution-independent and often used for logos and scalable graphics

24
Q

What are some advantages/disadvantages of vector graphics???

A

Advantages: Can be scaled without losing quality, smaller file sizes for complex graphics.
Disadvantages: Not suitable for detailed or complex images like photographs.

25
How do bitmap graphics get used to represent images???
Bitmap graphics represent images as a grid of pixels. Each pixel has a specific color.
26
What are the advantages/disadvantages of bitmap graphics???
Advantages: Suitable for complex images and photographs, wide support across platforms. Disadvantages: Large file sizes for high-resolution images, loss of quality when scaled.
27
How do computers affect the environment???
Computers and data centers consume significant energy. This contributes to carbon emissions and environmental impact.
28
What are two ways of making computers energy efficient???
Manufacturers focus on creating energy-efficient components like low-power CPUs, GPUs, and storage devices Techniques like sleep mode and hibernation reduce energy consumption when computers are idle
29
How can we reduce energy usage within a computer???
Efficient coding practices can reduce CPU usage and energy consumption. Choosing energy-efficient hardware and peripherals helps reduce energy consumption. Proper disposal and recycling of electronic waste reduce environmental impact.
30
What are some security precautions in computers???
Use complex passwords and change them regularly. Keep operating systems and applications updated to prevent vulnerabilities. Implement multi-factor authentication for added security.
31
What's a firewall???
A firewall is a security system that monitors and controls incoming and outgoing network traffic based on predetermined rules
32
What's the role of a firewall???
Firewalls protect networks from unauthorized access and potential threats.
33
What are the two types of firewalls???
Firewalls can be hardware-based or software-based
34
What's encryption???
Encryption is the process of encoding data to prevent unauthorized acces
35
What's the role of encryption???
Encryption ensures that even if data is intercepted, it cannot be read without the decryption key.
36
What are some common encryption methods???
Symmetric encryption uses the same key for encryption and decryption, while asymmetric encryption uses a public-private key pair.
37