Search Header Logo

Compiler Front-End Analysis

Authored by Ryan Coughlin

Computers

11th - 12th Grade

Used 1+ times

Compiler Front-End Analysis
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which of the following BNF rules uses recursion?

<Number> ::= <Digit> | <Digit><Number>

<Name> ::= <Forename><Surname>

<Age> ::= <Digit>|<Digit><Digit>

<Name> ::= <Name>

2.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Media Image

Choose all the valid variables sequences that match these BNF rules ...

C

F9

X,AB1,Z2

1,2,3,4

A,B,C,D

3.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Media Image

Choose all the valid expressions that are recognised by this set of BNF rules ...

4+75*3

9

99-76/2+3

4*5*6*7

2+2

4.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Media Image

Choose all the valid expressions that are recognised by this set of BNF rules ...

a-b

a+b*c

a*b*c

ab+c

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which are part of compiler front-end analysis?

lexical analysis

syntax analysis

semantic analysis

intermediate code generation

spelling analysis

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which part breaks the line of code into tokens?

lexical analysis

syntax analysis

semantic analysis

intermediate code generation

code optimization

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which part breaks creates the symbol table?

lexical analysis

syntax analysis

semantic analysis

intermediate code generation

code optimization

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?