Compiler Design Viva 2

Compiler Design Viva 2

University

10 Qs

quiz-placeholder

Similar activities

compiler design quiz

compiler design quiz

University

15 Qs

CSNP-04103 Chapter 2 - Components & Data Types

CSNP-04103 Chapter 2 - Components & Data Types

University

10 Qs

ICPTP L1: Programming Languages

ICPTP L1: Programming Languages

University

10 Qs

4.2 Types of Programming Language, Translators, and Integrated D

4.2 Types of Programming Language, Translators, and Integrated D

10th Grade - University

11 Qs

CD QUIZ S6 WS 22-3-22

CD QUIZ S6 WS 22-3-22

University

10 Qs

COMPILER DESIGN QUIZ 28.3.2023

COMPILER DESIGN QUIZ 28.3.2023

University

10 Qs

Compiler Design -Lexical analysis and Syntax analysis

Compiler Design -Lexical analysis and Syntax analysis

University

12 Qs

Syntax Testing

Syntax Testing

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?