Font size
WorksheetsAQA Computer Science [AS Level]
Total questions: 63
Worksheet time: 33mins
Which of the following is Nyquist's Theorem?
e = mc2
file size = sample res * sample rate
fs > 2fmax
This is an example of what?
Sequence
Selection
Iteration
Declaration
Abstraction is the act of...
Adding extra detail to enable someone else to be able to solve the task without your help
Removing the detail that is important to solve the task
Removing all unnecessary detail to focus on what is important to solve the task
Creating an image that is similar to the object in question in some abstract way
Which of the following command words would be used to create 'count controlled' iteration?
continue
repeat
while
for
Which of the following is variable declaration?
myVariable = "Hello"
"Hello" = myVariable
int myVariable
string = "Hello"
Why would you use a named constant?
To ensure that the value cannot be changed by the program
To ensure that the value is always there throughout the program
To enable the programmer to know what the value is at any time
To allow the programmer to only need to make a change one place
Which if the following command words allows the use of 'indefinite iteration'?
repeat
while
for
if
Which data type should be used to hold "Hello World"?
real
string
integer
boolean
When would you use 'indefinite iteration'?
When you are unsure about how many times a loop will need to run to satisfy a condition
When you know exactly how many times you need to run the loop in the algorithm
When you want a different piece of code to run depending upon the value of a variable or condition
What does the code above demonstrate?
Nested iteration
Nested selection
Condition-controlled iteration
Count-controlled iteration
A boolean can contain which of the following..?
true
0
false
1
Real is a data type that holds...
Ordinal numbers
Whole numbers
Numbers with a decimal part
single characters
A ................. returns a value
Submarine
Procedure
Subroutine
Function
This Finite State Machine accepts which of the following inputs?
111011x
111001x
1110x
What is the denary equivalent of the hexadecimal number A7?
192
167
11100111
265
Which of the following is a natural number?
A
B
C
D
Which of these is an irrational number?
A
B
C
D
Simplify the boolean expression 😆
!(A and B)
A or B
!A and B
A and !B
This is which type of gate?
OR
NAND
NOT
AND
What is the minimum file size of this image (in bytes)?
128
64
32
256
What is meant by the resolution of a bitmapped graphic image?
How big it is on screen
The width * height in pixels
The number of pixels
How many colours are used
What is a sound's sample rate measured in?
amplitude
bits
bytes
Hz
How many bits does ASCII use?
16
8
4
7
What is the difference between a static and dynamic data type?
Dynamic data types are fixed and static can change size
A dynamic data type can change size at run time, whereas static cannot
No difference, the are the same
What am I describing here?
"A set of related data items stored under a single identifier. Can work on one or more dimensions."
A string
A float
An array
A boolean
Which of the following is a 'divide and conquer' algorithm?
Linear search
Binary search
Merge sort
Bubble sort
Which of the following algorithms searches a list in order, one-by-one?
Quick search
Binary search
Linear search
Shuffle search
How many comparisons will a Binary Search make to find the number 23 in the list?
3
4
2
10
How many comparisons will a Linear Search make to find the number 56 in the list?
3
10
8
6
How many passes will a Bubble Sort need to make to sort this list (in ascending order)?
1
2
3
4
What is the correct term for the two words in the brackets in the function call above?
Identifiers
Variables
Return types
Parameters
Why is it bad practice to use global variables?
Because they are deleted after use
Because they take up memory even when they are not required anymore
It isn't, is it? 🙈
Why should you try to use local variables in your programs?
Because they are only created when the block they belong to is executed
Because they will be more useful when running a large program
Because it will be easier to pass parameters than just make the variables at the top
Because they are local so the function/procedure will 'know' it
What type of error will this code produce if executed?
Array index too large
Array index out of bounds
Null value exception
Syntax
What does the following describe?
The process of breaking a problem down into smaller problems that can be solved more easily.
Declaration
Functional Abstraction
Abstraction
Decomposition
Which of the following are base 2 number systems?
Binary
Denary
Octal
Hexadecimal
Which of the following are base 10 number systems?
Binary
Hexadecimal
Denary
Octal
Which of the following are base 16 number systems?
Octal
Hexadecimal
Binary
Denary
How many bytes are there in a kibibyte?
1024000
10000
1000
1024
How many bytes are there in a Megabyte?
10
1024
1000240
1000000
What is missing from the register notation above?
SR <-- True
CIR <-- MBR
CIR <-- [MBR]
CIR <-- MAR
Which network topology is this?
Star
Bus
Mesh
Linear
Which network topology is this?
Star
Bus
Mesh
Sparkle
Given the following inputs, what would be the output?
A = 1, B = 0, C = 0
0
1
True
01
Which logic gate does this symbol represent?
XOR
OR
AND
NAND
What is Bytecode?
A binary representation of a particular letter, number or special character
The particular pattern of 0s and 1s that a particular processor recognises as commands
An instruction set used for programming that can be executed on any device using a virtual machine
Code that can be directly executed by a device that has the correct processor architecture
Which of the following are responsibilities of a CPU?
Memory management
Managing IO devices
Reading data
File management
Creation of a virtual machine
Given the ASCII code 65 (value A), what is the value of the ASCII code 70?
f
F
g
E
Which of these is not a valid Assembly instruction?
LDR
SUB
STR
DIV
What will be stored into R2 immediately after line 1 is executed?
100
101
23
R3
What type of programming language am I describing here?
"A language based on giving the computer commands or procedures to follow."
Declarative
Object-Oriented
Functional
Imperative
Declarative languages are:
A programming paradigm that uses mathematical functions
Languages that declare or specify what properties a result should have (e.g. results will be based on existing functions)
Machine code and assembly language
A programming paradigm that encapsulates instructions and data together into objects
This is one of ....................... laws
Einstein's
Neptune's
Newton's
De Morgan's
What is the job of the logic circuit above?
Checks is a sensor is activated
Adds two binary numbers together
Subtracts one binary number from another
Adds two binary numbers and produces a sum and carry bit
What am I describing here?
"The number of bits that can be addressed, transferred or manipulated as one unit."
Data bus
Address bus
A Byte
Word length
What did the Von Neumann architecture allow us to do for the first time?
Change the program loaded into a computer
Change the code loaded into a computer
Add programs to RAM
Remove data from a computer
How does the Harvard Architecture differ from the Von Neumann architecture?
It stores all data and instructions in the same memory blocks
It uses different buses and memory for data and instructions
It allows the program to be changed
Which of the following labels are correct?
A: Processor, B: VDU, C: Keyboard, D: Main Memory
A: VDU, B: Processor, C: Keyboard, D: Main Memory
A: Main Memory, B: Processor, C: VDU, D: Keyboard
A: VDU, B: Processor, C: Main Memory, D: Keyboard
What is an opcode?
An operation code or instruction used in assembly language
A value or memory address that forms part of an assembly language instruction
The way in which operands are interpreted
Short codes that are used as instructions
What is meant by Immediate Addressing?
The operand is the actual data required for the operation
The operand is given to the processor very quickly
The operand is provided upon request if a passcode is provided
The operand is the memory address or register number
What is meant by Direct Addressing?
The operand is the datum
The operand is the memory address or register number
The operand is provided extremely quickly
The operand is taken directly from memory
What would be the result of this logical operation?
0011
1001
0001
1000
Which of the following acts/laws protects the data held about people?
Freedom of Information Act
Data Protection Act
Computer Misuse Act
Copyright, Design and Patents Act
