programming techniques p2 Flashcards
1
Q
what are functions and procedures
A
Named blocks of code designed to perform a specific task.
2
Q
difference between functions and procedures
A
functions return a value , procedures dont
3
Q
what is passing parameter by reference
A
the address of the parameter is given to the subroutine, so the value of the
parameter will be updated at the given address.
4
Q
what is passing a parameter by value
A
copy of the value is passed to the subroutine and discarded at the end
therefore its value outside of the subroutine will not be affected
5
Q
whats an ide
A
a program which provides a set of
tools to make it easier for programmers to write, develop and debug code.