wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

NAt5 Exam Prep

Total questions: 70

Worksheet time: 35mins

Name
Class
Date
1.

What type of loop is this?

a)

Fixed

b)

Conditional

2.

What standard algorithm is being used here?

a)

Running total

b)

Input validation

3.

What type of loop is this?

a)

Fixed

b)

Conditional

4.

What standard algorithm is being used here?

a)

Running total

b)

Input validation

5.

What is wrong with the code for this loop?

a)

Missing colon

b)

No indentation

c)

Incorrect values

d)

Lines in the wrong order

6.

What is wrong with the code for this loop?

a)

Missing colon

b)

No indentation

c)

Incorrect values

d)

Lines in the wrong order

7.

What is wrong with the code for this loop?

a)

Missing colon

b)

No indentation

c)

Incorrect values

d)

Lines in the wrong order

8.

What is wrong with the code for this loop?

a)

Missing colon

b)

No indentation

c)

Incorrect values

d)

Lines in the wrong order

9.

Select all the ways that a program can be evaluated

a)

Fitness for Purpose

b)

Efficiency of Code

c)

Robustness

d)

Readability

10.

Select all the possible data structures

a)

1D Array

b)

Variable

c)

Lattice

d)

Matrix

11.

Which data type can only hold True or False

a)

Boolean

b)

Integer

c)

Real

d)

Single

12.

Which data type would you say in the SQA exam is used to hold the number 4.97

a)

Boolean

b)

Integer

c)

Real

d)

Single

13.

Select all Standard Algorithms for National 5

a)

Traversing a 1D Array

b)

Input Validation

c)

Running Total Within a Loop

d)

Conditional Statement

14.

Which component carries data to and from Main Memory

a)

Control Unit

b)

Registers

c)

Address Bus

d)

Data Bus

15.

Which component is temporary storage inside the processor?

a)

Control Unit

b)

Registers

c)

ALU

d)

RAM

16.

Floating point representation stores real numbers in binary using...

a)

mantissa and exponent

b)

vector and exponent

c)

mantissa and resolution

d)

vector and resolution

17.

Select all ways of reducing a computer's power consumption

a)

Lower screen brightness

b)

Automatic stand by mode

c)

Stop hard disk spinning after a set time

d)

Higher capacity hard disk

18.

Select all ways of ensuring a program is readable

a)

Create a wireframe

b)

High text size

c)

Internal commentary

d)

Meaningful identifiers

19.

What is a logic error?

a)

The program won't run as the mistake in the code breaks the rules of the programming language

b)

The program runs but in testing it produces the wrong result

c)

The program runs but then crashes while running

d)

The program created doesn't match the design

20.

Select the correct SQL statement to add a new record for Mr Alford to the Teacher table

a)

SELECT * FROM Teacher WHERE Title="Mr" AND Surname="Alford";

b)

INSERT INTO Teacher (Title, Surname) VALUES ("Mr","Alford");

c)

INSERT (Title, Surname) VALUES ("Mr","Alford") INTO Teacher;

d)

INSERT (Title, Surname) VALUES ("Mr","Alford") FROM Teacher;

21.

Vector Graphics store...

a)

A colour code for every pixel

b)

Objects and attributes as text

c)

Animation and transparency

d)

Thumbnails

22.

Which validation would be added to a database field to ensure data is entered in that field?

a)

Range Check

b)

Presence Check

c)

Length Check

d)

Restricted Choice

23.

What is a parameter in a predefined function?

a)

Data that is sent into the function to allow it to do it's job

b)

An error that stops the function from working

c)

Details from the creator on what the function does

d)

A subprogram called by an event

24.

Real numbers are stored using a Mantissa and (a)   ?

25.

What is NOT gathered at the Analysis stage of the SDP?

a)

End User Requirements

b)

Structure Diagram

c)

Functional Requirements

d)

Inputs, Processes & Outputs

26.

Convert the number 82 into 8 bit binary. Enter your answer with no spaces.

(a)  

27.

I am testing a section of code that is designed to validate exam marks out of 100. If I were to use the value 105 what type of test data is this?

a)

Normal

b)

Exceptional

c)

Extreme

28.

Whilst testing a program the program crashes unexpectedly. What type of error is this an example of?

a)

Syntax

b)

Logic

c)

Execution

d)

Code

29.

Whilst evaluating a program I am considering whether or not the program copes with a variety of inputs. What aspect of my program am I evaluating?

a)

Reliability

b)

Readability

c)

Robustness

d)

Fitness for Purpose

30.

I wish for my program to round a ski time to 2 decimal places. What would I use to save me programming time?

