Compiler Front-End Analysis

Compiler Front-End Analysis

11th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

Python Chapter

Python Chapter

8th Grade - University

12 Qs

Understanding Program Compilation

Understanding Program Compilation

12th Grade

10 Qs

Python Basics & Syntax

Python Basics & Syntax

10th - 12th Grade

20 Qs

2.5 Translators, Compilers & Interpreters

2.5 Translators, Compilers & Interpreters

12th Grade

15 Qs

Understanding Compilers and Their Functions

Understanding Compilers and Their Functions

11th Grade

15 Qs

GCE computer science - Program construction

GCE computer science - Program construction

12th Grade

18 Qs

1.2.2. Applications Software

1.2.2. Applications Software

12th Grade

14 Qs

Programming lesson 1 - Syntax

Programming lesson 1 - Syntax

9th Grade - University

18 Qs

Compiler Front-End Analysis

Compiler Front-End Analysis

Assessment

Quiz

Computers

11th - 12th Grade

Hard

Created by

Ryan Coughlin

Used 1+ times

FREE Resource

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

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?