WorksheetsS4 Programming Recap
Total questions: 17
Worksheet time: 9mins
Input Validation
Find Maximum
Find Minimum
Linear Search
Which standard algorithm is shown here:
For x = 1 to 10
MsgBox(PupilNames(x))
Next x
Traversing an array
Running total
Which standard algorithm is shown here:
For x = 1 to 4
Value = InputBox("Enter the car value")
Total = Total + Value
Next x
Traversing an array
Running total
What is an array
A set of variables
A data structure that stores a list of values of the same type
A data structure that stores a list of values of the different types
A variable that stores a list of values
How would you declare an an array that stores 20 marks?
Dim 20 Marks as Integer
Dim (20) Marks as Integer
Dim Marks as Integer (20)
Dim Marks(20) as Integer
Which predefined function generates a random number?
Rnd()
Math.Round()
Len()
Which predefined function rounds a number?
Rnd()
Math.Round()
Len()
Which predefined function returns the number of characters in a string?
Rnd()
Math.Round()
Len()