a)

Standard Algorithm

b)

Pre-Defined Function

c)

Selection

d)

Iteration

31.

Which part of the CPU would work out the result of the calculation 5 * 6?

a)

ALU

b)

Control Unit

c)

Calculation Unit

d)

Main Memory

32.

The development process can be described as iterative. What does this mean?

a)

It means you might need to go back a step if you find an error.

b)

It means you might need to skip over a step if you have removed an error.

c)

It means you use loops to do multiple testing stages.

d)

You use a loop to repeat code.

33.

What design notation is shown in the image?

a)

Structure Diagram

b)

Flow Chart

c)

Pseudocode

d)

Flow Diagram

34.

Which of the following data types are used in programming?

a)

Text

b)

Integer

c)

Real/Float

d)

Date

e)

Boolean

35.

Which of the following are logical operator?

a)

> < ==

b)

!= >= <=

c)

AND OR NOT

d)

IF WHILE

36.

What is the purpose of a pre-defined function?

a)

To carry out a function without having to write the code yourself.

b)

To get the length of an object.

c)

To give it a parameter and it will work out which function to use.

d)

You create code that you can run multiple times without having to rewrite it.

37.

Which programming constructs are used in this code?

a)

Arithmetic Operations

b)

Iteration

c)

Assignment

d)

Selection

e)

String Concatenation

38.

What is a standard algorithm?

a)

A solution to a common programming problem.

b)

Code that you can use by writing it's name then brackets EG. len("Hello")

c)

A standard for writing code to ensure you have no syntax errors.

d)

A set of instructions that a computer can follow to carry out a standard arithmetic operation.

39.

What are the four points of evaluation for a program?

a)

Fitness for Purpose, Efficient Coding Constructs, Robustness and Readability

b)

Accuracy, Fitness for Purpose, Efficient Syntax and Decomposition

c)

Pattern Recognition, Fitness for Purpose, Robustness and Readability

d)

Readability, Efficient Syntax, Accuracy and Abstraction

40.

Which of the following is the binary number for 101

a)

01100101

b)

00111101

c)

10000010

d)

01100111

41.

What is the purpose of Extended ASCII?

a)

To represent text using 7 bit binary numbers. Each character is assigned one unique 7-bit binary number to represent it.

b)

To represent text using 8 bit binary numbers. Each character is assigned one unique 8-bit binary number to represent it.

c)

To represent textual graphics so that each pixel is given a binary number to represent it's colour.

d)

To represent vector graphics which are made up of objects. Each object is made up of attributes.

42.

Which of the following is NOT a vector object?

a)

Line

b)

Circle

c)

Rectangle

d)

Polygon

43.

Which of the following statements are False?

a)

ALU carries out all calculation and logic operations in the CPU.

b)

Registers are a small, temporary storage location in the CPU.

c)

The Control Unit controls the computer and executes any instructions.

d)

RAM is used to store the files and document for the user.

44.

What is the purpose of a firewall?

a)

To protect a computer system or network from unauthorised access.

b)

To jumble up data so that it cannot be read/used.

c)

To burn any incoming messages that do not have the correct security key.

d)

To block data from leaving your computer system unless you have given it permission to do so.

45.

Which of the following describes the relationship of the ER Diagram shown.

a)

One staff member can be part of many jobs.

b)

Many staff members can be part of one job.

c)

One to Many

d)

Many Jobs can be completed by many staff members.

46.

Which of the following are types validation used in databases.

a)

Input Validation

b)

Range Check

c)

Field Length Check

d)

Length Validation

e)

Restricted Choice

47.

Which of the following SQL would produce the results table shown.

a)

SELECT StaffID, DateOfBirth, Name FROM Staff ORDER BY Age ASC

b)

SELECT StaffID, Age, Name FROM Staff ORDER BY Age ASC, Name ASC

c)

SELECT Primary Key, Age, Name FROM Staff ORDER BY Name ASC

d)

SELECT StaffID, Age, Name FROM Staff ORDER BY Name ASC, Age ASC

48.

What is wrong with the following SQL.

SELECT StaffID, name, age, JobID

FROM Staff, Job

a)

Missing an equi-join

b)

You can't have two ID's in the SELECT clause.

c)

Missing a condition

d)

Missing a sort order

49.

Emma wants to update the cost of only the white rice from 5.99 to 1.99 using the following SQL statement.


UPDATE Items

SET price = 1.99

WHERE itemName = "White Rice";


Evaluate the running of this SQL Statement.

a)

It is fit for purpose and accurate.

b)

