ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Data Warehouse >> SAS
 
 


 

 
 Teradata interview questions  Teradata Interview Questions (183)
 Business Objects interview questions  Business Objects Interview Questions (756)
 Cognos interview questions  Cognos Interview Questions (853)
 Informatica interview questions  Informatica Interview Questions (1626)
 Crystal Enterprise Suite interview questions  Crystal Enterprise Suite Interview Questions (29)
 Actuate interview questions  Actuate Interview Questions (35)
 Ab Initio interview questions  Ab Initio Interview Questions (172)
 Data Stage interview questions  Data Stage Interview Questions (564)
 SAS interview questions  SAS Interview Questions (557)
 Micro Strategy interview questions  Micro Strategy Interview Questions (37)
 ETL interview questions  ETL Interview Questions (196)
 Data Warehouse General interview questions  Data Warehouse General Interview Questions (216)
Question
what is the difference between compiler and interpreter?
give any one example (software product) that act as a
interpreter?
 Question Submitted By :: SAS
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
1.Compiler checks syntax of programme where as Interpreter
checks the keywords of a prog.

2. compiler checks at a time all the prog, But interpreter
checks simultaneously in the eidtor.

3.Interpretor provides colour coding to the prog and helps
in self debugging while writing a prog.
 
Is This Answer Correct ?    335 Yes 150 No
Rajaanku11
 
Answer
# 2
A compiler compiles the source code in a form that can be
used directly by the computer. At run time the code is to
run the programme is already there.

An interpreter reads each line of the source code and
converts it to machine code on the fly. This happens every
time the programme is run. Consequently it is very slow as
it is converting source code to machine code while the
programme is running.

A compiler does it once and thats it.

So the trade off is speed.

DOS BASIC was interpreted. QBASIC could be either. VB, C++
and all modern high level languages are compliled. Nobody
uses an interpreter for anything serious although an
interpreted programme can be a good teaching aid
 
Is This Answer Correct ?    235 Yes 58 No
Sanjay
 
 
 
Answer
# 3
compiler takes whole program at a time and executes it.....


where as interpreter executes the program line by line.....
 
Is This Answer Correct ?    147 Yes 27 No
Praveena
 
Answer
# 4
Compiler vs. Interpreter

An interpreter translates some form of source code into a
target representation that it can immediately execute and
evaluate. The structure of the interpreter is similar to
that of a compiler, but the amount of time it takes to
produce the executable representation will vary as will the
amount of optimization.

Compiler characteristics:
* spends a lot of time analyzing and processing the program
* resulting executable is some form of machine- specific
binary code
* the computer hardware interprets (executes) the resulting code
* program execution is fast

Interpreter characteristics:
* relatively little time is spent analyzing and processing
the program
* the resulting code is some sort of intermediate code
* the resulting code is interpreted by another program
* program execution is relatively slow
 
Is This Answer Correct ?    147 Yes 44 No
Smile555
 
Answer
# 5
The main difference between an compiler and an interpreter
is that a compiler executes the program entirely at a time
and that of a interpreter is that it goes on line by line
storing each lines output separately i.e interpreter
executes only when there is a need for the execution. the
best example of a software product is that acts as an
interpreter is a JVM which is nothing but a interpreter. lot
of them say that java is a language but there as as many
proofs that argue that java is a package to those who say it
a language.

* one more diff. is that the time of execution of a compiler
is very high when compared to an interpreter .........
 
Is This Answer Correct ?    53 Yes 25 No
Vedavyas
 
Answer
# 6
compiler compile the source code while interpreter compile
the code that is allready compiled that is in the form of
bytecode
compiler scan whole code at once so it is fast incompare
with interpreter while interpreter comiled the byte code
line by line and convert in machine code so it is slow in
compare with compiler
 
Is This Answer Correct ?    71 Yes 44 No
Mehboob Alam
 
Answer
# 7
Compiler:-

-Generates code to implement meaning of a source program in
the execution domain.
-Checks the code entirely in one go.
-It checks the legality of the operations(assigning or
manipulating variables)

Interpreteres:-

-bridges execution gap without generating a machine
language program.
-Meaning of source statement is implemented by finding
appropriate data manipulation routines and invokes it with
appropriate parameters.(instead of code generation)
-works line by line
-Avoiding generation of machine language makes interpreter
portable.
 
Is This Answer Correct ?    47 Yes 22 No
Anuja
 
Answer
# 8
-An interpreter translates some form of source code into a
target representation that it can immediately execute and
evaluate. The structure of the interpreter is similar to
that of a compiler, but the amount of time it takes to
produce the executable representation will vary as will the
amount of optimization.

-Interpreter excuts bytecode line by line, and it converts
byte code into Machine code.


-compiler takes whole program at a time and executes it.....


-where as interpreter executes the program line by line.....
 
Is This Answer Correct ?    39 Yes 14 No
P.rakesh Kumar Reddy
 
Answer
# 9
Compiler compiles source code into byte code, it takes whole
code and executes,

Interpreter excuts bytecode line by line, and it converts
byte code into Machine code.

Compiler is faster compater to Interpreater.


By,
Durgam S
 
Is This Answer Correct ?    44 Yes 24 No
Sri
 
Answer
# 10
A compiler, in general, reads higher level language computer
code and converts it to either p-code or native machine
code. An interpreter runs directly from p-code or an
interpreted code such as Basic or Lisp. Typically, compled
code runs much faster, is more compact and has already found
all of the syntax errors and many of the illegal reference
errors. Interpreted code only finds such errors after the
application attempts to interpret the affected code.
Interpreted code is often good for simple applications that
will only be used once or at most a couple times, or maybe
even for prototyping. Compiled code is better for serious
applications.
 
Is This Answer Correct ?    45 Yes 32 No
Gautam Menariya
 

 
 
 
Other SAS Interview Questions
 
  Question Asked @ Answers
 
how do we get duplicate observations in a separate dataset? CitiGroup 6
if we dont want to print output what we have to do..???give syntax..??? GSK-GlaxoSmithKline 8
How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data set to a second data set, and the non-matches of the right-most data set to a third data set. Accenture 10
what are system option ? give few examples ? what are dataset options and dataset statements ? if there is a keep option and keep statement ? which one is executed first ? Difference between a WHERE statement and IF statement ? what is the advantage of using WHERE statement option on the dataset ? Satyam 1
How would you code a macro statement to produce information on the SAS log? This statement can be coded anywhere.   8
If youíre not wanting any SAS output from a data step, how would you code the data statement to prevent SAS from producing a set? Accenture 8
We have a string like this "kannafromsalembut" ,from this i want to get only "fromsal" (but one condition with out using substring function)here we can not use scan because in the given string there is no delimeter? so give ans without out using substring ?   4
what is intially documentation in sas? Accenture 1
I need to find the numeric field which contains blank in between..Ex:123 456...there is blank in between the 123 456..I need to know if there is any SAS function to find a field.. Please suggest... TCS 2
How would you include common or reuse code to be processed along with your statements? Accenture 3
What is SAS Information Map Studio and its purpose ? TCS 1
in which companies SAS openings are there? List of companies using SAS technology. TCS 13
 
For more SAS Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright © 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com