Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

AQA A Level Computer Science

Total questions: 70

Worksheet time: 1hrs 10mins

Name
Class
Date
1.

Which regular expression matches the FSM?

a)

a?bc(dc)*

b)

a|b(cd)+

c)

a+bc(dc)?

d)

a(b|c)d*c*

2.

Select the strings that are matched by the regular expression:

a(b|c)?d

a)

abcbcbcbcd

b)

acd

c)

ad

d)

acccd

3.

The Caesar cipher is an example of what type of cipher?

a)

Substitution cipher

b)

Transposition cipher

c)

Public key encryption

d)

Vernam cipher

4.

The letter m has an ascii code of 1101101. As part of a Vernam cipher, the key 0101001 is applied to that letter. What is the resulting ciphertext?

a)

1000100

b)

0111011

c)

1100101

d)

1101001

5.

The bit pattern 0110001 is sent with an even parity bit in the MSB position.

Which of these is the bit pattern receivedt?

a)

00110001

b)

10110001

c)

01100011

d)

01100010

6.

The bitmap image of the lemming is 6 pixels by 10 pixels. There are 16 available colours for each pixel. Calculate the file size of the image (not including any metadata) in bytes.

a)

30

b)

120

c)

22.5

d)

60

7.

Which of these are advantages of vector graphics over bitmap graphics?

a)

Can be rescaled without distortion

b)

(Usually) a smaller file size

c)

Ideal for photographic images

d)

Each pixel can be modified individually

8.

Which of the following is Nyquist's Theorem?

a)

e = mc2

b)

file size = sample res * sample rate

c)

fs > 2fmax

9.

Abstraction is the act of...

a)

Adding extra detail to enable someone else to be able to solve the task without your help

b)

Removing the detail that is important to solve the task

c)

Removing all unnecessary detail to focus on what is important to solve the task

d)

Creating an image that is similar to the object in question in some abstract way

10.

When would you use 'indefinite iteration'?

a)

When you are unsure about how many times a loop will need to run to satisfy a condition

b)

When you know exactly how many times you need to run the loop in the algorithm

c)

When you want a different piece of code to run depending upon the value of a variable or condition

11.

Simplify the boolean expression 😆

a)

!(A and B)

b)

A or B

c)

!A and B

d)

A and !B

12.

What is the difference between a static and dynamic data type?

a)

Dynamic data types are fixed and static can change size

b)

A dynamic data type can change size at run time, whereas static cannot

c)

No difference, the are the same

13.

Which of the following is a 'divide and conquer' algorithm?

a)

Linear search

b)

Binary search

c)

Merge sort

d)

Bubble sort

14.

How many comparisons will a Binary Search make to find the number 23 in the list?

a)

3

b)

4

c)

2

d)

10

15.

How many passes will a Bubble Sort need to make to sort this list (in ascending order)?

a)

1

b)

2

c)

3

d)

4

16.

What does the following describe?


The process of breaking a problem down into smaller problems that can be solved more easily.

a)

Declaration

b)

Functional Abstraction

c)

Abstraction

d)

Decomposition

17.

How many bytes are there in a kibibyte?

a)

1024000

b)

10000

c)

1000

d)

1024

18.

Which network topology is this?

a)

Star

b)

Bus

c)

Mesh

d)

Linear

19.

This is one of ....................... laws

a)

Einstein's

b)

Neptune's

c)

Newton's

d)

De Morgan's

20.

What is the job of the logic circuit above?

a)

Checks is a sensor is activated

b)

Adds two binary numbers together

c)

Subtracts one binary number from another

d)

Adds two binary numbers and produces a sum and carry bit

21.

passes data over the physical network

a)

transport layer

b)

internet layer

c)

link layer

d)

application layer

22.

retreieve emails from server

a)

HTTP

b)

FTP

c)

SMTP

d)

IMAP

23.

Responsible for packet switching

a)

TCP

b)

UDP

c)

IP

d)

FTP

24.

The Current State is S0 and Input is 1

What is the OUTPUT and Direction

a)

1, L

b)

1, R

c)

0, L

d)

0, R

25.

Does Breadth-first search use a queue or a stack?

a)

Stack

b)

Queue

c)

Both

d)

neither

26.

What is the Big O Notation of Merge Sort?

a)

O(n)

b)

O (n log n)

c)

O(log n)

