Chapter 14 Structured Programmming Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is the terminologies for subroutine types in Pseudocode?

A

PROCEDURE and FUNCTION

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the terminologies for subroutine types in Python?

A

void function and fruitful function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the terminologies for subroutine types in VB

A

Subroutine and Function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the terminologies for subroutine types in Pascal?

A

procedure and function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the syntax definition for Procedures in Python, VB.NET and Pascal?

A
- Python:
def ():
  • VB.NET:
    Sub ()
End Sub
-Pascal
procedure ;
  begin
    ;
end;
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the syntax definition for Functions in Python, VB.NET and Pascal?

A
- Python:
def ():
return  - VB.NET: Function () As 
       = 
End Function
-Pascal
Function () : ;
begin
       ;
       result := ;
end;
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does passing parameters by value mean?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does passing parameters by reference mean?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly