WorksheetsSoftware Design and Development Quick Quiz 3
Total questions: 10
Worksheet time: 21mins
Sequence, Multiway selection
Sequence, Binary Selection
Sequence, Pre-test loop
Sequence, Post-test loop
Which of the following contains the three components of a CPU?
HT, CU, Instruction Register
HDD, RAM, Cache
ALU, CU, Cache
ALU, CU, Program Counter
What is the correct representation of the decimal number 45 in binary?
101001
101101
101111
110011
The decimal ASCII code for “A” is 65. What is the decimal ASCII code for “f”?
70
96
101
102
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?
29
14, 29
5, 15, 30
14, 29, 1028, 1038
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?
When the program runs it gives a “division by zero” error and crashes
The programmer spells the word “WHILE” incorrectly while typing code
The program ignores the last number and only calculates the average of 29 numbers
The numbers are stored in an array and the program tires to read the 31st number and crashes
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?
Both variables are set to the initial contents of A
Both variables are set to the initial contents of B
The contents of A is swapped with the contents of B
Both variables are set to the initial difference between A and B
What is the name of system documentation which shows user interface designs and navigation links between screens?
Dataflow diagram
IPO table
Storyboard
Screen designs
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))))
-1
4
0
1
What form of documentation/diagram is the most appropriate for showing the schedule and timelines for activity in a project?
Gantt chart
Storyboard
Data flow diagram
System flowchart
