Objective-type questions System Software and Operating System - Part-04 | 10 Question and Answer


 Question: A parser which is a variant of top-down parsing without backtracking is

A.    Recursive Descend.

B.     Operator Precedence.

C.    LL (1) parser.

D.    LALR Parser.

Answer: A. Recursive Descend.

 

 

Question: The expansion of nested macro calls follows

A.    FIFO Rule.

B.     LIFO rule.

C.    LILO rule.

D.    Priority rule

Answer: B. LIFO rule.

 

 

Question: In a two-pass assembler, the task of the Pass II is to

A.    Separate the symbol, mnemonic opcode and operand fields.

B.     Build the symbol table.

C.    Construct intermediate code.

D.    Synthesize the target program

Answer: D. Synthesize the target program

 

 

Question: A linker program

A.    place the program in the memory for the purpose of execution.

B.     Relocates the program to execute from the specific memory area allocated to it.

C.    Links the program with other programs needed for its execution.

D.    Interfaces the program with the entities generating its input data.

Answer: C. links the program with other programs needed for its execution.

 

 

Question: A critical section is a program segment

A.    Which should run in a certain specified amount of time.

B.     Which avoids deadlocks.

C.    Where shared resources are accessed.

D.    Which must be enclosed by a pair of semaphore operation, P and V.

Answer: C. where shared resources are accessed.

 

 

Question: An operating system contains 3 user processes each requiring 2 units of resource R. the minimum number of units of R such that no deadlocks will ever arise is

A.    4.

B.     3.

C.    5.

D.    6.

Answer: A. 4.

 

 

Question: Locality of reference implies that the page reference being made by a process

A.    Will always be to the page used in the previous page reference.

B.     Is likely to be the one of the pages used in the last few page references.

C.    Will always be to one of the pages existing in memory.

D.    Will always led to a page fault.

Answer: B. Is likely to be the one of the pages used in the last few page references.

 

 

Question: Which of these is not a part of synthesis phase

A.    Obtain machine code corresponding to the mnemonic from the mnemonics table

B.     Obtain address of a memory operand from the symbol table

C.    Perform LC processing

D.    Synthesize a machine instruction of the machine from of a constant

Answer: C. Perform LC processing

 

 

Question: The syntax of the assembler directive EQU is

A.    EQU <address space>

B.     <symbol>EQU <Address space>

C.    <symbol>EQU

D.    None of the above

Answer: B. < symbol>EQU <Address space>

Post a Comment