wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

National 5 Computing Science - Revision 2

Total questions: 40

Worksheet time: 20mins

Name
Class
Date
1.

The value of a variable is saved on RAM. What bus carries the value from the CPU to RAM?

a)

Address Bus

b)

Data Bus

c)

Value Bus

d)

RAM Bus

2.

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

3.

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.

4.

What design notation is shown in the image?

a)

Structure Diagram

b)

Flow Chart

c)

Pseudocode

d)

Flow Diagram

5.

Which of the following data types are used in programming?

a)

Text

b)

Integer

c)

Real/Float

d)

Date

e)

Boolean

6.

Which of the following are logical operator?

a)

> < ==

b)

!= >= <=

c)

AND OR NOT

d)

IF WHILE

7.

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.

8.

Which programming constructs are used in this code?

a)

Arithmetic Operations

b)

Iteration

c)

Assignment

d)

Selection

e)

String Concatenation

9.

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.

10.

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

11.

Which of the following is the binary number for 101

a)

01100101

b)

00111101

c)

10000010

d)

01100111

12.

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.

13.

Which of the following is NOT a vector object?

a)

Line

b)

Circle

c)

Rectangle

d)

Polygon

14.

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.

15.

Which of the following would not reduce the energy consumption of a computer system?

a)

Adjusting the brightness.

b)

Put the computer to sleep when not in use.

c)

Make the hard drives not spin when they are not in use.

d)

Make the monitor automatically turn off when not used for a certain amount of time.

16.

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.

17.

Which of the following is not an implication for businesses following the GDPR.

a)

Ensuring the data is collected through a third-party business.

b)

Ensuring the data is processed fairly.

c)

Ensuring thew data is kept securely.

d)

Ensuring the data only used for the declared purpose.

18.

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.

19.

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

20.

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

21.

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

22.

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.

23.

Which of the following do you need to do to complete an ER Diagram.

a)

Put an asterix after the Primary Key

b)

Draw and describe the relationship

c)

Underline the foreign key

d)

Draw each attribute in a circle attached to the entity.

e)

Draw each entity with a square

24.

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

a)

UPDATE

b)

DELETE

c)

VALUES

d)

INSERT INTO

e)

CREATE

25.

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

26.

What is the purpose of a wireframe?

a)

To design the layout of your website hyperlinks.

b)

To design the layout of every element on each webpage.

c)

To design the position of images on each webpage.

d)

To design the each hyperlink and how they link to external websites.

27.

Which file type can be used to store images?

a)

JPEG & PNG

b)

JPEG & WAV

c)

AVI & WAV

d)

GIF & AVI

28.

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

29.

Johnny is creating a website to promote his Musician of the Year award. What must Johnny keep in mind when use images on his website?

a)

That he has permission to use the images.

b)

That he saves them as a PNG.

c)

He must ensure he uses the correct bit-depth to display all the colours on a web browser.

d)

That the images are only of himself and not anyone else.

30.

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.

31.

Patrick wants to style all his text so that its height is 22 pixels, it is aligned to the right, has a background colour of light blue and a colour of black. Which of the following CSS declarations would achieve this?

a)

p{font-size: 22px; text-align: right; color: black, background-color:lightBlue;}

b)

text{font-size: 22px; text-align: right; color: black, background-color:lightBlue;}

c)

p{font-size: 22px; text-align: right; colour: black, background-colour: #ff45fa;}

d)

#text{font-size: 22px; text-align: right; color: black, background-color: #ff45fa;}

32.

What type of selector is shown in the CSS declaration shown:


.heading{color: #66ff12;}

a)

Element

b)

Class

c)

ID

d)

H1

33.

Which of the following html tags would correctly display the image "tractor2.png"?

a)

<image source = "tractor2.png">

b)

<img src = "tractor2.png" alt = "Tractor">

c)

<image source = "tractor2.png" alt = "Tractor">

d)

<img src = "tractor2" alt = "Tractor" type = "image/png">

34.

Which of the following HTML code would display a numbered list on a webpage?

a)

<ol>

<li> Tomatoes </li>

<li> Cheese </li>

</ol>

b)

<ol>

Tomatoes

Cheese

</ol>

c)

<nl>

<li> Tomatoes </li>

<li> Cheese </li>

</nl>

d)

<ul>

<li> Tomatoes </li>

<li> Cheese </li>

</ul>

35.

Describe the term "external CSS".

a)

A separate file of CSS declarations that every webpage links to to ensure a consistent style in a website.

b)

A set of CSS declarations that is present on every webpage using the <style> tag to ensure a consistent style in a website.

c)

A file that is externally stored on a third-party server that can be used to pick and choose which CSS styles to use.

d)

A set of CSS declarations that is inside of each html element and uses the style attribute.

36.

Which language is used to create dynamic, interactive content on a webpage.

a)

JavaScript

b)

Python

c)

HTML

d)

CSS

37.

Imogene wants an image on her website to change from a picture of a cat to a picture of a dog when the user moves their mouse over it. Which of the following code should she use?

a)

onmouseover="img.src='dog.png' "

b)

onmouseoff = "img.src='dog.png' "

c)

onmouseover = "this.src='dog.png' "

d)

onmouseout = "this.src='dog.png' "

38.

Which of the following is a test that can be done on a website?

a)

Test that the media load correctly.

b)

Test that the hyperlinks work correctly.

c)

Test that the CSS styles work correctly.

d)

Test that the JavaScript works correctly.

39.

Which standard algorithm is shown?

a)

Input Validation

b)

Running Total

c)

Traversing an array

d)

Password Protection

40.

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

a)

0 and 5

b)

0 and 99

c)

randInt

d)

randNum