Paper 2 Flashcards
What a higher-order function?
A function that takes another function as an argument.
Why do rounding errors occur? And what will the system do when the value is converted into binary?
There are not enough bits in the mantissa to represent the value exactly.
It may be truncated- could be rounded to the nearest representable value.
Describe the advantages to using Harvard Architecture:
- Avoids bottlenecking of single data.
- Avoids possibility of data being executed as code (can be exploited by hackers).
- Instructions and data can have different word lengths.
What is the role of interrupts?
Allows the currently executing task to be suspended so that a source that needs the immediate attention of the processor can be serviced.
Why must the volatile environment (the contents of registers) be saved before an interrupt is serviced?
So that the current task can be returned to.
What is the relationship between software and hardware?
Software is the program that executes on the hardware.
What are the principles and operation of an ADC?
- Analogue signals are sampled at regular time intervals.
- Amplitude of analogue waves measured at each sample point.
- Measurement coded into a fixed number of bits.
What are the advantages of floating point?
Can represent numbers with a greater range than a fixed point system (in a given number of bits).
What are the advantages of fixed point?
- Can represent some numbers more precisely than a floating point system.
- Calculations can be performed more quickly.
- Represents all numbers to a constant level of precision.
What are some reasons why JSON could be argued to be better than XML?
- Easier for humans to understand and read.
- More compact.
- Smaller file size.
- Native support for arrays.
- Quicker to parse.
What are some advantages of using the DHCP system?
- Reduces the need for expert knowledge when configuring a host.
- Reduces the time required to configure hosts.
- Avoids errors even as duplicating IP addresses or programming incorrect subnet masks.
How can two or more computers connected to the internet have the same IP address and still communicate with each other?
- The computers have private IP addresses.
- NAT will be performed so that the computers can communicate on the internet:
- As data passes onto the internet, private IP addresses are replaced with public addresses of router.
What are some ways a firewall can protect computers on a LAN?
- Block traffic on specific ports.
- Block traffic from specific IP addresses.
-Block certain types of packet. - Firewall maintains information about current connections and only allows packets relevant to these connection through.
What is meant by immediate addressing?
The operand is the value the instruction should use.
What is the Stored Program Concept?
Machine code instructions stored in main memory are fetched and executed serially by a processor that performs arithmetic and logical operations.