Compiler Design Viva 2

Compiler Design Viva 2

University

10 Qs

quiz-placeholder

Similar activities

TECHNICAL C PROGRAM

TECHNICAL C PROGRAM

University

10 Qs

COMPILER DESIGN  QUIZ

COMPILER DESIGN QUIZ

University

10 Qs

QUIZ CD S5 7-4-22

QUIZ CD S5 7-4-22

University

10 Qs

Compiler Design

Compiler Design

University

6 Qs

CD S6 QUIZ 29-03-22

CD S6 QUIZ 29-03-22

University

10 Qs

Practice Quiz 1 - CS110

Practice Quiz 1 - CS110

University

13 Qs

Topic 1-2: Introduction to Computer & Programming Language

Topic 1-2: Introduction to Computer & Programming Language

University

13 Qs

ERTS_QUIZ_26.08.20

ERTS_QUIZ_26.08.20

University

10 Qs

Compiler Design Viva 2

Compiler Design Viva 2

Assessment

Quiz

Computers

University

Hard

Created by

Revathi K

Used 1+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?