d)

O(n2)

27.

Which of these tree traversal methods is used to output the contents of a binary tree in ascending order?

a)

Pre-Order

b)

In-Order

c)

Post-Order

d)

Monastic Orders

28.

A list must be in order for a Binary search to take place

a)

True

b)

False

29.

Preorder Traversal of the tree

a)

1 4 9 5 2 8 3

b)

1 4 9 5 2 3 8

c)

1 4 9 8 5 2 3

d)

1 4 9 8 5 2 3

30.

If the elements “A”, “B”, “C” and “D” are placed in a queue and are deleted one at a time, in what order will they be removed?

a)

ABCD

b)

DCBA

c)

DCAB

d)

ABDC

31.

How many stacks are needed to implement a queue. Consider the situation where no other data structure like arrays, linked list is available to you.

a)

1

b)

2

c)

3

d)

4

32.

Suppose a circular queue of capacity (n – 1) elements is implemented with an array of n elements. Assume that the insertion and deletion operation are carried out using REAR and FRONT as array index variables, respectively. Initially, REAR = FRONT = 0. The conditions to detect queue full and queue empty are

a)

Full: (REAR+1) mod n == FRONT, empty: REAR == FRONT

b)

Full: (REAR+1) mod n == FRONT, empty: (FRONT+1) mod n == REAR

c)

Full: REAR == FRONT, empty: (REAR+1) mod n == FRONT

d)

Full: (FRONT+1) mod n == REAR, empty: REAR == FRONT

33.

If the sequence of operations - push (1), push (2), pop, push (1), push (2), pop, pop, pop, push (2), pop are performed on a stack, the sequence of popped out values

a)

2,2,1,1,2

b)

2,2,1,2,2

c)

2,1,2,2,1

d)

2,1,2,2,2

34.

Which of the following is not an inherent application of stack?

a)

Implementation of recursion

b)

Evaluation of a postfix expression

c)

Job scheduling

d)

Reverse a string

35.

What is the postfix equivalent for the following infix expression?


(2/4)*(5-6)

a)

2 4 5 6 / - *

b)

2 4 / 5 6 - *

c)

2 4 / * 5 - 6

d)

2 4 / 5 - 6 *

36.

What name is given to the rules that define how symbols can be replaced by other symbols?

a)

Construction rules

b)

Production rules

c)

Definition rules

d)

Establishing rules

37.

What type of object is enclosed in angle brackets in Backus-Naur form?

a)

Definitive

b)

Terminal

c)

Non-terminal

d)

Special

38.

Why is it that Backus-Naur form is capable of representing some languages that cannot be represented by regular expressions?

a)

Backus-Naur form supports definitions

b)

Backus-Naur form supports Recursion

c)

Backus-Naur form supports Selection

d)

Backus-Naur form supports Loops

39.

Which of the following examples uses valid recursion?

a)

<Number> ::= <Digit> | <Digit><Number>

b)

<Name> ::= <Forename><Surname>

c)

<Age> ::= <Digit>|<Digit><Digit>

d)

<Name> ::= <Name>

40.

For the set "A = {1, 2, 3, 4, 5 }"

which is the correct set comprehension

a)

A = {x | x ∈ ℕ ∧ 6 > x ≥ 1 }

b)

A = | x ∈ ℕ ∧ 5 > x ≥ 1

c)

A = (x | x ∈ ℕ A x ≥ 1 )

d)

A = {x ∈ ℕ ∧ 1 > x ≥ 5 }

41.

What is the "Cardinality" of a set?

a)

number of elements of a finite set

b)

number of elements of an infinite finite set

c)

number of elements of a finite or infinite set

d)

number of elements not in a given set

42.

What data structure can be used with postfix expressions?

a)

Queue

b)

Hash Table

c)

Vector

d)

Stack

43.

What is represented by ellipses in syntax diagrams?

a)

Terminals

b)

Non-Terminals

c)

Selections

d)

Definitions

44.

What 3 Parts does a RFID system contain?

a)

Ram, Power supply and Monitor

b)

Wheels, Engine, Battery

c)

Processor, Printer and Scanner

d)

Tag, Reader and Antenna

45.

What are the two types of RFID Tags?

a)

Active and Passive

b)

Aggressive and Passive

c)

Wireless and Wired

d)

Male and Female

46.

Active or Passive: Is not powered and receives power from reader

