Join Telegram Channel for DXC exam Discussion & help!

A programmer X writes a piece of code, where a set of eight lines occur around 10 times in different parts of the program

A programmer X writes a piece of code, where a set of eight lines occur around 10 times in different parts of the program 

(Code A). X passes on the code to Programmer Y. Y puts the set of eight lines in a function definition and  calls them at the 10 points in the program 
(Code B). Which code will run faster using an interpreter?

Option 1 : Code A

Option 2 : Code B

Option 3 : Code A and Code B will run with the same speed

Option 4 : None of these

Answer: Option 1

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.