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
-
RAID 1
-
RAID 0+1
-
RAID 3
-
RAID 5
C
Correct answer
Explanation
RAID 3 uses byte-level striping with a dedicated parity disk. Data is striped across multiple volumes while one entire volume stores parity bits used to reconstruct data if a drive fails. RAID 5 also uses parity but distributes it across all drives rather than dedicating one volume.
-
a) 2nd
-
b) Ist
-
c) 3rd
-
d) 4th
A
Correct answer
Explanation
SessionFactory is associated with the second-level cache in Hibernate. The first-level cache is at the Session level and is enabled by default, while the second-level cache is at the SessionFactory level and is optional.
-
a) 2nd
-
b) Ist
-
c) 3rd
-
d) 4th
A
Correct answer
Explanation
In Hibernate, the SessionFactory is responsible for managing the second-level (2nd) cache, which is shared across all sessions. The Session object manages the first-level (1st) cache, which is transaction-scoped.
-
a) They never releases the memory utilized
-
b) They release the memory but kernel does not use them
-
c) Since they are running
-
d) It’s a false statement
B
Correct answer
Explanation
Processes can release memory back to the kernel, but the released memory remains within the process's address space for potential reuse rather than being returned to the system. This is due to how memory allocators work - they keep freed memory for future allocations by the same process to avoid system call overhead.
-
a) National File System
-
b) Network Flashmemory System
-
c) Network File System
-
d) Network Fault System
C
Correct answer
Explanation
NFS stands for Network File System, a distributed file system protocol developed by Sun Microsystems. It allows users to access files over a network as if they were stored locally, enabling transparent file sharing between Unix-like systems. The other acronyms (National File System, Network Flashmemory System, Network Fault System) are incorrect.
-
a) Use getmemory()
-
b) Use sysctl()
-
c) Use freemem()
-
d) Use malloc()
B
Correct answer
Explanation
sysctl() is the system call used to query and modify kernel parameters in BSD-derived systems including macOS. It can retrieve memory information through hardware parameters (e.g., HW_PHYSMEM). On modern Linux, reading /proc/meminfo is more common, but sysctl() remains valid. The other functions are not standard system calls for memory queries.
-
a) Use getmemory()
-
b) Use sysctl()
-
c) Use freemem()
-
d) Use malloc()
B
Correct answer
Explanation
On Unix-like systems (such as BSD and macOS), the sysctl() system call or command is used to retrieve system hardware and kernel configuration parameters, including the total physical memory.
A
Correct answer
Explanation
tar can write to any device or file, including floppy disks. The command 'tar cvf /dev/fd0 files' writes files to floppy drive 0. tar treats devices as files, making it suitable for backups to removable media like floppies or tapes.
A
Correct answer
Explanation
The tar command creates archives that can be written to any storage medium including floppy disks, hard drives, or tapes. While floppies are obsolete technology, tar is fundamentally capable of writing archives to block devices including floppies. The claimed answer is technically correct though the context is dated.
A
Correct answer
Explanation
Serialization in Java is the process of converting an object's state into a byte stream, which can then be persisted into a permanent storage device (like a file or database) or transmitted over a network. Thus, the statement is true.
B
Correct answer
Explanation
Garbage collection only reclaims memory from objects that are no longer referenced. It does not prevent out-of-memory errors - if your program creates objects faster than GC can reclaim them, or holds onto too many live objects, it will still run out of memory. GC manages memory but doesn't guarantee unlimited availability.
-
CPU register is 64 bit
-
It stores information in hard disk as 64-bit format
-
Data in main memory stored in 64-bit
-
OS is developed using 64-bit compiler
-
CPU register is 64 bit
-
It stores information in hard disk as 64-bit format
-
Data in main memory stored in 64-bit
-
OS is developed using 64-bit compiler
C
Correct answer
Explanation
A 64-bit OS manages memory addresses and processes data in 64-bit chunks. The primary distinction is how it handles data in main memory (RAM), using 64-bit addresses rather than 32-bit. CPU registers are typically 64-bit too, but that's a hardware consequence. Hard disk storage format is unrelated to OS bit-architecture.
-
Dynamic Cache
-
Shared Cache
-
Distributed Cache
-
Persistent Cache
C
Correct answer
Explanation
Informatica Lookup transformation cache types include Static, Dynamic, Shared, Persistent, and Re-cache. 'Distributed Cache' is not a valid lookup cache type in Informatica PowerCenter. Options A, B, and D are all valid cache types.
-
ALLOCATE
-
ALLOC
-
ALLMEM
-
LOADM
-
None of the above
B
Correct answer
Explanation
ALLOC is used to allocate memory at runtime in certain systems (possibly mainframe/COBOL context based on the option names). Standard memory allocation functions are malloc, calloc, realloc (C) or new (C++), but this question appears to test knowledge of a specific system's runtime allocation command. Options A, C, and D are not standard allocation commands.