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

Multiple choice
  1. Virtual memory increases

  2. Larger RAMs are faster

  3. Fewer page faults occur

  4. Fewer segmentation faults occur

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Due to increase in RAM size all the pages required by CPU are available in RAM so page fault chance are less, so virtual memory access chances are less and latency is reduced for secondary memory.

Multiple choice
  1. 8

  2. 10

  3. 12

  4. 15

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Multiple choice
  1. 3

  2. 4

  3. 5

  4. 6

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

ADD A[R0],@ B This is instruction has 3 computational parts. ADD instruction requires 1 machine cycle, A[R0] here R0 is index register which has starting address of index then this index has the block address. This whole operation require 3 machine cycles. Now @ B is indirect addressing. This takes 2 machine cycles. So overall 1 + 3 + 2 = 6 machine cycles

Multiple choice
  1. 2

  2. 3

  3. 4

  4. 5

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Rn $\leftarrow$ PC + 1 PC = M[PC] Program outer is itself a register so incremented in 1 cycle. Now fetching the memory at PC & the value of at address stored in PC takes 2 cycles. So total 1 + 2 = 3 cycles.

Multiple choice
  1. 2

  2. 3

  3. 4

  4. 5

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

R0 $\leftarrow$ R0+ R1 First cycle require to fetch operands two cycles required for this. The next cycle required to use ALU to perform ADD operation. So total cycles required = 3

Multiple choice
  1. Virtual memory implements the translation of a program's address space into physical memory address space.

  2. Virtual memory allows each program to exceed the size of the primary memory.

  3. Virtual memory increases the degree of multi-programming

  4. Virtual memory reduces the context switching overhead.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Virtual memory enables a program to exceed the size of primary memory so it increases degree of multi-programming. Since data required by executing program is available here so context switching is reduced. But virtual memory doesn't translate program's address space into physical memory.

Multiple choice
  1. always decrease the number of page faults

  2. always increase the number of page faults

  3. sometimes increase the number of page faults

  4. never affect the number of page faults

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

During F1F0 page replacement policy, due to increase in the no. of page frames in memory should decrease the no. of page faults since more frames can be kept there. But due to Belady's Anomaly after certain limit or in some page access instances no. of page faults are high.

Multiple choice
  1. RAM

  2. Disk

  3. ROM

  4. On-chip cache

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Swap space is the memory space where the part of the program not currently in main memory for execution is stored, this program part can be swapped into memory when required. This space is generally in disk.

Multiple choice
  1. the large amount of internal fragmentation

  2. the large amount of external fragmentation

  3. the large memory overhead in maintaining page tables

  4. the large computation overhead in the translation process

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

32 bit virtual address, i.e. $2^{32}$ kB of virtual memory & 1 kB page size. So total pages = $2^{32}$ So. we need to maintain a page table of $2^{32}$ rows, this require 4 GB main memory which is quite impractical due to large memory overhead

Multiple choice
  1. better disk throughput but poorer disk space utilization

  2. better disk throughput and better disk space utilization

  3. poorer disk throughput but better disk space utilization

  4. poorer disk throughput and poorer disk space utilization

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Using larger block size in a fixed block size system lead to poor disk space utilization due to data items which are very small comparable to block size cause fragmentation. But it leads to better disk through put since no. of blocks needs to fetch & replace become less.

Multiple choice
  1. 1.5 ns

  2. 2 ns

  3. 3 ns

  4. 4 ns

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Multiple choice
  1. 8 KB

  2. 12 KB

  3. 16 KB

  4. 20 KB

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Multiple choice
  1. Efficient implementation of multi-user support is no longer possible

  2. The processor cache organization can be made more efficient now

  3. Hardware support for memory management is no longer needed

  4. CPU scheduling can be made more efficient now

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation