In a computer program, a parameter may be passed to a procedure by value. Explain how this method works.

Parameters are variables sent to procedures so that the procedures are able to use them. There are two main ways of passing parameters, one of which is by value: Passing a parameter by value is where a copy of the variable you want to send is made, and sent to the procedure as a new variable. This means that any changes made to this new variable within the procedure will not affect the original variable.

AQ

Related Computing A Level answers

All answers ▸

Describe an IDE and its features in programming. (3 Marks)


Write a small program, in pseudocode or otherwise, that demonstrates a recursive algorithm. Write a small explanation of how recursion is used in your program.


Describe the difference between TCP and UDP.


What are firewalls? Explain and discuss three methods they employ to secure a network. [8]