Compiler Design Viva 2

Compiler Design Viva 2

University

10 Qs

quiz-placeholder

Similar activities

WINTER 24-25 CD

WINTER 24-25 CD

University

10 Qs

Lexical and Syntax Analysis

Lexical and Syntax Analysis

University

11 Qs

Compiler Parsing Techniques

Compiler Parsing Techniques

University

10 Qs

TECHIE BLAZERS

TECHIE BLAZERS

University

10 Qs

Syntax Testing

Syntax Testing

University

10 Qs

CD S6 QUIZ 29-03-22

CD S6 QUIZ 29-03-22

University

10 Qs

CD 14-5-2021

CD 14-5-2021

University

9 Qs

Google DevFest Quiz 2024: Riddles That Will Fool You! 🕵️‍♂️

Google DevFest Quiz 2024: Riddles That Will Fool You! 🕵️‍♂️

University

15 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?