in Computer Knowledge retagged by
4,355 views
2 votes
2 votes
A. It converts one statement of a program into machine language.

B.An object code produced by a compiler is permanently saved for future.

C.It reports all errors in a program with line numbers.

D.It produces faster object code than an interpreter.
in Computer Knowledge retagged by
28 points
4.4k views

1 Answer

3 votes
3 votes

Though all statements are not fully correct from a Computer Engineer point of view, here the answer should be A. A compiler converts the whole source code to object code where as an interpreter does this line by line.


Only meant for CS people.

B - An object code produced by a compiler is permanently saved for future - object code is stored as a file -- but what happens if the hard drive crashes -- so permanent is not technically correct.

C - It reports all errors in a program with line numbers - Not necessary. A compiler can stop on the first error.

D - Usually true-- but depends on the compilation flag and optimizations.

edited by
by
8.3k points

2 Comments

It converts one statement of a program into machine language.

Should be incorrect because it convert whole statement of program into machine language

It produces faster object code than an interpreter. Seems correct

If I am wrong please give proper explanation and let me correct.
0
0
Edited the answer.
0
0
Answer:

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true