wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Software Design and Development Quick Quiz 3

Total questions: 10

Worksheet time: 21mins

Name
Class
Date
1.
a)

Sequence, Multiway selection

b)

Sequence, Binary Selection

c)

Sequence, Pre-test loop

d)

Sequence, Post-test loop

2.

Which of the following contains the three components of a CPU?

a)

HT, CU, Instruction Register

b)

HDD, RAM, Cache

c)

ALU, CU, Cache

d)

ALU, CU, Program Counter

3.

What is the correct representation of the decimal number 45 in binary?

a)

101001

b)

101101

c)

101111

d)

110011

4.

The decimal ASCII code for “A” is 65. What is the decimal ASCII code for “f”?

a)

70

b)

96

c)

101

d)

102

5.

BEGIN

A = 4

INPUT B

WHILE B <> 999

IF B >= 10 THEN

A = A + B

PRINT A

END IF

INPUT B

END WHILE

END


The following test data is available to the algorithm: 1, 10, 15, 8, 999, 10.

What is the output of the algorithm?

a)

29

b)

14, 29

c)

5, 15, 30

d)

14, 29, 1028, 1038

6.

A program is designed to calculate the average of 30 numbers. Which of the following is an example of a logic error for this program?

a)

When the program runs it gives a “division by zero” error and crashes

b)

The programmer spells the word “WHILE” incorrectly while typing code

c)

The program ignores the last number and only calculates the average of 29 numbers

d)

The numbers are stored in an array and the program tires to read the 31st number and crashes

7.

Consider the following fragment of code:

A = A + B

B = A – B

A = A – B

Assuming A and B are integers, what is the effect of executing this sequence of statements?

a)

Both variables are set to the initial contents of A

b)

Both variables are set to the initial contents of B

c)

The contents of A is swapped with the contents of B

d)

Both variables are set to the initial difference between A and B

8.

What is the name of system documentation which shows user interface designs and navigation links between screens?

a)

Dataflow diagram

b)

IPO table

c)

Storyboard

d)

Screen designs

9.

Consider the following array values:

myArray(0) = -1

myArray(1) = 4

myArray(2) = 0

myArray(3) = 1

What is the final value of

myArray(myArray(myArray(1) + myArray(myArray(2))))

a)

-1

b)

4

c)

0

d)

1

10.

What form of documentation/diagram is the most appropriate for showing the schedule and timelines for activity in a project?

a)

Gantt chart

b)

Storyboard

c)

Data flow diagram

d)

System flowchart