Programming #2 Flashcards

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

Procedure

A
  • A block of code that performs a set task
  • Takes in 0,1 or more parameters
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Function

A
  • A block of code that performs a set task
  • Takes in 0,1 or more parameters
  • Returns a value
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Passing by Value

A

The function receives a copy of the original value and only makes changes to the copy of the original variable and not the original variable itself

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

Passing by Reference

A

The function receives the memory location of the data and makes changes to the original variable

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

Parameter

A

An item of data that is passed to a subroutine and is used as a variable within that subroutine

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

Sequence

A

Executes instructions one after the other

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

Iteration

A

Iteration (looping) allows us to reuse sections of code using FOR and WHILE loops

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

Branching

A

Allows a program to change direction depending on the boolean expression

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