wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

AQA Computer Science [AS Level]

Total questions: 63

Worksheet time: 33mins

Name
Class
Date
1.

Which of the following is Nyquist's Theorem?

a)

e = mc2

b)

file size = sample res * sample rate

c)

fs > 2fmax

2.

This is an example of what?

a)

Sequence

b)

Selection

c)

Iteration

d)

Declaration

3.

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

4.

Which of the following command words would be used to create 'count controlled' iteration?

a)

continue

b)

repeat

c)

while

d)

for

5.

Which of the following is variable declaration?

a)

myVariable = "Hello"

b)

"Hello" = myVariable

c)

int myVariable

d)

string = "Hello"

6.

Why would you use a named constant?

a)

To ensure that the value cannot be changed by the program

b)

To ensure that the value is always there throughout the program

c)

To enable the programmer to know what the value is at any time

d)

To allow the programmer to only need to make a change one place

7.

Which if the following command words allows the use of 'indefinite iteration'?

a)

repeat

b)

while

c)

for

d)

if

8.

Which data type should be used to hold "Hello World"?

a)

real

b)

string

c)

integer

d)

boolean

9.

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

10.

What does the code above demonstrate?

a)

Nested iteration

b)

Nested selection

c)

Condition-controlled iteration

d)

Count-controlled iteration

11.

A boolean can contain which of the following..?

a)

true

b)

0

c)

false

d)

1

12.

Real is a data type that holds...

a)

Ordinal numbers

b)

Whole numbers

c)

Numbers with a decimal part

d)

single characters

13.

A ................. returns a value

a)

Submarine

b)

Procedure

c)

Subroutine

d)

Function

14.

This Finite State Machine accepts which of the following inputs?

a)

111011x

b)

111001x

c)

1110x

15.

What is the denary equivalent of the hexadecimal number A7?

a)

192

b)

167

c)

11100111

d)

265

16.

Which of the following is a natural number?

a)

A

b)

B

c)

C

d)

D

17.

Which of these is an irrational number?

a)

A

b)

B

c)

C

d)

D

18.

Simplify the boolean expression 😆

a)

!(A and B)

b)

A or B

c)

!A and B

d)

A and !B

19.

This is which type of gate?

a)

OR

b)

NAND

c)

NOT

d)

AND

20.

What is the minimum file size of this image (in bytes)?

a)

128

b)

64

c)

32

d)

256

21.

What is meant by the resolution of a bitmapped graphic image?

a)

How big it is on screen

b)

The width * height in pixels

c)

The number of pixels

d)

How many colours are used

22.

What is a sound's sample rate measured in?

a)

amplitude

b)

bits

c)

bytes

d)

Hz

23.

How many bits does ASCII use?

a)

16

b)

8

c)

4

d)

7

24.

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

25.

What am I describing here?


"A set of related data items stored under a single identifier. Can work on one or more dimensions."

a)

A string

b)

A float

c)

An array

d)

A boolean

26.

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

a)

Linear search

b)

Binary search

c)

Merge sort

d)

Bubble sort

27.

Which of the following algorithms searches a list in order, one-by-one?

a)

Quick search

b)

Binary search

c)

Linear search

d)

Shuffle search

28.

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

a)

3

b)

4

c)

2

d)

10

29.

How many comparisons will a Linear Search make to find the number 56 in the list?

a)

3

b)

10

c)

8

d)

6

30.

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

31.

What is the correct term for the two words in the brackets in the function call above?

a)

Identifiers

b)

Variables

c)

Return types

d)

Parameters

32.

Why is it bad practice to use global variables?

a)

Because they are deleted after use

b)

Because they take up memory even when they are not required anymore

c)

It isn't, is it? 🙈

33.

Why should you try to use local variables in your programs?

a)

Because they are only created when the block they belong to is executed

b)

Because they will be more useful when running a large program

c)

Because it will be easier to pass parameters than just make the variables at the top

d)

Because they are local so the function/procedure will 'know' it

34.

What type of error will this code produce if executed?

a)

Array index too large

b)

Array index out of bounds

c)

Null value exception

d)

Syntax

35.

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

36.

Which of the following are base 2 number systems?

a)

Binary

b)

Denary

c)

Octal

d)

Hexadecimal

37.

Which of the following are base 10 number systems?

