Computer Science, asked by amanshanu9, 9 months ago

OPRON
Code A contains a set of eight lines that our tentimes
in different points of the program. This onde is based to
a programmer who puts the act of eight lines in a
function definition and calls them at the ten points in the
program. Assume this new code to be Code B. Which
code will run faster using an interpreter
Code​

Answers

Answered by SuyogWadke
12

Answer:

08-Sep-2020 · 2 answers

a programmer who puts the act of eight lines in a function definition and calls them at the ten points in the program. Assume this new code to be Code B. Which code will run faster using an interpreter

Answered by anjaliom1122
3

Answer:

Code B will be run faster.

Explanation:

The source code is usually analysed in less time by interpreters. However, as compared to compilers, the overall execution time is longer. The analysis of source code by compilers normally takes a long time. The entire execution time is, however, faster than that of interpreters.

Code B will be run faster because it call the function directly and word in loop so' B will run faster as compare to code A.

Compiled code runs faster while interpreted code runs slower. Compiler displays all errors after compilation, on the other hand, the Interpreter displays errors of each line one by one.

Similar questions