MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPILER DESIGN

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which of the following file is an output of the assembler?
A
Program file
B
Object file
C
Data File
D
Task File
Explanation: 

Detailed explanation-1: -4) Which of the following file is an output of the assembler? Program fileObject fileData FileTask FileAnswer: b. Object FileExplanation: The object file contains the object code, which is an output of an assembler.

Detailed explanation-2: -The output of an assembler is called an object file, which contains a combination of machine instructions as well as the data required to place these instructions in memory.

Detailed explanation-3: -The assembler is used to convert an assembly file into an object file (. obj extension).

Detailed explanation-4: -The lexical token is a string containing a unit of grammar used in the programming language expressed as a series of characters, and it is generated by the lexical analyzer.

Detailed explanation-5: -Explanation: A compiler is a software (or combination of programs) that converts source code written in one programming language (the source language) into code written in another programming language (the target language) (the target language, often having a binary form known as object code). 10.

There is 1 question to complete.