Font size
WorksheetsNational 5 Programming (VB and Theory)
Total questions: 20
Worksheet time: 13mins
Identify which is the first stage of development
Design
Implementation
Testing
Analysis
Describe the term Iterative Development
Repeating a phase of development like going from Testing stage back to the Implementation stage to correct the code
Double checking your work to make sure it is right before moving on
Using loops in your program
Doing all the work again because the file got deleted
Identify the three things that are outlined in the functional requirements (three answers)
Inputs
Coding Language
Processes
Outputs
Hardware Required
What kind of design technique is being shown?
Psuedocode
Flowchart
Structure Diagram
What kind of data type would you use to store the following data: 9.98
String
Integer
Boolean
Single
What kind of data type would you use to store the following data: A
String
Character
Boolean
Integer
Which one of the following is defined as a data structure:
Boolean
Array
Numbers
String
Identify the three logical operators: (three answers)
=
AND
<=
NOT
OR
You are a writing a program to add up the total cost of all the items in a shopping cart. State the standard algorithm you should use?
Running Total
Traversing an array
Input Validation
State which standard algorithm you would use if you had to get test scores from an array to check which grade they should receive.
Running Total
Input Validation
Traversing an array
Given that you have to be 18 or over to enter a club, identify the conditional from this incomplete code:
Age = InputBox("Enter your age")
While ________
MsgBox("Error, too young")
Age = InputBox("Enter age again")
End While
counter = 0 to 18
age >=18
age > 18
age < 18
Which standard algorithm makes our program more robust?
Running Total
Input Validation
Traversing an Array
State the result from the following program:
number = 7.89321
MsgBox("Number is " & Math.Round(num))
7.8932
7
8
State which of the following piece of code will allow you to find out how many pieces of data are in an array called Ages
ArrayLength = size (Ages)
ArrayLength = Ages.Length
ArrayLength = Length(Ages)
ArrayLength = len (Ages)
Below is the code for a running total using an array complete the code:
Dim nums(4) As Integers
total = 0
For counter = 0 to 4
nums(______) = InputBox("Enter number")
total = nums(_____) + total
Next
array
input
counter
0
What kind of design notation is shown above?
Flowchart Chart
Structure Diagram
Pseudocode
Decomposition Diagram
Which one of these is NOT a standard algorithm?
Input Validation
Running Total
Calculate the average
Traversing a 1D array
Identify the type of loop would use if you knew how many times you needed to loop
Fixed Loop
Conditional Loop
What would the output be in the age was set at 18?
You are too young to attend the dance
You can attend the dance
You are too old to attend the dance
Identify the correct conditional loop for a program that should get numbers from the user until they type 0
Do
Get number
Loop Until number = 0
Do
Get number
Loop While number = 0
Do
Get number
Loop Until number <> 0
Do
Get number
Loop Until number > 0
