The physical address 12345 can be represented by the logical address:

  1. 1234:5

  2. 1230:45

  3. Both (a) and (b) are wrong

  4. Both (a) and (b) are correct


Correct Option: D

AI Explanation

To answer this question, we need to understand the concepts of physical address and logical address.

A physical address is the actual location of a specific block of data in the physical memory. It is represented by a unique number or address.

A logical address, on the other hand, is an address that is generated by the CPU and used by the CPU to access memory. It does not correspond directly to the physical address. The logical address is translated to a physical address by the memory management unit (MMU) in the CPU.

In the given question, the physical address is 12345. We need to determine the corresponding logical address.

Option A) 1234:5 - This option is incorrect because it represents the logical address as 1234:5. The correct format for a logical address is usually segment:offset, where segment represents a segment of memory and offset represents the distance from the start of the segment to the desired data. The given option does not follow this format.

Option B) 1230:45 - This option is incorrect because it also does not follow the correct format for a logical address.

Option C) Both (a) and (b) are wrong - This option is incorrect because option B is incorrect, but option A is correct. Option A represents the logical address as 1234:5, which is a valid format for a logical address.

Option D) Both (a) and (b) are correct - This option is correct because option A represents the correct logical address format of 1234:5.

Therefore, the correct answer is option D.

Find more quizzes: