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
-
malloc is used to allocate store for integer arrays only
-
new is used to allocate store for objects only
-
new is used to allocate any kind of memory
-
malloc is used to allocate any kind of memory
-
new initializes the store after allocation
-
malloc intializes the store after allocation
C,D
Correct answer
Explanation
Both malloc and new can allocate memory for any type, not just arrays or objects. In C++, new automatically initializes objects by invoking their constructors, whereas malloc simply allocates raw bytes of memory without performing initialization.
D
Correct answer
Explanation
The LINKAGE SECTION in a COBOL program is used specifically in called (sub) programs to define data items that will receive parameters passed from the calling program. It 'links' or maps the calling program's data to the called program's working storage, enabling parameter passing between programs.
B
Correct answer
Explanation
Android does not keep all applications running indefinitely. The system actively manages memory by killing background processes when resources are needed for foreground activities. Applications can be terminated even if they're not doing anything wrong - this is normal Android behavior.
-
DC
-
DS
-
No Such Instruction Exists
-
1 and 2
A
Correct answer
Explanation
DC (Define Constant) is used to allocate memory and initialize it with a constant value in assembler. DS (Define Storage) only reserves memory space without initialization. Therefore DC is the instruction that both allocates and initializes memory.
D
Correct answer
Explanation
ROM (Read-Only Memory) is permanent memory built into computers because it retains data without power and cannot be easily modified. RAM is volatile temporary memory that loses data when power is off, CPU is the processor, and CD-ROM is removable media. The 'permanent' and 'built into your computer' descriptions point directly to ROM chips containing firmware.
C
Correct answer
Explanation
Standard CDs store approximately 650MB of data, though newer capacities reach 700MB. 1.4MB is floppy disk capacity, 10MB is unrealistically low for optical media, and 150MB doesn't match standard CD specifications. The 650MB figure is the widely accepted standard capacity for traditional compact discs.
-
Flash Memory and on-board memory
-
Storage memory
-
Main memory
-
Partition storage
A
Correct answer
Explanation
The correct answer is A because BlackBerry application storage refers to the persistent flash memory and on-board memory where applications and data are stored. Option B ('Storage memory') is too vague. Option C ('Main memory') typically refers to RAM, which is volatile. Option D ('Partition storage') is not the standard terminology used in BlackBerry documentation.
-
Reference counting
-
Automatic garbage collection
-
Both a and b
-
None
A
Correct answer
Explanation
Objective-C traditionally uses reference counting (manual memory management through retain/release/autorelease). While some versions of Objective-C on Mac OS X offered optional garbage collection, it was never available on iOS and has been deprecated. Reference counting (now largely automated through ARC) is the primary technique.
-
Digital Data Rate
-
Differential Data Rate
-
Double Data Rate
-
Dynamic Data Rate
C
Correct answer
Explanation
DDR stands for Double Data Rate, referring to how the memory transfers data on both the rising and falling edges of the clock signal, effectively doubling the data transfer rate compared to single data rate (SDR) memory. It is not related to 'Digital', 'Differential', or 'Dynamic' in this context.
-
Logical drives
-
Can be shared between several servers
-
Soft partitions
-
Hard partitions
A,B,C
Correct answer
Explanation
SAN LUNs (Logical Unit Numbers) function as logical drives presented to servers, can be shared across multiple servers for clustering or load balancing, and represent soft partitions (logical subdivisions) of physical storage. Hard partitions refer to physical separation, not LUN functionality.
-
MBR, SATA,PATA
-
GPT,SATA,PATA
-
MBR,GPT
-
MBR
C
Correct answer
Explanation
MBR (Master Boot Record) and GPT (GUID Partition Table) are the two primary partition styles used to organize layout on storage drives. SATA and PATA refer to physical hardware interface standards and connection types, not to storage device partitioning schemes.
-
SATA
-
PRIMARY
-
PATA
-
NT
-
FireWire
-
iLink
A,C,E,F
Correct answer
Explanation
Common hard drive interfaces include SATA (Serial ATA) and PATA (Parallel ATA) for internal drives. FireWire and iLink (IEEE 1394) are external interfaces used with external hard drives. PRIMARY is not an interface type - it refers to a primary partition. NT is not a valid hard disk interface.
A
Correct answer
Explanation
A Virtual Tape Library (VTL) emulates physical tape drives using disk storage, presenting tape-like media to backup software while using hard disks for actual data storage. It's commonly used for backup and recovery, providing faster access than physical tape while maintaining compatibility with tape-based backup workflows.
-
Storage area network
-
Storage Controller
-
Storage Box
-
NAS
C
Correct answer
Explanation
The question describes a system comprising many pieces of hard disks that requires its own management system - this refers to a Storage Box which contains multiple disks and management software. A Storage Area Network (SAN) provides network-level storage access, Storage Controller is a component, and NAS is network-attached storage but doesn't necessarily contain 'many pieces of hard disks' requiring its own management system in the same way.
A
Correct answer
Explanation
RAID configurations, such as RAID 5 or RAID 6, support data redundancy. If a drive fails, the SAN system automatically uses parity data or mirror copies from the remaining active drives to rebuild the lost information onto a configured hot spare disk, avoiding any data loss.