Higher Software Development
Higher Software Development
Development
End of Topic Test Review
Question 1
username = surname[:3]+forename[0]
Question 2
The client:
● Details requirements
● Outlines scope and boundaries
● Evaluates prototype/suggest changes
● Provides feedback/liaising with development team throughout process
Question 3
Question 3a(i)
● Now,then
● This is the values/parameters that are passed into the function/subprogram
Question 3a(ii)
● Previous/Current
Question 3b
● Local/Lines 1-5
● Only exists in this subroutine/can’t be accessed out with the subroutine in which it
is declared
Question 4
Question 4a
2
Question 4b
0
Question 4c(ii)
● Logic
● Returns a position for an item that is not in the list OR Returns the position of the
first item in the list/0123
Question 5
Question 5a
groupsize = [0.0] * 30
Question 5b
● Speed/Pulse >=0
● Battery – min 0% max 100%
● No validation required.
Question 6b
Set position to -1
Set highest to 0
Loop for each reading
If current activity = “Walking” and current speed > highest
Set highest to current speed
Set position to index
End if
End loop
Question 6c (cont)
Set position to -1
Set highest to 0
Loop for each reading
If readings[x].Activity = “Walking” and readings[x].speed > highest
Set highest to readings[x].speed
Set position to x
End if
End loop