πŸ§ͺ System programming MCQ Quiz Hub

SYSTEMS PROGRAMMING MCQ SET 2

Choose a topic to test your knowledge and improve your System programming skills

Any syntactic construct that can be described by a regular expression can also be described by





βœ… Correct Answer: 3

When a language has the capability to produce new data types, it is said to be:





βœ… Correct Answer: 1

An assembly program contains:





βœ… Correct Answer: 3

Which of the following are Assembler Directives? (i) EQU (ii) ORIGIN (iii) START (iv) END





βœ… Correct Answer: 4

Assembler program is:





βœ… Correct Answer: 3

At the end of parsing,





βœ… Correct Answer: 1

Dead-code elimination in machine code optimization refers to:





βœ… Correct Answer: 2

A parse tree is an annotated parse tree if:





βœ… Correct Answer: 1

In a two pass compiler, during the first pass:





βœ… Correct Answer: 1

A single instruction in an assembly language program contains:





βœ… Correct Answer: 2

Absolute loader demands that the programmer needs to know the:





βœ… Correct Answer: 1

Top-down parsers are predictive parsers, because:





βœ… Correct Answer: 1

In the context of compiler design, β€œreduction in strength” refers to:





βœ… Correct Answer: 1

How many states can a process be in?





βœ… Correct Answer: 4

The parsing technique that avoids back tracking is:





βœ… Correct Answer: 3

A Top-down Parse generates:





βœ… Correct Answer: 3

In an absolute loading scheme, which loader function is accomplished by programmer?





βœ… Correct Answer: 4

Symbol table can be used for:





βœ… Correct Answer: 4

Linking





βœ… Correct Answer: 2

Which of the following is the most general phase-structured grammar ?





βœ… Correct Answer: 2

A compiler for a high level language that runs on one machine and produces code for a different machine is called:





βœ… Correct Answer: 3

The β€˜K’ in LR (K) cannot be:





βœ… Correct Answer: 4

Peep-hole optimization is a form of:





βœ… Correct Answer: 3

An operating system is:





βœ… Correct Answer: 3

A permanent database of a general model of compiler is................





βœ… Correct Answer: 4

Loading operating system from secondary memory to primary memory is called...............





βœ… Correct Answer: 2

Which statement is wrong ?





βœ… Correct Answer: 4

Tasks done in parsing are:





βœ… Correct Answer: 3

YACC builds up ................. parsing table.





βœ… Correct Answer: 1

The action of passing the source program into the proper syntactic class is known as:





βœ… Correct Answer: 2

The dynamic binding occurs during the:





βœ… Correct Answer: 2

A general macro processor is an in built function of:





βœ… Correct Answer: 4

Which of the following is not collision Resolution Technique?





βœ… Correct Answer: 3

Which activity is not included in the first pass of two pass assembler?





βœ… Correct Answer: 4

If you want to execute more than one program at a time, the systems software that are used must be capable of:





βœ… Correct Answer: 4

Non modifiable procedures are called:





βœ… Correct Answer: 3

Which of the statements related to Compilers is wrong ?





βœ… Correct Answer: 3

Which of the following is the most general phase - structured grammar ?





βœ… Correct Answer: 2

Which activity is not included in the first pass of two pass assemblers ?





βœ… Correct Answer: 4

The principle of Locality of reference justifies the use of:





βœ… Correct Answer: 4

Which activity is not included in the first pass of two pass assemblers?





βœ… Correct Answer: 4

Code optimization is responsibility of:





βœ… Correct Answer: 3

Which activity is included in the first pass of two pass assemblers?





βœ… Correct Answer: 4

In two pass assembler the symbol table is used to store:





βœ… Correct Answer: 4

Not an assembler directive





βœ… Correct Answer: 1

In a compiler, the task of scanning the source code, to recognize and classify various elements is known as.





βœ… Correct Answer: 3

An example of a compiler-compiler is:





βœ… Correct Answer: 3

Consider the following program fragment in assembly language. What is the value of ax and cx registers after the completion of the doloop? mov ax, 0h mov cx, 0A h doloop: dec ax loop doloop





βœ… Correct Answer: 2

Consider the following assembly program segment. The contents of the destination register ax (in hexadecimal) and the status of Carry Flag (CF) after the execution of above instructions are: stc mov al, 11010110b mov cl, 2 rcl al, 3 rol al, 4 shr al, cl mul cl





βœ… Correct Answer: 1

Match the description of several parts of a classic optimizing compiler in List - I, with the names of those parts in List - II: List - I (a) A part of a compiler that is responsible for recognizing syntax. (b) A part of a compiler that takes as input a stream of characters and produces as output a stream of words along with their associated syntactic categories. (c) A part of a compiler that understand the meanings of variable names and other symbols and checks that they are used in ways consistent with their definitions. (d) An IR-to-IR transformer that tries to improve the IR program in some way (Intermediate representation). List - II (i) Optimizer (ii) Semantic Analysis (iii) Parser (iv) Scanner Code: (a) (b) (c) (d)





βœ… Correct Answer: 1