It is not fit for purpose and accurate.

c)

It is fit for purpose and not accurate.

d)

It is not fit for purpose and not accurate.

50.

Which of the following is not a SQL clause you need to know?

a)

UPDATE

b)

DELETE

c)

VALUES

d)

INSERT INTO

e)

CREATE

51.

How many field and records are shown in the image?

a)

fields: 7 records: 4

b)

fields: 7 records: 5

c)

fields: 4 records: 7

d)

fields: 5 records: 7

52.

Which file type can be used to store images?

a)

JPEG & PNG

b)

JPEG & WAV

c)

AVI & WAV

d)

GIF & AVI

53.

What are the advantages & disadvantages of using a WAV file format?

a)

Advantages: Takes up less space than MP3

Disadvantages: Higher quality than MP3

b)

Advantages: Higher quality than MP3

Disadvantages: Take up more space than MP3

c)

Advantages: Larger frames per second than MP3

Disadvantages: Lower Quality than MP3

d)

Advantages: Higher Quality

Disadvantages: Take up less space than AVI

54.

Why might the users prefer audio being saved using a compressed file format like MP3 or WAV?

a)

So it is a smaller file size for them to store it.

b)

So that it is sent to their computer faster as the file size is smaller.

c)

So that the sound quality is higher.

d)

So that the transfer rate is slower.

55.

Identify the parameters of the random integer function in the program shown.

a)

0 and 5

b)

0 and 99

c)

randInt

d)

randNum

56.

Which standard algorithm is shown?

a)

Input Validation

b)

Running Total

c)

Traversing an array

d)

Password Protection

57.

SET age TO 15


is an example of:

a)

Assignment

b)

Arithmetic Operations

c)

Concatenation

d)

Iteration

58.

SET fullname TO firstname & " " & surname


is an example of:

a)

Assignment

b)

Arithmetic Operations

c)

Concatenation

d)

Iteration

59.

FOR times = 0 TO 5 DO


is an example of:

a)

Assignment

b)

Iteration - a conditional loop

c)

Concatenation

d)

Iteration - a fixed loop

60.

IF age>=18 THEN


is an example of:

a)

Assignment

b)

Iteration - a conditional loop

c)

Concatenation

d)

Selection - a conditional statement

61.

Here is code to input 5 names into an array:


DECLARE name(4) AS ARRAY OF STRING

FOR ticker = 0 TO 4 DO

RECEIVE name(_________) FROM KEYBOARD

END FOR


What should be in the brackets in the third line of code above?

a)

input

b)

ticker

c)

name

d)

next

62.

Which of these is not performed by the ALU?

a)

Adding two numbers

b)

Temporarily storing an address

c)

Comparing two values

d)

Multiplication

63.

Which of these is a data structure?

a)

Selection - conditional statement (IF)

b)

A 1-dimensional array

c)

Running total within a loop

d)

Execution error

64.

What are the two types of requirements considered at the Analysis stage of the Software Development Process?

a)

End user and functional

b)

User and functioning

c)

End user and features

d)

End users

65.

What term is used to describe a process being repeated, with changes being made based on feedback?

a)

Implementation

b)

Repetition

c)

Interlacing

d)

Iteration

66.

Which of the following input commands would allow the user to receive and store a character from the keyboard?

a)

character = input("Please enter a character:")

b)

character = int(input("Please enter a character:"))

c)

character = float(input("Please enter a character:"))

d)

character = bool(input("Please enter a character:"))

67.

Which of the following input commands would allow the user to receive and store an integer from the keyboard?

a)

integer = input("Please enter an integer:")

b)

integer = int(input("Please enter an integer:"))

c)

integer = float(input("Please enter an integer:"))

d)

integer = bool(input("Please enter an integer:"))

68.

Which of the following input commands would allow the user to receive and store a real number from the keyboard?

a)

real_number = input("Please enter a real number:")

b)

real_number = int(input("Please enter a real number:"))

c)

real_number = float(input("Please enter a real number:"))

d)

real_number = bool(input("Please enter a real number:"))

69.

Which of the following input commands would allow the user to receive and store a string from the keyboard?

a)

string = input("Please enter a string:")

b)

string = int(input("Please enter a string:"))

c)

string = float(input("Please enter a string:"))

d)

string = bool(input("Please enter a string:"))

70.

What is type casting?

a)

It allows a piece of data to have it's data type changed, e.g. an integer could be changed to a string.

b)

It allows the program to display the value of a variable on the screen.

c)

It allows the program to collect data from the keyboard.

d)

It allows the programmer to display the value of a variable while the program is running.