Search Header Logo

Compiler Design Viva 2

Authored by Revathi K

Computers

University

Used 1+ times

Compiler Design Viva 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Leaf nodes in a parse tree indicate?

  1. sub-terminals

  1. half-terminals

  1. non-terminals

  1. terminals

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which language is accepted by the push-down automata?

  1. a.Type 0 language

  1. b.Type 1 language

  1. c.Type 2 language

d.b.Type 3 language

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

In the compiler, the function of using intermediate code is:

  1. a.to improve the register allocation

  1. b.to increase the error reporting & recovery.

  1. c.to make semantic analysis easier.

  1. d.to increase the chances of re-using the machine-independent code optimizer in other compilers.

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is not a characteristic of the compiler?

  1. a.More execution time

  1. b.Debugging process is slow

  1. c.The execution takes place after the removal of all syntax errors

  1. d.Firstly scans the entire program and then transforms it into machine-understandable code

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which phenomenon happens when the non-terminal on the left side is repeated as the first symbol on the right side?

  1. a.Left-most derivation

  1. b.Left recursion

  1. c.Left factoring

  1. d.Left parsing

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The compiler can detect what type of errors?

  1. a.neither logical nor grammatical error

  1. b.logical errors only

  1. c.grammatical errors only

  1. d.both grammatical and logical errors

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which parser is known as the shift-reduce parser?

  1. a.Bottom-up parser

b.Top-down parser

c.Both Top-down and bottom-up

d.None of the Above

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?