wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Exam Style Questions

Total questions: 18

Worksheet time: 11mins

Name
Class
Date
1.

The pseudo-code below assigns two string values to two variables.

title 'computer science'

level 'gcse'

Select one answer that shows the length of the contents of the variable level in the pseudo-code.

a)

1

b)

2

c)

4

d)

3

2.

The pseudo-code below assigns two string values to two variables.

title ← 'computer science'

level ← 'gcse'

Select one answer that shows the result of concatenating the variable title with the variable level in the pseudo-code.

a)

Computer Science GCSE

b)

computer sciencegcse

c)

computer science gcse

d)

computersciencegcse

3.

The pseudo-code below assigns two string values to two variables.

title 'computer science'

level 'gcse'

Select one answer to show which of the following strings is a substring of the variable title in the pseudo-code.

a)

sci

b)

compsci

c)

puters

d)

tersci

4.

The pseudo-code below assigns two string values to two variables.

title 'computer science'

level 'gcse'

The Unicode character code of title[0], which is 'c', is 99.

Select one answer to show the Unicode character code of the character level[3] in the pseudo-code.

a)

101

b)

95

c)

99

d)

103

5.

Select one answer to show the statement that is true about the examples of code.

a)

Only one of the examples of code is in a low-level language.

b)

None of the examples of code is in a low-level language.

c)

Only two of the examples of code are in a low-level language.

d)

All three of the examples of code are in a low-level language.

6.

Statements A and B refer to two different types of program translator.

Statement A: This type of translator can convert a high-level language program into machine code. The source code is analysed fully during the translation process. The result of this translation can be saved, meaning the translation process does not need to be repeated.

Statement B: This type of translator was used to convert the code in Example 2 to the code in Example 3 in the table below.

a)

Statement A: compiler;

Statement B: assembler

b)

Statement B: compiler;

Statement A: assembler

c)

Statement B: compiler;

Statement A: interpreter

7.

A cake recipe uses 100 grams of flour and 50 grams of sugar for every egg used in the recipe.

The code below shows the first line of an algorithm that will be used to calculate the amount of flour and sugar required based on the number of eggs being used. The number of eggs is entered by the user.

    eggsUsed ⟵ USERINPUT

Select one answer to show which of the following lines of code correctly calculates the amount of flour needed in grams.

a)

flourNeeded ⟵ USERINPUT

b)

flourNeeded ⟵ eggsUsed * USERINPUT

c)

flourNeeded ⟵ eggsUsed * 100

8.

A cake recipe uses 100 grams of flour and 50 grams of sugar for every egg used in the recipe.

The code below shows the first line of an algorithm that will be used to calculate the amount of flour and sugar required based on the number of eggs being used. The number of eggs is entered by the user.

    eggsUsed ⟵ USERINPUT

Select one answer to show which programming technique has been used in this line of code .

a)

Nested iteration

b)

Indefinite iteration

c)

Assignment

9.

Select one answer, which shows a simpler expression which is the equivalent of the original, more complex, expression.

a)

NOT A1

b)

A1 AND (NOT A2)

c)

A2 OR A3

d)

A1 AND A3

10.

Which two of the following are components of a CPU?

a)

Control unit

b)

Arithmetic logic unit

c)

Fan

d)

Hard disk drive

e)

Power supply unit

11.

A computer game is one type of application software. State a few examples for types of application software. You must not use brand names in your answer.

a)

Excel,

Ms Access

b)

ORACLE, SAP, MS Word.

c)

Word processor, Spreadsheet,

 Presentation, Web browser,

Graphic design, Database Management System

d)

 Media player, Video player, Music player;

Music creator;

12.

Select the correct statement about secondary storage.

a)

Secondary storage is a type of ROM.

b)

Secondary storage is non-volatile.

c)

Secondary storage is temporary.

d)

Secondary storage loses its content when it is turned off.

13.

A virus is a specific category of malware.

Describe three other different categories of malware.

a)

Worm: code which will run autonomously and replicates itself on a host system

b)

 Ransomware: a program that encrypts user’s data to make it unreadable until they pay for the key;

c)

 Remote Access Tool (RAT): allows access to control and monitor a computer from a remote network location

d)

 Adware: a program which misleads the user into thinking it is another piece of software which, when run, executes another program

14.

Select the correct definitions

a)

Adware: code embedded or attached to program files which will persistently show adverts (that attempt to generate revenue);

b)

Spyware: a program which records data such as usernames and passwords on a host system and forwards the information to a third party

c)

Bots / Zombies a program installed on a computer that performs a job for the remote owner of the bot / zombie such as sending spam or sending web requests to perform a DOS or attacking a computer system

15.

An adware is a specific category of malware.

Select the answers that define other different categories of malware

a)

Scareware: malware that tells you something is wrong with your system in an attempt to get you to make a purchase; 

b)

 Keylogger: a program that monitors / records a user’s keystrokes in order to steal passwords / confidential details

c)

Trojan: code embedded or attached to program files which will persistently show adverts (that attempt to generate revenue);

d)

Rootkit: malware that has managed to gain ‘root’ admin privileges

16.

Breaking a problem down into a number of sub-problems is ....

a)

assignment

b)

data type

c)

decomposition

d)

input

e)

efficiency

17.

Assignment is ...

a)

Breaking a problem down into a number of sub-problems

b)

The process of setting the value stored in a variable

c)

Defines the range of values a variable may take

18.

Data type is ...

a)

Breaking a problem down into a number of sub-problems

b)

Defines the range of values a variable may take

c)

Breaking a problem down into a number of sub-problems