Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

COMPILER DESIGN Introduction Quiz

Total questions: 26

Worksheet time: 13mins

Name
Class
Date
1.

What is the main purpose of lexical analysis in compiler design?

a)

To debug the syntax errors

b)

To execute the program

c)

To break the input program into a sequence of tokens

d)

To optimize the code

2.

1. What is a compiler?

a)

system program that converts instructions to machine language


b)

system program that converts machine language to high-level language

c)

system program that writes instructions to perform

d)

None of the mentionedGenerating machine code

3.

What is a token in compiler design?

a)

A type of currency used in programming

b)

A small insect that causes errors in code

c)

A function used to compile code

d)

A sequence of characters that represents a single element of a programming language

4.

What is the role of a lexer in lexical analysis?

a)

To break the input into tokens

b)

To optimize the code for faster execution

c)

To analyze the syntax of the input

d)

To format the output into a readable form

5.

Which of the following is not a part of lexical analysis?

a)

Semantic analysis

b)

Syntax analysis

c)

Code generation

d)

Code optimization

6.

What is the purpose of regular expressions in lexical analysis?

a)

To change the font style of the input text

b)

To define patterns for identifying tokens in the input text

c)

To count the number of characters in the input text

d)

To create random patterns in the input text

7.

What is a lexeme in lexical analysis?

a)

Smallest unit of a language with semantic meaning

b)

A type of flower

c)

A musical instrument

d)

A type of punctuation mark

8.

Which of the following is not a type of token in lexical analysis?

a)

Keywords

b)

Variables

c)

Operators

d)

Functions

9.

What is the output of the lexical analysis phase in compiler design?

a)

Sequence of tokens

b)

Syntax tree

c)

List of keywords

d)

Machine code

10.

What is the significance of lexical analysis in compiler design ?

a)

It converts the input program into a sequence of tokens

b)

It checks for syntax errors in the program

c)

It optimizes the code for better performance

d)

It generates the final machine code

11.

What is a token in compiler design ?

a)
A function that converts code into machine language
b)
A sequence of characters that represents a single element of a programming language
c)
A type of currency used in programming
d)
A tool for debugging code
12.

what is the difference between a lexeme and token ?

a)
A lexeme is the smallest unit of meaning in a language, while a token is an instance of a sequence of characters in a particular lexical category.
b)
A lexeme is a type of token used in computer programming, while a token is a type of currency used in some countries.
c)
A lexeme is a type of token used in board games, while a token is a type of currency used in some countries.
d)
A lexeme is a type of token used in linguistics, while a token is a type of currency used in some countries.
13.

what is a mission statement reflects in new educational policy

a)
Core values, goals, and purpose of the educational policy
b)
The budget allocation for educational policy
c)
The history of educational policy
d)
The number of students enrolled in educational policy
14.

what is a vision statement reflects in new educational policy

a)
Long-term goals and aspirations for the education system
b)
Current challenges and obstacles in the education system
c)
Historical achievements of the education system
d)
Short-term financial objectives for the education system
15.

What is the diference between vision and mission of new education policy ?

a)
Vision is theoretical, while mission is practical.
b)
Vision is the ultimate goal, while mission is the specific actions and objectives.
c)
Vision is internal, while mission is external.
d)
Vision is short-term, while mission is long-term.
16.

what is program specific outcome in new educational policy ?

a)
Specific knowledge, skills, and attitudes that students are expected to demonstrate upon completion of a program or course
b)
Attitudes that are not important for students to demonstrate
c)
Specific knowledge and skills that students are not expected to demonstrate
d)
General knowledge and skills that students are expected to demonstrate
17.

What is the difference between a PO and PSO in educational policy ?

a)
PO is only applicable to undergraduate programs, while PSO is only applicable to graduate programs
b)
PO focuses on specific outcomes, while PSO focuses on overall outcomes
c)
PO focuses on the overall outcomes of a program, while PSO focuses on the specific outcomes related to a particular program.
d)
PO and PSO are the same thing
18.

As per NEP 2020, B.Tech refers to

a)

Subject

b)

Program

c)

Course

d)

None of the above

19.

What is the difference between course objective and course outcome ?

a)
Course objective is only for short-term goals, while course outcome is for long-term goals
b)
Course objective focuses on the overall goals of the course, while course outcome focuses on specific knowledge and skills gained.
c)
Course objective is about specific knowledge and skills gained, while course outcome focuses on the overall goals of the course
d)
Course objective and course outcome are the same thing
20.

how do we know that a course objective has attained

a)
By flipping a coin
b)
Through assessments and evaluations
c)
Through random selection
d)
By guessing
21.

what are attainments in evaluation of a program ?

a)
Failures or setbacks
b)
Budget or funding
c)
Location or setting
d)
Achievements or outcomes
22.

when is national education policy enacted(INDIAN) ?

a)
November 5, 2021
b)
January 15, 2018
c)
July 29, 2020
d)
March 10, 2019
23.

what is OBE ?

a)
Outcome-Based Education
b)
Organization of Business Executives
c)
Online Business Education
d)
Open Book Examination
24.

education must develop cognitive capacities like critical thinking and problem-solving attitude– but also social, ethical, and emotional capacities and dispositions.

a)

this is reflected in new education policy

b)

designed by AICTE

c)

designed by UGC

d)

parliament

25.

The apex body in India for technical education is

a)
Indian Council of Agricultural Research (ICAR)
b)
National Assessment and Accreditation Council (NAAC)
c)
University Grants Commission (UGC)
d)
All India Council for Technical Education (AICTE)
26.

The course out comes for compiler design lab in B.Tech Program

a)
The history of compiler design
b)
The best programming language for compiler design
c)
The impact of compiler design on the environment
d)
Expected learning objectives or goals for the lab