wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

National 5 Programming (VB and Theory)

Total questions: 20

Worksheet time: 13mins

Name
Class
Date
1.

Identify which is the first stage of development

a)

Design

b)

Implementation

c)

Testing

d)

Analysis

2.

Describe the term Iterative Development

a)

Repeating a phase of development like going from Testing stage back to the Implementation stage to correct the code

b)

Double checking your work to make sure it is right before moving on

c)

Using loops in your program

d)

Doing all the work again because the file got deleted

3.

Identify the three things that are outlined in the functional requirements (three answers)

a)

Inputs

b)

Coding Language

c)

Processes

d)

Outputs

e)

Hardware Required

4.

What kind of design technique is being shown?

a)

Psuedocode

b)

Flowchart

c)

Structure Diagram

5.

What kind of data type would you use to store the following data: 9.98

a)

String

b)

Integer

c)

Boolean

d)

Single

6.

What kind of data type would you use to store the following data: A

a)

String

b)

Character

c)

Boolean

d)

Integer

7.

Which one of the following is defined as a data structure:

a)

Boolean

b)

Array

c)

Numbers

d)

String

8.

Identify the three logical operators: (three answers)

a)

=

b)

AND

c)

<=

d)

NOT

e)

OR

9.

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?

a)

Running Total

b)

Traversing an array

c)

Input Validation

10.

State which standard algorithm you would use if you had to get test scores from an array to check which grade they should receive.

a)

Running Total

b)

Input Validation

c)

Traversing an array

11.

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

a)

counter = 0 to 18

b)

age >=18

c)

age > 18

d)

age < 18

12.

Which standard algorithm makes our program more robust?

a)

Running Total

b)

Input Validation

c)

Traversing an Array

13.

State the result from the following program:


number = 7.89321

MsgBox("Number is " & Math.Round(num))

a)

7.8932

b)

7

c)

8

14.

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

a)

ArrayLength = size (Ages)

b)

ArrayLength = Ages.Length

c)

ArrayLength = Length(Ages)

d)

ArrayLength = len (Ages)

15.

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

a)

array

b)

input

c)

counter

d)

0

16.

What kind of design notation is shown above?

a)

Flowchart Chart

b)

Structure Diagram

c)

Pseudocode

d)

Decomposition Diagram

17.

Which one of these is NOT a standard algorithm?

a)

Input Validation

b)

Running Total

c)

Calculate the average

d)

Traversing a 1D array

18.

Identify the type of loop would use if you knew how many times you needed to loop

a)

Fixed Loop

b)

Conditional Loop

19.

What would the output be in the age was set at 18?

a)

You are too young to attend the dance

b)

You can attend the dance

c)

You are too old to attend the dance

20.

Identify the correct conditional loop for a program that should get numbers from the user until they type 0

a)

Do

Get number

Loop Until number = 0

b)

Do

Get number

Loop While number = 0

c)

Do

Get number

Loop Until number <> 0

d)

Do

Get number

Loop Until number > 0