My Computer Forum Computer Science Forum

Go Back   My Computer Forum > Computer Science Forum > Programming

Programming Programming Languages, Interpreters, and Compilers - Assembly, Declarative, Machine, Object Oriented, Iterative


Reply
 
LinkBack Thread Tools Display Modes
May 25th, 2012, 09:25 PM   #1
 
Joined: May 2012
Posts: 15
about compiler

A compiler is _____
a. A combination of computer hardware
b. A program which translates from one high level language to another
c. A program which translates from one high level to a machine level
d. None of above

what will be the best answer for this multiple choice question?
jumbo123 is offline  
 

My Computer Forum is free to register and we welcome everyone!

May 25th, 2012, 11:50 PM   #2
Site Founder
 
julien's Avatar
 
Joined: Dec 2007
Posts: 414
Re: about compiler

A compiler will transform your code from a high-level language to machine code ... Note that a "high-level language" in this case means any language above the machine code (including the asembling language, which is NOT machine code). This means that you'll always need a compiler (unless you're using an hexadecimal editor in order to decompile & tweak your code on the fly).
julien is offline  
May 26th, 2012, 03:39 AM   #3
 
Joined: May 2012
Posts: 15
Re: about compiler

that means answer is ...................(c) .........isn't it ?
jumbo123 is offline  
May 26th, 2012, 09:15 AM   #4
Site Founder
 
julien's Avatar
 
Joined: Dec 2007
Posts: 414
Re: about compiler

Yes, it's a program which translates from one high level to a machine level
julien is offline  
May 26th, 2012, 09:35 AM   #5
 
Joined: May 2012
Posts: 15
Re: about compiler

thank you .............
jumbo123 is offline  
December 22nd, 2012, 04:30 AM   #6
 
Joined: Dec 2012
Posts: 2
Re: about compiler

Its a combination of hardware and check your program in Run time.It indicate your error while run the program.
john mecay is offline  
January 3rd, 2013, 08:30 PM   #7
 
Joined: Dec 2012
Posts: 4
Re: about compiler

option c is more accurate regarding compiler . Compiler like a translator that convert high level languages into a Machine level language means computer understandable form(Binary Form). Compiler is just like a program that read a program and convert into binary form.
vekhamjon is offline  
Reply

  My Computer Forum > Computer Science Forum > Programming

Tags
compiler



Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Turbo C++ compiler related problem chetanbhasin Programming 4 April 3rd, 2011 07:25 AM





Copyright © 2018 My Computer Forum Forum. All rights reserved.