a)

Active

b)

Passive

47.

This is an image of which type of drive?

a)

Hard Disk Drive

b)

Optical Drive

c)

Solid State Drive

d)

CD Drive

48.

Which type of storage uses a laser?

a)

Magnetic

b)

Optical

c)

Solid State

49.
Typically stores 650mb of data on it - usually music.
a)
DVD
b)
Blu-ray
c)
CD
d)
Floppy disk
50.

A ferry departs from A(-25, 28). It takes 3 hours to reach its destination B(20, -32), travelling in as straight line with constant velocity. Distances are in km. Find the velocity vector of the ferry.

a)

15i + 20j

b)

15i - 20j

c)

20i + 15j

d)

20i - 15j

51.
Which data structure uses hashing to store information with constant lookup time?
a)
Hash table
b)
1D Array
c)
Linked List
d)
2D Array
e)
Stack
52.

The case in which a key other than the desired one is kept at the identified location is called?

a)

Hashing

b)

Collision

c)

Chaining

d)

Open addressing

53.

A hash table of length 10 uses open addressing with hash function h(k)=k mod 10, and linear probing. After inserting 6 values into an empty hash table, the table is as shown above.


Which one of the following choices gives a possible order in which the key values could have been inserted in the table?

a)

46, 42, 34, 52, 23, 33

b)

34, 42, 23, 52, 33, 46

c)

46, 34, 42, 23, 52, 33

d)

42, 46, 33, 23, 34, 52

54.

Which of the following statement(s) is TRUE?

1) A hash function takes a message of arbitrary length and generates a fixed length code.

2) A hash function takes a message of fixed length and generates a code of variable length.

3) A hash function may give the same hash value for distinct messages.

a)

1 only

b)

1 & 3 only

c)

2 & 3 only

d)

3 only

55.
Storage for data defined in terms of set of operations to be performed on the data 
a)
Arrays
b)
Variables
c)
Abstract Data Types
d)
Algorithms
56.
What kind of Data structure would you expect to find utilised to store operations in a CPU?
a)
Stack
b)
Queue
c)
List
d)
Tree
57.
What data type is this?
quiz = {"Do you help out at home? ":"yes",        
"Do you beleive in Santa? ":"yes"
}
a)
list
b)
string
c)
dictionart
d)
dictionary
58.

What type of data structure is an array?

a)

Static and mutable

b)

Dynamic and immutable

c)

Static and immutable

59.

When traversing a binary tree, which diagram is post-order?

a)
b)
c)
60.
The process of recording a sound, stored in the form of thousands of individual measurements, each at a discrete point in time, is called 
a)
sizing
b)
synthesizing
c)
quantizing
d)
sampling
61.
Which of the following sound file characteristics doesn't directly affect the size of a digital audio file?
a)
Sample rate
b)
Sample size
c)
Volume
d)
Compression
62.
The first format that uses a shorthand representation of musical notes and durations stored in numeric form is 
a)
MP3
b)
MIDI
c)
DSP
d)
MPEG
63.
Which of the statement is false regarding MIDI?
a)
the sound can easily be changed by any instruments
b)
spoken audio can be recorded by MIDI
c)
the MIDI files size is smaller than digital audio file
64.
Identify types of lossless compression
a)
Run length encoding
b)
Dictionary encoding
c)
Transform Coding
d)
Perceptual Coding
65.
If person A wants to send a message to person B using asymmetric encryption, which key should they use to encrypt the message?
a)
B’s public key
b)
A’s public key
c)
A’s private key
d)
B’s private key
66.
Identify properties that a hashing algorithm should have
a)
Low chance of collision
b)
Quick to calculate
c)
Output smaller than input
67.

Which of these is the correct definition of a pixel?

a)

The smallest addressable element of an image

b)

The smallest part of the screen that can be coloured

c)

A square part of an image

d)

One of the 'lights' on the computer screen

68.

When is Run Length Encoding not very effective?

a)

When there are lots of the same colour pixels in a row

b)

When there are lots of colour changes in a row

c)

When there are only two colours per row

d)

When there are lots of colours in runs on the same row

69.

The number of bits a system can send per second is bandwidth.

a)

True

b)

False

70.

The time it takes for a bit to get from sender to receiver.

a)

Network

b)

Latency

c)

Bandwidth

d)

Bitrate