Definitions Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

How are symbols represented in binary

A

Symbols are represented in the binary by having an ascii table which converts between the numbers to letters and symbols.

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

What is the meaning of immutable

A

The state of the object is unable to be changed after it is created

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

How does the fetch decode and execute phrase carry out instructions?

A

fetch - Fetching instructions in memory to store in instructional registers via buses from RAM or ROM. Fetching initiated by control unit.
decode phase - opcode is decoded according to instruction table
execute phrase - May involve moving data from RAM to registers or perform calculations between registers or move data from input/output devices to RAM and registers.

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

What is polymorphism?

A

overriding of methods and attributes of the parent class

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

What is polymorphism?

A

overriding of methods and attributes of the parent class

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

Why is there a need for MicroPython in embedded systems

A

Embedded systems have limited resources such as memory and MicroPython is needed to make the code slim and efficient
-contains tools that are required for prototyping

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

What is the advantage of coding in FSM

A
  • modularity which can allow many people to split the workload
  • easy to update any codes as any changes to one part will not affect the entire system
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is an IP address

A

specific digital addresses that are assigned to a device when it is approved by a network

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

Differences between IPv4 and IPv6

A

IPv4 is 8 bits which is decimal while IPv6 is 16 bits which is hexadecimal.

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

Differences between IPv4 and IPv6

A

IPv4 is 32 bit, 4 sets of 8 bit which is decimal while IPv6 is 64 bits 4 sets of 16 bit which is hexadecimal.

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

Rules of an IP address

A
class A: first octet from (1-126)
n.XXX.XXX.XXX first octet network id, 2-4 are host id 
class B: first octet from (128 to 191.255)
N.NNN.XXX.XXX 1-2 octet network id,3-4 are host id 
class C: first octet from (192 to 223)
N.NNN.NNN.XXX 1-2 octet network id,3-4 are host id
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Rules of an IP address

A
class A: first octet from (1-126)
n.XXX.XXX.XXX first octet network id, 2-4 are host id 
class B: first octet from (128 to 191.255)
N.NNN.XXX.XXX 1-2 octet network id,3-4 are host id 
class C: first octet from (192 to 223)
N.NNN.NNN.XXX 1-3 octet network id,4 are host id 

special addresses:
localhost, “127.0.0.1” loopback address
169.254.XXX.XXX - no valid address

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

Differences between TCP and UDP

A
  • TCP requires a connection between server and client while UDP does not
  • TCP transmits information slower than UDP
  • TCP rearranges the packets with order specified while UDP have packets independent of each other
  • TCP ensures that there is absolute guarantee that the data sent will be intact while UDP does not have any guarantee and there may be data loss
  • TCP header size is 20 bytes while UDP header size is 8 bytes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

When is TCP or UDP used?

A

TCP is used when high reliability is required and transmission time is less critical
- UDP is used when fast efficient transmission is requied

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

What are data buses,

A

Data buses are Bi-directional that carries data between Processor, memory unit and I/O devices

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

What does data buses, control buses and address buses do?

A

Data buses are Bi-directional that carries data between Processor, memory unit and I/O devices
Address
Uni-directional
Carries the address of data from CPU → memory or CPU → I/O devices
Control
Uni-directional
Carries control signals and commands from the CPU to control and coordinate all activities in the computer (CPU → other devices)
Also carries status signals from other devices (other devices → CPU)

17
Q

What does control bus do?

A

Uni-directional
Carries control signals and commands from the CPU to control and coordinate all activities in the computer (CPU → other devices)
Also carries status signals from other devices (other devices → CPU)

18
Q

What does address bus do?

A

Uni-directional

Carries the address of data from CPU → memory or CPU → I/O devices

19
Q

What are the types of registers?

A

Instruction registers(IR), Memory data register (MDR), Memory address register(MAR)

20
Q

What does IR do?

A

IR, instruction register stores the instructions during processing.

21
Q

What does MAR do?

A

Memory address registers holds the location of the data that is needed to be accessed.

22
Q

What does MAR do?

A

Memory address registers stores addresses

23
Q

What does CU do

A

Control unit
Handles all processor control signals
Fetch instructions
Controls how data moves