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
-
Stack
-
Heap
-
Register
-
Floppy
-
Compact Disk
B
Correct answer
Explanation
Components in Delphi must be dynamically allocated on the heap because they have lifetimes that extend beyond the function scope and need flexible memory management. The stack is for local variables with automatic lifetimes, registers are CPU storage, and floppy/compact disk are storage media unrelated to runtime memory allocation. Components are created with constructor calls and explicitly freed.
-
by this way computer can keep track only the address of the first element and the addresses of other elements can be calculated
-
the architecture of computer memory does not allow arrays to store other than serially
-
both of above
-
none of above
A
Correct answer
Explanation
Array elements are stored in consecutive memory locations, enabling efficient address calculation. By knowing the base address (first element's location) and element size, the computer can directly compute any element's address using simple arithmetic: base_address + (index × element_size).
-
a) LDS
-
b) RRDS
-
c) ESDS
-
d) KSDS
B
Correct answer
Explanation
VSAM clusters with ONLY fixed-length records are RRDS (Relative Record Dataset) and LDS (Linear Dataset). RRDS organizes records by relative record numbers and requires fixed length. The question asks which cluster supports only fixed length, and RRDS is the standard answer taught in mainframe curricula.
-
a) JCL, program, catalog
-
b) program, JCL, catalog
-
c) JCL, catalog, program
-
d) catalog, program, JCL
D
Correct answer
Explanation
VSAM processing options are determined in priority order: catalog entries first (highest priority), then program specifications, then JCL specifications (lowest priority). This hierarchy allows flexible override of defaults - catalog defines baseline, program can override, JCL can override both.
-
a) Catalog
-
b) Program control blocks
-
c) JCL
-
d) All the above
D
Correct answer
Explanation
VSAM processing options can be defined globally in the catalog definition, overridden or specified at runtime via the AMP parameter in the JCL DD statement, or dynamically configured programmatically inside the program's control blocks such as the Access Control Block (ACB) and Request Parameter List (RPL).
-
P contains the address of an element in DATA.
-
P points to the address of first element in DATA
-
P can store only memory addresses
-
P contain the DATA and the address of DATA
A
Correct answer
Explanation
A variable P is called a pointer if it contains the address of an element in DATA. Option A correctly states this fundamental definition - pointers store memory addresses, not the data itself. Option B is incorrect because pointers can point to any element, not just the first. Option C is too restrictive. Option D is wrong because pointers store addresses, not both data and addresses.
-
floor address
-
foundation address
-
first address
-
base address
D
Correct answer
Explanation
The memory address of the very first element of an array is known as the base address, which is used as the starting reference point to calculate the addresses of subsequent elements. Other terms like floor, foundation, or first address are incorrect terminology.
A
Correct answer
Explanation
Lotus Notes creates 2 local archive databases by default: one for the active mail archive and one as a template or backup archive. This standard configuration allows users to maintain current and historical archives while providing a foundation for additional custom archives. Users can create more archives manually, but the default installation establishes this two-archive structure.
-
which stores the bookmark file information
-
This is your Workspace cache file
-
Which stores the cache memory of lotus notes design elements from replicas.
-
None of the above
C
Correct answer
Explanation
cache.ndk is the Lotus Notes design cache file that stores cached design elements of databases from replicas to improve performance. The workspace cache is represented by desktop8.ndk, and bookmark information is stored in bookmark.nsf.
-
Works best with many small partitions
-
Allows many programs to use memory simultaneously
-
Allows each program in turn to use the memory
-
Does not work with overlaying
C
Correct answer
Explanation
Swapping is a memory management technique where the entire process is moved between main memory and secondary storage (disk). Processes take turns using memory - when one process is swapped out to disk, another can be swapped in and use that memory space. It doesn't work with many small partitions (that's paging), doesn't allow simultaneous use (processes alternate), and can actually complement overlaying by extending its principles.
-
Fdisk
-
Scandisk
-
Chkdsk
-
Fixdsk
B
Correct answer
Explanation
SCANDISK is a disk diagnostic and repair utility in MS-DOS and Windows that scans for and fixes disk errors, including bad sectors, file system problems, and cross-linked files. FDisk partitions disks but doesn't fix errors.
-
Implemented as a combination of real and auxiliary storage
-
Code and data size independent of real memory
-
Processor can not access large stimulated amount of real storage
-
d.Data size is independent of real memory
C
Correct answer
Explanation
Virtual storage allows programs to use more memory than physically available by combining real storage with auxiliary storage like disk. Options A, B, and D describe true characteristics of virtual storage. Option C is NOT true because virtual storage specifically allows processors to access a larger simulated amount of storage than what physically exists.
-
Tapes
-
DASD
-
CPU Cache
-
Central storage
B
Correct answer
Explanation
DASD (Direct Access Storage Device), such as disk drives, forms the cornerstone of mainframe storage hierarchy by providing online, direct-access storage. While tapes are used for archival, and CPU cache and central storage are volatile, DASD provides the primary persistent storage layer.
-
Partition by key
-
join
-
Gather
-
reformat
C
Correct answer
Explanation
Gather is a de-partitioning component that collects data from multiple partitions and consolidates it into a single partition. This is the opposite of partitioning operations (like Partition by Key) that split data across partitions, making it the correct answer.
-
Partition by key
-
join
-
Gather
-
reformat
C
Correct answer
Explanation
Gather is a de-partitioning component because it collects data from multiple partitioned flows and reunites them into a single flow. The opposite operation is partitioning (by key, round robin, etc.). Components like Partition by key and Join are partitioning operations, not de-partitioning.