Software Design and Development (Implementation: Algorithm Specification) Flashcards

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

What are the three main algorithms in Software Design and Development?

A

Input Validation
Running Total Within Loop
Traversing a 1D Array

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

What does a pre-test conditional loop do?

A

A pre-test conditional loop checks the conditions before the code within in loops is translated

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

What does a post-test conditional loop do?

A

A post-test conditional loop will execute all code within the loop at least once before checking the condition

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

What is the basic pseudocode for collecting a running total in an array?

A

SET totalScore TO totalScore + score[n]

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

What is the purpose of an input validation algorithm?

A

To make sure that data received from the user is valid for the task at hand

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

What is an example of a pre-test conditional loop often used as part of input validation algorithms?

A

WHILE…END WHILE

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

What is an example of a post-test conditional loop, sometimes used as part of input validation algorithms?

A

FOR…FROM…TO…DO…END FOR

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

What is a description of ‘traversing an array’?

A

Access each element in an array so that data can be checked, altered or used

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