Computer Science, asked by BendingReality, 10 months ago

Explain logic and give their type using relevant example.

Explain compiler and interpreter in detail.

Answers

Answered by Anonymous
2

Answer:

In computer science, an interpreter is a computer program that directly executes instructions written in a programming or scripting language, without requiring them previously to have been compiled into a machine language program. An interpreter generally uses one of the following strategies for program execution:

Parse the source code and perform its behavior directly;

Translate source code into some efficient intermediate representation and immediately execute this;

Explicitly execute stored precompiled code[1] made by a compiler which is part of the interpreter system.

Early versions of Lisp programming language and Dartmouth BASIC would be examples of the first type. Perl, Python, MATLAB, and Ruby are examples of the second, while UCSD Pascal is an example of the third type. Source programs are compiled ahead of time and stored as machine independent code, which is then linked at run-time and executed by an interpreter and/or compiler (for JIT systems). Some systems, such as Smalltalk and contemporary versions of BASIC and Java may also combine two and three.[2] Interpreters of various types have also been constructed for many languages traditionally associated with compilation, such as Algol, Fortran, Cobol, C and C++.

While interpretation and compilation are the two main means by which programming languages are implemented, they are not mutually exclusive, as most interpreting systems also perform some translation work, just like compilers. The terms "interpreted language" or "compiled language" signify that the canonical implementation of that language is an interpreter or a compiler, respectively. A high level language is ideally an abstraction independent of particular implementations.

Answered by Anonymous
3

Answer:

A strong economy can undoubtedly boost the progress of a nation.

In order to have progress and growth, a nation needs to take up challenges and projects.

In this case, the economy should be flexible and willing to undertake these challenges.

A strong economy assures the well-being of the citizens, who form the major part of the nation.

When new projects are undertaken, there is an involvement of finance and efforts.

Therefore, the nation should be economically strong and flexible and willing to provide financial assistance.

Similar questions