Compiler Unit 1 Quiz

Compiler Unit 1 Quiz

12th Grade

10 Qs

quiz-placeholder

Similar activities

Computer Science ALevel

Computer Science ALevel

10th - 12th Grade

15 Qs

A Level Translators Quiz

A Level Translators Quiz

12th Grade

11 Qs

Errors in Python

Errors in Python

9th - 12th Grade

12 Qs

Python variables and Data types

Python variables and Data types

10th - 12th Grade

10 Qs

Translators

Translators

9th - 12th Grade

15 Qs

Python Basics - Prior Knowledge Check

Python Basics - Prior Knowledge Check

11th - 12th Grade

6 Qs

Khan Academy - Syntax, runtime, and logic errors

Khan Academy - Syntax, runtime, and logic errors

12th Grade

8 Qs

Hardware and Software Basics

Hardware and Software Basics

12th Grade

10 Qs

Compiler Unit 1 Quiz

Compiler Unit 1 Quiz

Assessment

Quiz

Computers

12th Grade

Easy

Created by

PRIYA PRIYA

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main function of a compiler?

To translate source code into target code

To execute programs line by line

To optimize machine code

To manage memory allocation

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a type of translator?

Interpreter

Compiler

Debugger

Assembler

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the lexical analysis phase produce?

Object code

Syntax tree

Tokens

Intermediate code

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which phase of the compiler checks for semantic errors?

Lexical analysis

Syntax analysis

Code generation

Semantic analysis

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of code optimization?

To create a symbol table

To check for syntax errors

To reduce redundant code

To generate machine code

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which tool is used to generate syntax analyzers?

Code Generators

Scanner Generator

Parser Generators

Data-Flow Engines

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does an assembler do?

Optimizes intermediate code

Generates syntax trees

Translates assembly language to machine code

Translates high-level language to machine code

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?