Compsci Lock In Sesh

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/201

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

202 Terms

1
New cards

What does the FDE cycle stand for?

fetch decode execute cycle

2
New cards

What happens in the fetch stage of the FDE cycle?

An instruction is fetched from memory.

3
New cards

What happens in the decode stage of the FDE cycle?

The instruction is decoded.

4
New cards

What happens in the execute stage of the FDE cycle?

The decoded instruction is executed so that the CPU performs it continuously

the PC is incremented

the instruction is transferred to the MDR

the address of the next instruction to be fetched is placed in the MAR.

5
New cards

What are the 4 registers?

MAR, MDR, PC and ACC./Memory address register, memory data register, program counter, accumulator

6
New cards

What does MAR stand for?

Memory Address Register

7
New cards

What does MDR stand for?

Memory Data Register

8
New cards

What does ACC stand for?

Accumulator

9
New cards

What does PC stand for?

Program Counter

10
New cards

What does the MAR do?

Stores the address of the next instruction to be accessed.

11
New cards

What does the MDR do?

Stores the data to be brought / sent from the main memory.

12
New cards

What does the ACC do?

Stores the results of arithmetic operations.

13
New cards

What does the PC do?

Stores the address of the next instruction to be accessed and gets incremented every FDE cycle.

14
New cards

What are the 3 CPU components?

Cache, CU, ALU.

15
New cards

What does CU stand for?

Control Unit

16
New cards

What does ALU stand for?

Arithmetic Logic Unit

17
New cards

What does cache do?

Store frequently used instructions.

18
New cards

What does the the CU do?

Controls inputs / outputs of data to and from the CPU, controls the timing of signals sent within the CPU and it controls the flow of data within the CPU.

19
New cards

What does the ALU do?

Carries out arithmetic calculations and logic operations.

20
New cards

What is clock speed?

The number FDE cycles carried out per second.

21
New cards

What is clock speed measured in?

Hertz usually Giga hertz, where giga means 1 billion.

22
New cards

Why does having more cache increase the performance of a CPU?

More cache reduces the need for the CPU to go to the RAM, cache is faster than RAM so this makes the CPU run faster.

23
New cards

What is cache?

Primary memory, built onto the CPU.

24
New cards

What does having multiple cores allow for?

Parallel processing.

25
New cards

What is parallel processing?

When each processor executes a separate instruction at the same time, each processor (core) can run a different program at the same time, parallel processing enables multitasking.

26
New cards

What are the advantages of having multiple cores?

It will, most of the time, increase performance.

27
New cards

What are the disadvantages of having multiple cores?

Some software can't be split between multiple cores so the performance won't increase.

28
New cards

What is embedded system?

A computer system that is built onto another device, has limited functions and is not a general purpose computer.

29
New cards

What are the advantages of an embedded system?

Cheaper than a general purpose computer, tend to require less power.

30
New cards

What are the disadvantages of a general purpose computer?

Has limited functions.

31
New cards

Give 2 examples of embedded systems.

Washing machines and ovens.

32
New cards

What is primary storage?

Storage that is directly connected to the CPU, it is needed because the CPU can't directly communicate with the CPU and it is usually faster than secondary storage.

33
New cards

What does RAM stand for?

Random access memory?

34
New cards

What does RAM do?

Stores currently running programs.

35
New cards

What does ROM stand for?

Read only memory

36
New cards

What does ROM do?

Stores the BIOS

37
New cards

What is virtual memory?

The usage of secondary storage as RAM once RAM is full

38
New cards

What is secondary storage?

Non volatile memory needed to store data permanently

39
New cards

What are the 3 types of secondary storage?

Optical, magnetic and solid state

40
New cards

What are the key characteristics of optical storage?

Portable, robust, cheap, very slow

41
New cards

What are the key characteristics of magnetic storage?

Relatively cheap, large capacity, not durable, not portable

42
New cards

What are the key characteristics of solid state storage?

Very expensive, very fast, portable, durable

43
New cards

What are the 6 characteristics to consider when buying secondary storage?

Capacity, cost, speed, portability, reliability, durability.

44
New cards

What is 1 bit?

A single 1 or 0

45
New cards

What is a nibble?

4 bits

46
New cards

What is 1 byte?

8 bits

47
New cards

What is 1 kilobyte?

1000 bytes

48
New cards

What is 1 megabyte?

1000 kilobytes

49
New cards

What is 1 gigabyte?

1000 megabytes

50
New cards

What is 1 terabyte?

