answersLogoWhite

0


Best Answer

Although most languages are either compiled or interpreted, there's actually nothing to prevent you interpreting a language that is normally compiled, or compiling a language that is normally interpreted. BASIC, for instance, is traditionally an interpreted language, however modern implementations use compilation. Moreover, Java is typical of many modern languages that natively use both techniques by default, compiling the high-level source code into an intermediate byte code which is than interpreted to produce the machine code. But, with a suitable compiler implementation, it is possible to produce native machine code programs from Java source code.

When we speak of compiled or interpreted languages we're usually referring to the language's standard, if it has one. C and C++ are standardised and both are compiled, but there's nothing to prevent them from being interpreted. BASIC, on the other hand, is non-standard because it has such a wide-variety of variants, some of which are interpreted, some of which compile to byte code (which is then interpreted) and some of which compile to native machine code. Non-standard languages are generally non-portable therefore you have to look at the specific implementation to determine if it is compiled, interpreted, or both compiled and interpreted.

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Which programming language is compiler type and which is interpreter type?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What type of software translates a programming language into machine language for one type of machine?

A compiler and/or an assembler.


Which type of translater is used by GW BASIC either compiler or interpreter?

its an interpreter


Types of programming language that is machine independent?

FORTRAN (FORmula TRANslator) is the best-known earliest example of machine independent language. This is where the language is not dependent on the characteristics of the computer. COBAL (COmmon Business-Orientated Language) is the other type of programming language that is machine independent. COBAL was developed by the US Navy for business applications.


Is qbasic a high level language?

The QBASIC program actually comes in 2 different flavors... A> QBASIC interpreter program: QBASIC Version 1.1 B> QBASIC compiler program: QBASIC 4.5/or, QB64/or, -etc. ...so, the answer is that this programming language comes in both forms: 'interpreter/compiler' versions; and, you have to select which of these you would prefer to download and use. *NOTE*: The compiler version of the language tends to be much larger; whereas, the interpreter version of the language tends to be small/very compact, indeed; thus, the interpreter tends to take up far less disk space. Many people start off their programming career by using QBASIC version 1.1 'interpreter' program; in order to learn 'how to' program. The interpreter version of the program can only create plain text (.bas) files; the which code CANNOT be shared with others; (not unless the persons who you are sharing this type of code with do already have a copy of the QBASIC interpreter program installed on their own computer). Then, later on, down the line...when they have become fully capable programmers themselves; they go and download a QBASIC 'compiler' program version, instead; which will allow them to go and create stand alone (.exe) program files that they can share with anybody. This is because (.exe) program files can RUN/execute entirely independently of the QBASIC program itself.


What is basic interpreter?

An interpreter, in computer programming, is software that takes an accepted syntax, and "interprets" it for the processor, which then executes the results of the interpretation. This is different than a compiler, which directly outputs machine code into a separate binary file (C++ falls in this category), and also different from a script, which is typically run without an integrated, interactive debugging environment (Perl falls in this category). BASIC is a programming language that was designed to be a beginner's programming language, lacking many features that would be found in many "complicated" languages, such as object-oriented programming, template programming, etc. Many other features, such as function calls, were made explicit compared to other similar languages. For example, in most languages, you would simply type the name of a function to execute it, while in BASIC, you would use GOSUB to explicitly call the function.

Related questions

What type of software translates a programming language into machine language for one type of machine?

A compiler and/or an assembler.


Which type of translater is used by GW BASIC either compiler or interpreter?

its an interpreter


Why cant you can do all programs in one compiler?

Not all programs are written in the same programming language. Every compiler can translates only one type of language into object code.


Types of programming language that is machine independent?

FORTRAN (FORmula TRANslator) is the best-known earliest example of machine independent language. This is where the language is not dependent on the characteristics of the computer. COBAL (COmmon Business-Orientated Language) is the other type of programming language that is machine independent. COBAL was developed by the US Navy for business applications.


What are the names of 2 type of language translators?

Two types of language translators are: a compiler, which translates the entire source code into machine code before running the program, and an interpreter, which translates and executes the source code line by line.


Is qbasic a high level language?

The QBASIC program actually comes in 2 different flavors... A> QBASIC interpreter program: QBASIC Version 1.1 B> QBASIC compiler program: QBASIC 4.5/or, QB64/or, -etc. ...so, the answer is that this programming language comes in both forms: 'interpreter/compiler' versions; and, you have to select which of these you would prefer to download and use. *NOTE*: The compiler version of the language tends to be much larger; whereas, the interpreter version of the language tends to be small/very compact, indeed; thus, the interpreter tends to take up far less disk space. Many people start off their programming career by using QBASIC version 1.1 'interpreter' program; in order to learn 'how to' program. The interpreter version of the program can only create plain text (.bas) files; the which code CANNOT be shared with others; (not unless the persons who you are sharing this type of code with do already have a copy of the QBASIC interpreter program installed on their own computer). Then, later on, down the line...when they have become fully capable programmers themselves; they go and download a QBASIC 'compiler' program version, instead; which will allow them to go and create stand alone (.exe) program files that they can share with anybody. This is because (.exe) program files can RUN/execute entirely independently of the QBASIC program itself.


What is basic interpreter?

An interpreter, in computer programming, is software that takes an accepted syntax, and "interprets" it for the processor, which then executes the results of the interpretation. This is different than a compiler, which directly outputs machine code into a separate binary file (C++ falls in this category), and also different from a script, which is typically run without an integrated, interactive debugging environment (Perl falls in this category). BASIC is a programming language that was designed to be a beginner's programming language, lacking many features that would be found in many "complicated" languages, such as object-oriented programming, template programming, etc. Many other features, such as function calls, were made explicit compared to other similar languages. For example, in most languages, you would simply type the name of a function to execute it, while in BASIC, you would use GOSUB to explicitly call the function.


What is the definition of datatypes in programming?

A data type defines how data is represented. All data is obviously represented by a sequence of binary values, however, the data type determines how that value is to be interpreted by the language compiler. Object oriented programming languages use classes to define data types, which not only defines the representation of data but also which operations are valid for the type.


What does Binary code use to create a type of Morse code that the computer understands?

Binary code is the native language of the machine; no translation is necessary. However, the binary encoded data may be abstract, high-level instruction code (program source code) that must be compiled or interpreted in order to produce the required machine code the computer understands. A software program is used to perform this translation; each programming language provides its own compiler and/or interpreter specific to each machine type and operating system (the platform).


What are the Various compilers of different language?

A program that translates source code into object code. The compiler derives its name from the way it works, looking at the entire piece of source code and collecting and reorganizing the instructions. Thus, a compiler differs from an interpreter, which analyzes and executes each line of source code in succession, without looking at the entire program. The advantage of interpreters is that they can execute a program immediately. Compilers require some time before an executable program emerges. However, programs produced by compilers run much faster than the same programs executed by an interpreter.Every high-level programming language (except strictly interpretive languages) comes with a compiler. In effect, the compiler is the language, because it defines which instructions are acceptable.Because compilers translate source code into object code, which is unique for each type of computer, many compilers are available for the same language. For example, there is a FORTRAN compiler for PCs and another for Apple Macintosh computers. In addition, the compiler industry is quite competitive, so there are actually many compilers for each language on each type of computer. More than a dozen companies develop and sell C compilers for the PC.


What type of language c?

It is a structured, procedural, high level programming language.


Which type of language is java?

Java is truly object oriented programming language