Computer Knowledge
Computer Memory and Storage
2,477 Questions
Computer memory and storage questions test foundational knowledge of hardware, cache mapping, and data transfer mechanisms. Key areas include Direct Memory Access, analog recording, and RAID levels. This section is essential for candidates preparing for banking and government computer proficiency tests.
Cache memory mappingDirect memory accessRAID storage levelsHard disk technologyOptical media storageMemory addresses
Computer Memory and Storage Questions
-
cache
-
disk cache
-
buffer cache
-
none of these
C
Correct answer
Explanation
In UNIX, the kernel maintains a portion of memory to cache disk blocks to reduce disk access frequency; this mechanism is specifically called the buffer cache.
-
blocking
-
deblocking
-
packaging
-
none of these
B
Correct answer
Explanation
Blocking is the process of grouping records into blocks for storage. Deblocking is the inverse process, where records are extracted from these blocks after being read from storage.
-
to use primary memory efficiently
-
to do inter-process communication
-
to do intra-process communication
-
to control disk scheduling
B
Correct answer
Explanation
Shared memory is a method used in operating systems to allow multiple processes to access the same memory space for inter-process communication (IPC).
-
size of address bus
-
size of main memory
-
size of data bus
-
none of the above
A
Correct answer
Explanation
The virtual address space size is determined by the number of bits in the address bus of the processor. For example, a 32-bit address bus supports 2^32 bytes of virtual memory.
-
increasing the priority of jobs to ensure termination in finite time
-
keeping track of cache contents
-
keeping track of page references
-
keeping track of pages in main memory at a time
A
Correct answer
Explanation
Aging is a technique used in CPU scheduling to prevent starvation. By gradually increasing the priority of processes that have been waiting in the system for a long time, it ensures that even low-priority jobs will eventually be executed.
A
Correct answer
Explanation
A sector is the smallest physical storage unit on a disk drive. Tracks are concentric rings, and sectors are subdivisions of those tracks.
-
Direct Memory Access
-
Direct Memory Accelerator
-
Directional Memory Access
-
Deemed Memory Accelerator
A
Correct answer
Explanation
DMA stands for Direct Memory Access. It is a feature that allows hardware subsystems to access main system memory independently of the central processing unit.
-
page with corrupted data
-
wrong page in memory
-
page modified after being loaded in cache memory
-
page that is less frequently accessed
C
Correct answer
Explanation
A dirty bit is a flag associated with a block of memory (like a page) that indicates whether the data has been modified since it was loaded into memory. If the bit is set, the page must be written back to disk before being replaced.
-
which disk should be accessed next
-
the order in which disk access requests must be served
-
physical location of files on disk
-
none of the above
B
Correct answer
Explanation
Disk scheduling algorithms are used by the operating system to determine the order in which pending I/O requests to the disk are processed to optimize performance, such as reducing seek time.
-
the address of a variable
-
the data type of an address variable
-
a variable for storing address
-
an indication of variable to be accessed next
C
Correct answer
Explanation
A pointer in C/C++ is a variable that stores the memory address of another variable. It does not store the data itself, but rather the location where the data resides.
-
allocate memory
-
free allocated memory
-
resolve scope of variable
-
formats data display
D
Correct answer
Explanation
Manipulators (like setw, setprecision, endl) are used in C++ input/output streams to format the way data is displayed or read.
-
Message integrity
-
Threat
-
Logic bomb
-
Rabbit
-
Trojan horse
D
Correct answer
Explanation
This type of malicious code might create copies of itself and store them on disk, in an effort to completely fill the disk.
-
the hard disk
-
cache memory
-
RAM
-
registers
-
None of these
B
Correct answer
Explanation
Cache memory is a high-speed storage layer located near the CPU designed to store frequently accessed instructions and data, allowing the processor to retrieve them much faster than from main RAM.
-
Control unit
-
RAM
-
Control instruction register
-
ALU
-
None of these
C
Correct answer
Explanation
The Instruction Register (IR) is the specific part of the CPU control unit that holds the instruction currently being decoded or executed. While the question uses a slightly non-standard term, it refers to the IR.
-
location
-
register
-
address
-
accumulator
-
None of these
C
Correct answer
Explanation
An address is a unique identifier (usually a number) used by the CPU to locate a specific cell or location in memory.