Definitions Flashcards
How are symbols represented in binary
Symbols are represented in the binary by having an ascii table which converts between the numbers to letters and symbols.
What is the meaning of immutable
The state of the object is unable to be changed after it is created
How does the fetch decode and execute phrase carry out instructions?
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.
What is polymorphism?
overriding of methods and attributes of the parent class
What is polymorphism?
overriding of methods and attributes of the parent class
Why is there a need for MicroPython in embedded systems
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
What is the advantage of coding in FSM
- 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
What is an IP address
specific digital addresses that are assigned to a device when it is approved by a network
Differences between IPv4 and IPv6
IPv4 is 8 bits which is decimal while IPv6 is 16 bits which is hexadecimal.
Differences between IPv4 and IPv6
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.
Rules of an IP address
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
Rules of an IP address
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
Differences between TCP and UDP
- 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
When is TCP or UDP used?
TCP is used when high reliability is required and transmission time is less critical
- UDP is used when fast efficient transmission is requied
What are data buses,
Data buses are Bi-directional that carries data between Processor, memory unit and I/O devices