wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

AQA A Level Computer Science 2

Total questions: 85

Worksheet time: 1hrs 10mins

Name
Class
Date
1.

What are the conditions required for a Vernam cipher to be 100% mathematically secure?

a)

The key is used only once, and then destroyed/

b)

The key is made up of truly random characters/

c)

The key must be made up of fewer characters than the plaintext message.

d)

Different keys must be used to encrypt and decrypt a message.

2.

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

3.

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

4.

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

5.

How many different combinations of bit patterns can be represented using ASCII?

a)

127

b)

128

c)

255

d)

256

6.

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

7.

Data is received that had been sent using majority voting. The received bit pattern is 100 000 011 111.

What bit pattern does the receiving device interpret this as?

a)

0011

b)

1010

c)

0001

d)

1001

8.

10.Complete this sentence: .edu is a ……………………… level domain.

a)

A.Top

b)

B.2nd

c)

C.3rd

9.

11.Complete this sentence: A domain name is ……………………… in structure.

a)

A.Linear

b)

B.Sequential

c)

C.Hierarchical

10.

Internet registrars are important because they hold all records of all existing website names and the details of those domains that are available to purchase.

How many Internet registrars are there in the world?

a)

5

b)

10

c)

15

d)

20

11.

What does DNS stand for?

(a)  

12.

To connect a computer to a wired network - you need a 'NIC'. NIC stands for

a)

Network Integration Circuit

b)

Network Integration Card

c)

Node Integration Card

d)

Network Interface Card

13.

At the ends of each bus network, to prevent signals reflecting back down the bus - what device is used?

a)

A terminator

b)

An exterminator

c)

A repeater

d)

An Ethernet jack

14.

Which regular expression matches the FSM?

a)

a?bc(dc)*

b)

a|b(cd)+

c)

a+bc(dc)?

d)

a(b|c)d*c*

15.

Select the strings that are matched by the regular expression:

a(b|c)?d

a)

abcbcbcbcd

b)

acd

c)

ad

d)

acccd

16.

Which of the following is Nyquist's Theorem?

a)

e = mc2

b)

file size = sample res * sample rate

c)

fs > 2fmax

17.

Simplify the boolean expression 😆

a)

!(A and B)

b)

A or B

c)

!A and B

d)

A and !B

18.

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

19.

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

a)

3

b)

4

c)

2

d)

10

20.

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

21.

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

a)

Einstein's

b)

Neptune's

c)

Newton's

d)

De Morgan's

22.

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

23.

passes data over the physical network

a)

transport layer

b)

internet layer

c)

link layer

d)

application layer

24.

Responsible for packet switching

a)

TCP

b)

UDP

c)

IP

d)

FTP

25.

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

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.

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

29.

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

30.

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

31.

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 *

32.

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

a)

Definitive

b)

Terminal

c)

Non-terminal

d)

Special

33.

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

34.

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>

35.

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 }

36.

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

37.

What are the two types of RFID Tags?

a)

Active and Passive

b)

Aggressive and Passive

c)

Wireless and Wired

d)

Male and Female

38.

Which type of storage uses a laser?

a)

Magnetic

b)

Optical

c)

Solid State

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

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

41.

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

42.

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

43.
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
44.

What type of data structure is an array?

a)

Static and mutable

b)

Dynamic and immutable

c)

Static and immutable

45.

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

a)
b)
c)
46.
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
47.
Identify types of lossless compression
a)
Run length encoding
b)
Dictionary encoding
c)
Transform Coding
d)
Perceptual Coding
48.
Identify properties that a hashing algorithm should have
a)
Low chance of collision
b)
Quick to calculate
c)
Output smaller than input
49.

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

50.

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

a)

True

b)

False

51.

The compressed representation of the transmitted bit pattern 0000011100000011 using RLE would be...

a)

0 1 0 1

b)

5 3 6 2

c)

5

d)

5 0 3 1 6 0 2 1

52.
What is returned as a result of the call mystery(4,6)?
a)
2
b)
3
c)
4
d)
1
53.

Which protocol do stacks follow?

a)

FIFO

b)

LIFO

54.

What is the value of the postfix expression 6 3 2 4 + – *:

a)

1

b)

14

c)

74

d)

-18

55.

Which of these is a full adder?

a)
b)
c)
d)
56.

What is the purpose of a D-type flip flop?

a)

The add two numbers

b)

To add two bits

c)

