Operating System - Study Mode

[#371] If the number of bits in a virtual address of a program is 16 and the page size is 0.5 K bytes, the number of pages in the virtual address space is
Correct Answer

(D) 128

Explanation

Solution: If the number of bits in a virtual address of a program is 16 and the page size is 0.5 K bytes, the number of pages in the virtual address space is 128.

[#372] Which table is a permanent database that has an entry for each terminal symbol.
Correct Answer

(A) Terminal table

Explanation

Solution: Terminal table is a permanent database that has an entry for each terminal symbol.

[#373] The function(s) of the Syntax phase is(are)
Correct Answer

(A) to recognize the major constructs of the language and to call the appropriate action routines that will generate the intermediate form or matrix for these constructs.

Explanation

Solution: The functions of the Syntax phase are to recognize the major constructs of the language and to call the appropriate action routines that will generate the intermediate form or matrix for these constructs.

[#374] Swapping
Correct Answer

(C) allows each program in turn to use the memory

Explanation

Solution: Swapping refers to the exchange of two or more things. For example, in programming data may be swapped between two variables or things may be swapped between two people. Swapping may specifically refer to: In computer systems, an older form of memory management, similar to paging.

[#375] A disk scheduling algorithm in an operating system causes the disk arm to move back and forth across the disk surface in order to service all requests in its path. This is a
Correct Answer

(C) Scan

Explanation

Solution: A disk scheduling algorithm in an operating system causes the disk arm to move back and forth across the disk surface in order to service all requests in its path. In SCAN disk scheduling algorithm, head starts from one end of the disk and moves towards the other end, servicing requests in between one by one and reach the other end.