Basics
1.

Users write the programs in which language?

A.  

Low-level Language

B.  

High-Level Language

C.  

Decimal-Format

D.  

Middle-Level Language

2.

Which computer program accepts the high-level language and converts it into assembly language?

A.  

Interpreter

B.  

Linker

C.  

Assembler

D.  

Compiler

3.

Does the compiler program translate the whole source code in one step?

A.  

No

B.  

Depends on the Compiler

C.  

Don't Know

D.  

Yes

4.

Which of the following file is an output of the assembler?

A.  

Program file

B.  

Object file

C.  

Data File

D.  

Task File

5.

Which tool is used for grouping of characters in tokens in the compiler?

A.  

Parser

B.  

Code optimizer

C.  

Code generator

D.  

Scanner

6.

What is the linker?

A.  

It is always used before the program execution.

B.  

It is required to create the load module.

C.  

It is the same as the loader

D.  

None of the above

7.

Parsing is categorized into how many types?

A.  

three types

B.  

four types

C.  

two types

D.  

five types

8.

In which parsing, the parser constructs the parse tree from the start symbol and transforms it into the input symbol.

A.  

Bottom-up parsing

B.  

Top-down parsing

C.  

None of the above

D.  

Both a and b

9.

Which derivation is generated by the top-down parser?

A.  

Right-most derivation in reverse

B.  

Left-most derivation in reverse

C.  

Right-most derivation

D.  

Left-most derivation

10.

Which derivation is generated by the bottom-up parser?

A.  

Right-most derivation in reverse

B.  

Left-most derivation in reverse

C.  

Right-most derivation

D.  

Left-most derivation