To only be able to change a bit whilst the clock is on a falling edge

d)

To only be able to change a bit whilst the clock is on a rising edge

57.

What is sampling rate?

a)

The number of samples taken per second

b)

The number of bits used to represent each pitch of sound

c)

The number of pitches of sound

d)

How long the clip is

58.

Which are examples of lossy files?

a)

JPEG

b)

MP3

c)

ZIP

d)

PNG

e)

GIF

59.

What is sampling resolution?

a)

The number of samples taken per second

b)

The number of bits used to represent each wave sample

c)

The number of pitches of sound

d)

How long the clip is

60.

How many octets is an IPv4 address made up of?

a)

1

b)

2

c)

3

d)

4

61.

What does TCP stand for?

a)

Transfer Control Protocol

b)

Transmission Control Protocol

c)

Transfer Character Protocol

d)

Transmission Character Protocol

62.

Which of the TCP/IP model layers is responsible for breaking down the message into packets?

a)

Network

b)

Application

c)

Transport

d)

Internet

63.
What is the first subnet address on network  192.168.1.0 /25
a)
192.168.1.0 /25
b)
192.168.1.128 /25
c)
192.168.1.64 /25
d)
192.168.1.192 /25
64.

How many bytes are there in a Megabyte?

a)

10

b)

1024

c)

1000240

d)

1000000

65.

Given the following inputs, what would be the output?


A = 1, B = 0, C = 0

a)

0

b)

1

c)

True

d)

01

66.
A unique identifier assigned to network adapters by the manufacturer. This address is six octets in length and is written in hexadecimal.
a)
Encoded
b)
Media Access Control (MAC) address
c)
CAM table
67.

Which legislation governs the act of hacking?

a)

The Freedom of Information Act

b)

The Data Protection Act

c)

Creative Commons License

d)

The Computer Misuse Act

68.
Magnetic disks are organised into.....
a)
circles and wedges
b)
sectors and tracks
c)
chunks and stretches
d)
disks and docks
69.
Optical storage uses what for 0s and 1s
a)
Pits and pots
b)
Pits and lands
c)
Highs and Lows
d)
Light and dark
70.
7. What is one disadvantage of using Magnetic disks?
a)
They can break easily due to the moving parts
b)
They are expensive compared to solid state drives
c)
They have limited capcaity
d)
They aren't compatible with some applications
71.
10. What is one disadvantage of Optical storage methods?
a)
Very low comparative disk capacity
b)
They are very expensive
c)
They don't work for some data types
d)
Aren't sold commerically anymore
72.

What does the code above demonstrate?

a)

Nested iteration

b)

Nested selection

c)

Condition-controlled iteration

d)

Count-controlled iteration

73.

Which layer of the TCP/IP stack determines which application layer software on the server should deal with a received request by using port numbers?

a)

Application

b)

Transport

c)

Network

d)

DataLink

74.

Which form of transmission results in the clocks for the receiver and transmitter synchronising for the duration of a transmission?

(a)  

75.

Which of the following is not a condition required by the vernam cipher?

a)

The key must be truly random.

b)

The key must be transmitted with the data being encrypted/ rendered into ciphertext

c)

The key must not be reused.

d)

The key must be at least as long as the data to be encrypted/plaintext.

e)

The key must be kept securely

76.

The highest frequency component in a sound that is being sampled is 14,500 Hz. What should the minimum sample rate be?

(a)  

77.

Which of the boolean equations above are incorrect? Select more than one.

a)

Equation 1

b)

Equation 2

c)

Equation 3

d)

Equation 4

e)

Equation 5

78.

A band is recording and digitising a song to make available as a download from their website.

The song lasts 3 minutes. The sample resolution is 16 bits and a sample rate of 44 kHz has been used. Calculate the minimum amount of storage space, in megabytes (MB), for the song and leave your answer with a precision of two decimal places.

(a)  

79.

What is the name of the logic gate above?

(a)  

80.

SSID Stands for?

(a)  

81.

The number of signal changes (which may occur) in a given period of time/in a second is known as...

(a)  

82.

The range of frequencies that can be transmitted across a network connection is known as...

(a)  

83.

(a)   communication is most notably evidenced with buses, where multiple bits are sent simultaneously.

84.

Convert 0011 1001 into Hexadecimal.

(a)  

85.

Calculate the minimum size of file that could be used to store the bitmap image in the figure above. Express your answer in bytes.

(a)