Help with computer science procedure test question?
-
Suppose the procedure Test is defined as Procedure Test (A) A = A +2 End Procedure If parameters is passed by reference, what will be printed when the following program segement is executed: X = 10 Call Test (X) Print Value of X
-
Answer:
With call-by-reference, the location in memory of X is passed and the procedure Test will change X. Hence 12 will be printed. (Had it been call-by-value, then X would not change and 10 would be printed.)
Jackie J at Yahoo! Answers Visit the source
Related Q & A:
- What is the difference between a Computer science (A.S.) and Computer Information Systems (A.S?Best solution by Yahoo! Answers
- What can I do to get a good job with my Bachelors of Science in Computer Science?Best solution by collegexpress.com
- Bachelor of Computer Science or Bachelor in Applied Computer Science.Best solution by Yahoo! Answers
- BA Computer Science vs. BS Computer Science?Best solution by Yahoo! Answers
- Computer science question.Best solution by indiabix.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.