Miscellaneous Flashcards
DRAM vs SRAM
1) Speed
DRAM: Slower than SRAM due to the need for constant refreshing and more complex access processes.
SRAM: Faster because it does not require refreshing and has simpler access mechanisms.
2) Cost
DRAM: Less expensive to manufacture due to its simpler design and higher storage capacity.
SRAM: More expensive because it requires more transistors per bit and takes up more space on a chip.
PROM vs EPROM
1) Reprogrammability
PROM: Once programmed, the data cannot be erased or modified. It is a one-time programmable memory.
EPROM: Can be erased by exposing it to ultraviolet (UV) light and then reprogrammed multiple times.
2) Cost and Complexity
PROM: Cheaper and simpler, as it does not have the capability to be erased or reused.
EPROM: More expensive due to the erasure mechanism (UV light) and the ability to be reused multiple times.
ASCII vs Unicode
1) ASCII uses 7 bit + check bit / parity bit = 8 bits;
2) Unicode extends it to 8/16/32 bit;
3) UNICODE has bigger character set so requires more disk space;
4) ASCII encodes only 128 characters by assigning numbers;
5) Unicode may use different and more sophisticated representation
Variable vs Constant
1) Variable: A variable is a named storage location in memory that can hold a value. The value stored in a variable can change during the execution of a program.
2) Constant: A constant is a named storage location whose value cannot be changed once it is assigned. It remains the same throughout the execution of the program.
Importance of high level language
1) High-level languages provide robust error checking and debugging tools
2) Fixed Syntax
3) unambigous vocabulary
Mod vs Div
17 DIV 5 would return 3 (the quotient)
5 x 3 = 15 with remainder 2
17 MOD 5 would return 2 (remainder)