Professional Documents
Culture Documents
11 SDD Independent 2012 1
11 SDD Independent 2012 1
Section I
Total marks (20)
Attempt Questions 1 – 20
Allow about 25 minutes for this section
Use the multiple choice answer sheet
Select the alternative A, B, C or D that best answers the question
2. Today, use of a command line interface (CLI) is most common on which of the following?
(A) Servers
(B) Portable devices
(C) Desktop computers
(D) Web browsers
4. The letter ‘B’ (upper case) is represented by 6610 in ASCII. Which of the following represents
the ASCII code of ‘b’(lower case) in binary?
(A) 1000001
(B) 0100010
(C) 1000010
(D) 1100010
Page 2 of 17
Software Design and Development 2012 Preliminary Exam Student Name/Number:...........................................
9. Which of the following data types is most appropriate for storing the quantity of fuel
purchased by a customer at a petrol station?
(A) Integer
(B) String
(C) Floating point
(D) Boolean
10. Small multi-skilled teams that are able to respond rapidly to changing specifications are a
feature of which software development approach?
(A) RAD
(B) Structured
(C) Prototyping
(D) Agile
Page 3 of 17
Software Design and Development 2012 Preliminary Exam Student Name/Number:...........................................
12. A random access file contains a list of many hundreds of data items. In terms of data items
accessed, which of the following is required to read the three hundredth data item within the
file?
(A) All data items within the file must be accessed.
(B) Only the three hundredth data item needs to be accessed.
(C) The first three hundred data items need to be accessed.
(D) All data items beginning from the three hundredth data item to the end of the file need
to be accessed.
13. A programmer finds their source code refuses to compile. What is the most likely issue?
(A) Logic errors
(B) Syntax errors
(C) Runtime errors
(D) Incorrect compiler settings
14. Consider the following high-level language statements which are a fragment of a larger
program:
Input firstName(c)
result = (firstName(c) = “Fred”)
What is the most likely data type of the identifiers in this statement?
(A) Both result and c are integers, firstName is an array of strings.
(B) firstName is an array of strings, result is a string, c is an integer.
(C) firstName and result are strings, c is a floating point.
(D) firstName is an array of strings, result is a Boolean, c is an integer.
Page 4 of 17
Software Design and Development 2012 Preliminary Exam Student Name/Number:...........................................
Consider the following algorithm when answering questions 16, 17 and 18.
BEGIN sub1(a, b)
c=b
WHILE sub2(a) > b
d = sub3(b)
IF d THEN
e = sub4(c)
Add e to c
END IF
ENDWHILE
RETURN c
END
16. With regard to the data returned from each subroutine, which of the following is TRUE?
(A) sub1, sub2, sub4 return numbers, sub3 returns a Boolean value.
(B) sub1, sub2 return numbers, sub3 and sub4 return Boolean values.
(C) sub1 returns a number, all other subroutines return Boolean values.
(D) All subroutines return numbers.
17. Ignoring parameters, which structure chart best reflects the above algorithm?
(A) Sub1 (C) Sub1
Sub2
Sub2 Sub3 Sub4
Sub3 Sub4
(D) Sub1
(B) Sub1
Sub2
18. Although the purpose of the above algorithm is unclear, there is sufficient detail to determine
that a logic error is present. Which of the following best describes the logic error?
(A) The loop counter is not incremented within the body of the loop so the iteration will
continue indefinitely.
(B) A complete lack of intrinsic documentation with regard to meaningful variable names
means it is inevitable that multiple logic errors are present.
(C) The lines d = sub3(b) and e = sub4(c) are incorrect as in each case it is unclear which
parameter is input to the subprogram and which parameter is output from the
subprogram.
(D) The loop is either infinite or will not be executed at all because neither a or b are altered
within the body of the loop.
Page 5 of 17
Software Design and Development 2012 Preliminary Exam Student Name/Number:...........................................
19. What is the name of the systems documentation which shows user interface designs and
navigation links between screens?
(A) dataflow diagram
(B) IPO diagram
(C) storyboard
(D) system flowchart
Page 6 of 17
Software Design and Development 2012 Preliminary Exam Student Name/Number:...........................................
Section II
Total marks (80)
Attempt ALL Questions
Allow about 1 hour and 35 minutes for this section
Answer in the spaces provided on this paper.
If you include diagrams in your answer, ensure they are clearly labelled.
Page 7 of 17
Software Design and Development 2012 Preliminary Exam Student Name/Number:...........................................
(a) Hardware 2
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
(b) Software 2
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
(c) Data 2
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
(d) Procedures 2
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
(e) Personnel 2
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
Page 8 of 17
Software Design and Development 2012 Preliminary Exam Student Name/Number:...........................................
Page 9 of 17
Software Design and Development 2012 Preliminary Exam Student Name/Number:...........................................
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
Page 10 of 17
Software Design and Development 2012 Preliminary Exam Student Name/Number:...........................................
Page 11 of 17
Software Design and Development 2012 Preliminary Exam Student Name/Number:...........................................
(c) Recommend and justify an appropriate software development approach for this
5
new software. In your response briefly address why other approaches are not
suitable.
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
Page 12 of 17
Software Design and Development 2012 Preliminary Exam Student Name/Number:...........................................
Using the screen template below draw the pattern of lines produced by the 4
statement linePattern(100). Label significant coordinates on your pattern of lines.
(0, 0) (640, 0)
Page 13 of 17
Software Design and Development 2012 Preliminary Exam Student Name/Number:...........................................
(a) Keeping track of the number of times a data input has been made by the user. 2
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
(c) Recording the date, time and user’s name each time a software application is 2
executed.
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
Page 14 of 17
Software Design and Development 2012 Preliminary Exam Student Name/Number:...........................................
Page 15 of 17
Software Design and Development 2012 Preliminary Exam Student Name/Number:...........................................
Step 1.
Step 2.
Halve (ignoring
Keep doubling down to
remainders) down the first
fill the second column.
column until you get to 1. 13 14
6 28
Step 3. 3 56 Step 4.
Cross out all rows where 1 112 Add all the remaining
an even number appears 182 numbers in the second
in the first column. column to get the answer.
(a) Perform the following multiplications using the method of peasant multiplication
described above. Show all working.
(i) 12 × 4 2
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
(ii) 18 × 16 2
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
Page 16 of 17
Software Design and Development 2012 Preliminary Exam Student Name/Number:...........................................
END OF EXAMINATION
Page 17 of 17