Karteikarten
Ohne Titel

Karten in diesem Stapel (18)
- 1What is a Statement?Is a single executable line of code.
- 2What is a Subroutine?It Is a section of code within a larger body of code. It performs a specific task in the main body of the code.
- 3What is a Procedure?It Is a subroutine which returns either no values or possibly many.
- 4What is a Function?It Is a subroutine which returns a single value.
- 5What is a Parameter?It is a variable which holds either value or an address and is then passed to a subroutine where it is given a new identifier is subroutine. Parameters are normally passed on the stack.
- 6What is a Sequence?The term used to describe the execution of instructions one after in the order in which they are written.
- 7What Is a SelectionIt is a Term used to describe the execution of instructions depending upon some condition.
- 8What is a Iteration?It is a group of instructions is repeated, for a set number of times or until a condition is met.
- 9Exam Questions

- 10A computer Program Consists of many statements which are sometimes organised into subroutines such as functions. Explain What is meant by a StatementIs a single executable line of code.
- 11Explain How a function differs from a procedureA function returns a single value to the calling program so that it can be used in the same way as a variable in the main body of the program
- 12A computer Program contains the following Instructions-x = 5
y = 7
x = y
Output X - 13State which of the programming constructs have been usedSequence
- 14State the Value Which Will be outputSequence
- 15Computing M8init blud
- 16Flip for algorithm on pseudo Code01-INPUT A
02- INPUT B
0 3- C = 0
0 4 -I F A = B T H E N
0 5- B = 1
0 6- E L S E
0 7 -W H I L E B > A
0 8 -B = B - A
0 9- C = C + 1
1 0- E N D W H I L E
1 1 A = B
1 2 E N D I F - 17Find an example of a Statement in the pseudo codeAny of the lines will be a good example
- 18Find an example of Selection in the codeIF in lines 04 (to 12)
Informationen
- Beschreibung
- Karteikarten am Ohne Titel, erstellt von bilal42 am 23/03/2015.
- Erstellt von
- bilal42 · Mär 2015
- Aktualisiert
- 19 Feb 2016
- Aufrufe
- 20
- Bewertung