Chapter 14 Structured Programmming Flashcards
What is the terminologies for subroutine types in Pseudocode?
PROCEDURE and FUNCTION
What is the terminologies for subroutine types in Python?
void function and fruitful function
What is the terminologies for subroutine types in VB
Subroutine and Function
What is the terminologies for subroutine types in Pascal?
procedure and function
What is the syntax definition for Procedures in Python, VB.NET and Pascal?
- Python: def ():
- VB.NET:
Sub ()
End Sub -Pascal procedure ; begin ; end;
What is the syntax definition for Functions in Python, VB.NET and Pascal?
- Python: def ():
return - VB.NET: Function () As
= End Function -Pascal Function () : ; begin ; result := ; end;
What does passing parameters by value mean?
Passing parameters by value means that the actual value from example a variable is passed into the procedure and if the value of the variable is changed in the procedure than it will be changed outside the procedure as well.
What does passing parameters by reference mean?
Passing parameters by reference means that the procedure will work with the value from the variable outside the procedure however it won’t change the value in the variable.