a)

Binary

b)

Hexadecimal

c)

Denary

d)

Octal

38.

Which of the following are base 16 number systems?

a)

Octal

b)

Hexadecimal

c)

Binary

d)

Denary

39.

How many bytes are there in a kibibyte?

a)

1024000

b)

10000

c)

1000

d)

1024

40.

How many bytes are there in a Megabyte?

a)

10

b)

1024

c)

1000240

d)

1000000

41.

What is missing from the register notation above?

a)

SR <-- True

b)

CIR <-- MBR

c)

CIR <-- [MBR]

d)

CIR <-- MAR

42.

Which network topology is this?

a)

Star

b)

Bus

c)

Mesh

d)

Linear

43.

Which network topology is this?

a)

Star

b)

Bus

c)

Mesh

d)

Sparkle

44.

Given the following inputs, what would be the output?


A = 1, B = 0, C = 0

a)

0

b)

1

c)

True

d)

01

45.

Which logic gate does this symbol represent?

a)

XOR

b)

OR

c)

AND

d)

NAND

46.

What is Bytecode?

a)

A binary representation of a particular letter, number or special character

b)

The particular pattern of 0s and 1s that a particular processor recognises as commands

c)

An instruction set used for programming that can be executed on any device using a virtual machine

d)

Code that can be directly executed by a device that has the correct processor architecture

47.

Which of the following are responsibilities of a CPU?

a)

Memory management

b)

Managing IO devices

c)

Reading data

d)

File management

e)

Creation of a virtual machine

48.

Given the ASCII code 65 (value A), what is the value of the ASCII code 70?

a)

f

b)

F

c)

g

d)

E

49.

Which of these is not a valid Assembly instruction?

a)

LDR

b)

SUB

c)

STR

d)

DIV

50.

What will be stored into R2 immediately after line 1 is executed?

a)

100

b)

101

c)

23

d)

R3

51.

What type of programming language am I describing here?


"A language based on giving the computer commands or procedures to follow."

a)

Declarative

b)

Object-Oriented

c)

Functional

d)

Imperative

52.

Declarative languages are:

a)

A programming paradigm that uses mathematical functions

b)

Languages that declare or specify what properties a result should have (e.g. results will be based on existing functions)

c)

Machine code and assembly language

d)

A programming paradigm that encapsulates instructions and data together into objects

53.

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

a)

Einstein's

b)

Neptune's

c)

Newton's

d)

De Morgan's

54.

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

55.

What am I describing here?


"The number of bits that can be addressed, transferred or manipulated as one unit."

a)

Data bus

b)

Address bus

c)

A Byte

d)

Word length

56.

What did the Von Neumann architecture allow us to do for the first time?

a)

Change the program loaded into a computer

b)

Change the code loaded into a computer

c)

Add programs to RAM

d)

Remove data from a computer

57.

How does the Harvard Architecture differ from the Von Neumann architecture?

a)

It stores all data and instructions in the same memory blocks

b)

It uses different buses and memory for data and instructions

c)

It allows the program to be changed

58.

Which of the following labels are correct?

a)

A: Processor, B: VDU, C: Keyboard, D: Main Memory

b)

A: VDU, B: Processor, C: Keyboard, D: Main Memory

c)

A: Main Memory, B: Processor, C: VDU, D: Keyboard

d)

A: VDU, B: Processor, C: Main Memory, D: Keyboard

59.

What is an opcode?

a)

An operation code or instruction used in assembly language

b)

A value or memory address that forms part of an assembly language instruction

c)

The way in which operands are interpreted

d)

Short codes that are used as instructions

60.

What is meant by Immediate Addressing?

a)

The operand is the actual data required for the operation

b)

The operand is given to the processor very quickly

c)

The operand is provided upon request if a passcode is provided

d)

The operand is the memory address or register number

61.

What is meant by Direct Addressing?

a)

The operand is the datum

b)

The operand is the memory address or register number

c)

The operand is provided extremely quickly

d)

The operand is taken directly from memory

62.

What would be the result of this logical operation?

a)

0011

b)

1001

c)

0001

d)

1000

63.

Which of the following acts/laws protects the data held about people?

a)

Freedom of Information Act

b)

Data Protection Act

c)

Computer Misuse Act

d)

Copyright, Design and Patents Act