wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Stepwise Refinement

Total questions: 13

Worksheet time: 6mins

Name
Class
Date
1.

Which of these design methodologies involves taking a main problem and breaking it down into sub-problems?

a)

Top-down Design and Rapid Application Development

b)

Agile and Top-down Design

c)

Top-down Design and Stepwise Refinement

d)

Only Top-down Design

2.

Stepwise refinement is:

a)

Identifying the main steps needed in your program

b)

Breaking down each step until it becomes easy to code

3.

Which of the following is an advantage of good program design?

a)

Helps avoid coding errors

b)

Saves time because less errors need to be found and fixed

c)

Shows you understand the problem before you start

d)

All of the above

4.

Which of these is not a reason for breaking problems down into modules

a)

Reusability

b)

Easier to test and debug

c)

Allows only one programmer to work on a solution

d)

Individual modules are easier to maintain.

5.

A solid black arrow represents

a)

Boolean data

b)

Non Boolean data

c)

Iteration

d)

Selection

6.

A white (unfilled) arrow represents

a)

Boolean data

b)

Non Boolean data

c)

Selection

d)

Iteration

7.

A diamond attached to a module represents

a)

Data flow

b)

Iteration

c)

Selection

d)

None of the options

8.

A structure chart does NOT show which of the following peices of information

a)

Iteration

b)

Selection

c)

Hierarchy

d)

Data types

9.

The arrows in a structure chart demonstrate

a)

Parameters

b)

Non Boolean data

c)

Boolean data

d)

The data type

10.

A graphical representation of the modular structure of a solution is a

a)

Structure chart

b)

Modular diagram

c)

Top down design

d)

Identfier table

11.

What is the name of this function?

PROCEDURE Calculatewage <Hours : Integer, Hourlywage: Real>

a)

Procedure

b)

Calculatewage

c)

Hours

d)

Hourly wage

12.

How many parameters does this function receive

PROCEDURE Calculatewage <Hours : Integer, Hourlywage: Real>

a)

1

b)

2

c)

3

d)

4

13.

Isit possible to derive pseudocode from a structure chart?

a)

Yes

b)

No