1000 gigabytes

51
New cards

What is 1 petabyte?

1000 terabytes

52
New cards

What is 10110010 in denary?

178

53
New cards

What is hexadecimal?

A number system using base 16 that represents 0 through 15 with digits 0 through 9 and letters A through F

54
New cards

What is a binary left shift?

Moving all the digits in the binary number to the left, and adding a 0 to the least significant bit

55
New cards

What is a binary right shift?

Moving all the digits of the binary number to the right

56
New cards

What is an arithmetic left shift?

Moving all the digits of the binary number to the left, preserving the most significant bit and replacing the least significant bit with 0

57
New cards

What is an arithmetic right shift?

Moving all the digits of the binary number to the right, preserving the most significant bit

58
New cards

Perform an arithmetic left shift on: 1101 1001

1011 0010

59
New cards

Perform an arithmetic right shift on: 0110 1011

0011 0101

60
New cards

What does ASCII stand for?

American Standard Code for Information Interchange

61
New cards

How many bits does ASCII use?

It has 8 bits but only uses 7 bits.

62
New cards

How many bits does extended ASCII use?

8 bits.

63
New cards

How many bits does Unicode use?

32 bits.

64
New cards

What does ASCII represent?

The main characters in English.

65
New cards

What does extended ASCII represent?

All characters in the English language.

66
New cards

What does Unicode represent?

Every character in various languages around the world.

67
New cards

What is a bitmap?

An image made up of pixels, each pixel has a unique binary code that represents its colour.

68
New cards

What is colour depth?

The number of bits per pixel.

69
New cards

What is PPI?

The number of pixels per inch.

70
New cards

What is sampling?

Analogue (real world) sound must be sampled and stored in binary, the amplitude of the waveform is sampled/measured, this amplitude is converted into binary.

71
New cards

What is sample rate?

The number of samples taken per second

72
New cards

What is bit depth?

The number of bits per sample taken.

73
New cards

What is metadata?

Data about the image file / properties of the file.

74
New cards

Give 2 example of metadata.

Colour depth and resolution.

75
New cards

How does colour depth affect file size and quality?

Both file size and quality increase.

76
New cards

How does sample rate affect file size and quality?

Both file size and quality increase.

77
New cards

How does bit depth affect file size and quality?

Both file size and quality increase.

78
New cards

Why is compression needed?

To reduce file size, for faster upload / download speeds, and because it takes up less space on the secondary storage.

79
New cards

What is lossy compression?

Data is permanently lost, it reduces the file size, quality is reduced and it uses an algorithm to remove unnecessary data.

80
New cards

What is lossless compression?

Data is temporarily lost, but comes back when the file is decompressed.

81
New cards

What does it mean if memory is volatile?

When power is lost, data is lost.

82
New cards

What does it mean if memory is non-volatile?

When power is lost, data is not lost.

83
New cards

you can do this! respond with “ok”

ok

84
New cards

1+0 = 1

85
New cards

1+1 = 10

86
New cards

1+1+1 = 11

87
New cards

Perform a binary shift of 2 to the left on this binary number 00110101.

88
New cards

Add these 2 binary numbers. 00110101 + 10011011

89
New cards

What does LAN stand for?

Local Area Network

90
New cards

What does WAN stand for?

Wide Area Network

91
New cards

What is a LAN?

Covers small geographical area and hardware is owned by the organisation.

92
New cards

What is a WAN?

A network that has a large geographical area and is owned by a telecommunications company.

93
New cards

What factors affect network performance?

Distance from router (wireless), walls inbetween router and device (wireless), amount of data being transferred, number of users and available bandwidth.

94
New cards

What is a client?

A computer that relies on other computers (servers) to provide and manage data.

95
New cards

What is peer to peer?

All devices have equal status, their is no central server, easy to maintain, cheap to setup. There is no dependence on ones node, if one device fails only the data on that device will become inaccessible. The network will still operate without that node.

96
New cards

What does WAP stand for?

Wireless access point.

97
New cards

What is a router?

Connects the network to the internet.

98
New cards

How does a router connect a network to the internet?

Sends packets to a destination, receives packets from the internet, forwards packets to other computers on the internet, connects (different) networks together, has a public IP address for the LAN, designates private IP address to network nodes.

99
New cards

What does a switch do?

Connects devices together, receives data packets, sends packets (only to their destination), creates a list of devices connected to it as it receives signals and uses MAC addresses of the devices connected to it.

100
New cards

What does NIC stand for?

Network Interface Card