Professional Documents
Culture Documents
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What does the Arithmetic and Logic unit
do?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What does the Arithmetic and Logic unit do?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What is the Control Unit?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What is the Control Unit?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What are registers?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What are registers?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
Where do all the arithmetic, logic, or shift
operations occur?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
Where do all the arithmetic, logic, or shift operations
occur?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What does the Program Counter (PC)
do?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What does the Program Counter (PC) do?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
In which register do all calculations take
place?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
In which register do all calculations take place?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
Where are intermediate arithmetic and
logic results stored?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
Where are intermediate arithmetic and logic results
stored?
In the accumulator (ACC).
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What does the Memory Address Register
do?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What does the Memory Address Register do?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What does the Memory Data Register
do?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What does the Memory Data Register do?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What does the Current Instruction
Register do?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What does the Current Instruction Register do?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What is a Bus?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What is a Bus?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What is the system bus?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What is the system bus?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What is the width of a bus?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What is the width of a bus?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What is the data bus?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What is the data bus?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What is the control bus?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What is the control bus?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What is the address bus used for?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What is the address bus used for?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What does adding a wire to the address
bus do to the number of addressable
locations?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What does adding a wire to the address bus do to
the number of addressable locations?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What does the Bus Request indicate?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What does Bus Request indicate?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What does Bus Grant indicate?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What does Bus Grant indicate?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What does memory write do?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What does memory write do?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What does memory read do?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What does memory read do?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What does the interrupt request control
signal indicate?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What does the interrupt request control signal
indicate?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What is the clock control signal used for?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What is the clock control signal used for?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What is Assembly Language?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What is Assembly Language?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What is opcode?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What is opcode?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What is the operand?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What is the operand?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What occurs during the fetch phase?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What occurs during the fetch phase?
- The address from the PC is copied to the MAR,
- Instruction held at that address is copied to the
MDR by the data bus, simultaneously the
contents of the PC is increased by 1,
- The value of the MDR is copied to the CIR
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What occurs during the decode phase?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What occurs during the decode phase?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What occurs during the execute phase?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What occurs during the execute phase?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What is the clock speed?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What is the clock speed?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What is cache memory?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What is cache memory?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
A-Level only
What is pipelining?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What is pipelining
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What is Von Neumann architecture?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What is Von Neumann architecture?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What is Harvard architecture?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What is Harvard architecture?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What is contemporary processing?
https://bit.ly/pmt-cc
https://bit.ly/pmt-edu https://bit.ly/pmt-cc
What is contemporary processing?
www.pmt.education
What does RISC mean?
www.pmt.education
What does RISC mean?
www.pmt.education
What does CISC mean?
www.pmt.education
What does CISC mean?
www.pmt.education
What are the properties of RISC?
www.pmt.education
What are the properties of RISC?
www.pmt.education
What are the properties of CISC?
www.pmt.education
What are the benefits of RISC processors?
www.pmt.education
What are the benefits of CISC
processors?
www.pmt.education
What are the benefits of CISC processors?
www.pmt.education
What is a graphics processing unit?
www.pmt.education
What is a graphics processing unit?
www.pmt.education
A-Level only
www.pmt.education
What are GPUs used for now?
www.pmt.education
What are multi-core systems?
www.pmt.education
What are multi-core systems?
www.pmt.education
What are parallel systems?
www.pmt.education
What are parallel systems?
www.pmt.education
Give two types of magnetic storage
www.pmt.education
Give two types of magnetic storage
Two from:
● Hard disk drive
● Floppy disk
● Magnetic tape
www.pmt.education
Give three examples of input devices
www.pmt.education
Give three examples of input devices
Three from:
Keyboard Touchpad
Mouse Barcode reader
Microphone Magnetic stripe reader
Webcam Etc.
www.pmt.education
Give an example of a device which is
used for both input and output
www.pmt.education
Give an example of a device which is used for both
input and output
Touchscreen
www.pmt.education
What name is given to the areas on a
CD’s surface which have been burned
into grooves by a laser?
www.pmt.education
What name is given to the areas on a CD’s surface
which have been burned into grooves by a laser?
Pits
www.pmt.education
What does CD stand for?
www.pmt.education
What does CD stand for?
Compact Disc
www.pmt.education
Give three examples of output devices
www.pmt.education
Give three examples of output devices
Three from:
Speaker
Monitor
Printer
Projector
www.pmt.education
Which has the highest typical storage
capacity: CD, DVD or Blu-Ray?
www.pmt.education
Which has the highest typical storage capacity: CD,
DVD or Blu-Ray?
Blu-Ray
www.pmt.education
In a hard disk drive, what is mounted at
the end of the actuating arm?
www.pmt.education
In a hard disk drive, what is mounted at the end of
the actuating arm?
www.pmt.education
Give two types of magnetic storage
www.pmt.education
Give two types of magnetic storage
Two from:
● Hard disk drive
● Floppy disk
● Magnetic tape
www.pmt.education
Which storage device has typical
capacities in the range 500GB-5TB?
www.pmt.education
Which storage device has typical capacities in the
range 500GB-5TB?
www.pmt.education
Give two disadvantages of SSDs
www.pmt.education
Give two disadvantages of SSDs
www.pmt.education
What does ROM stand for?
www.pmt.education
What does ROM stand for?
www.pmt.education
Describe the structure in which
information is stored in flash memory
www.pmt.education
Describe the structure in which information is stored
in flash memory
www.pmt.education
What is meant by non-volatile?
www.pmt.education
What is meant by non-volatile?
www.pmt.education
Which two types of logic gate are used in
flash storage?
www.pmt.education
Which two types of logic gate are used in flash
storage?
www.pmt.education
Give three advantages of SSDs
www.pmt.education
Give three advantages of SSDs
www.pmt.education
Is ROM volatile or non-volatile?
www.pmt.education
Is ROM volatile or non-volatile?
Non-volatile
www.pmt.education
Which form of storage device uses
silicon semiconductors to store
information?
www.pmt.education
Which form of storage device uses silicon
semiconductors to store information?
Flash
www.pmt.education
Give three disadvantages of CDs
www.pmt.education
Give three disadvantages of CDs
www.pmt.education
OCR Computer Science A Level
1.2.1 Systems Software
Flashcards
www.pmt.education
What is an operating system?
www.pmt.education
What is an operating system?
www.pmt.education
Give 3 functions of an operating system.
www.pmt.education
Give 3 functions of an operating system.
Three from:
- Memory management - Security
- Resource management - User interface
- I/Output management - Utility software
- Interrupt management
www.pmt.education
What are the similarities and differences
between paging and segmentation?
www.pmt.education
What are the similarities and differences between
paging and segmentation?
www.pmt.education
Describe how virtual memory is used when there is
not enough RAM.
A section of the hard drive is used to act as RAM
www.pmt.education
What is an interrupt?
www.pmt.education
What is an interrupt?
www.pmt.education
Explain the stages of the Interrupt
Service Routine.
www.pmt.education
Explain the stages of the Interrupt Service Routine.
www.pmt.education
Are these scheduling algorithms
pre-emptive or non pre-emptive?
FCFS, SRT, SJF, MLFQ, RR
www.pmt.education
Are the scheduling algorithms pre-emptive or non
pre-emptive?
www.pmt.education
What are the advantages and
disadvantages of using Multilevel
Feedback Queues for scheduling?
www.pmt.education
Give one advantage and disadvantage of using
Multilevel Feedback Queues for scheduling.
www.pmt.education
Define a real-time operating system and
when it may be used.
www.pmt.education
Define a real-time operating system and when it may
be used.
Real-time operating systems perform a task
within a guaranteed time frame. They are used in
systems were a response within a given time
frame is critical eg. life support systems,
self-driving cars, power systems.
www.pmt.education
Describe three functions of the BIOS.
www.pmt.education
Describe three functions of the BIOS.
www.pmt.education
What is the role of a device driver?
www.pmt.education
What is the role of a device driver?
www.pmt.education
Describe an instance in which a Virtual
Machine may be used.
www.pmt.education
Describe an instance in which a Virtual Machine may
be used.
● Testing programs
● Protection from malware
● Running software compatible with different
versions and types of operating systems
www.pmt.education
Give one advantage and one
disadvantage of intermediate code.
www.pmt.education
Give one advantage and one disadvantage of
intermediate code.
www.pmt.education
OCR Computer Science A Level
1.2.2 Applications Software
Flashcards
www.pmt.education
What is the difference between
applications and systems software?
www.pmt.education
What is the difference between applications and
systems software?
www.pmt.education
Give 3 examples of utilities
Three from
- Compression - Automatic backup
- Disk defragmentation - Automatic updating
- Antivirus
www.pmt.education
Give one advantage of using closed
source code
www.pmt.education
Give one advantage of using closed source code
www.pmt.education
State two features of open source code
www.pmt.education
State two features of open source code
www.pmt.education
Give two advantages of using compiled
code over interpreted code
www.pmt.education
Give two advantages of using compiled code over
interpreted code
- Faster to execute
- Does not require compiler to run
www.pmt.education
Give two advantages of using interpreted
code over compiled code
www.pmt.education
Give two advantages of using interpreted
code over compiled code
Two from:
- Is platform independent
- Runs instantly without time waiting for compilation
- Useful for debugging
www.pmt.education
What is assembly language?
www.pmt.education
What is assembly language?
www.pmt.education
What are the stages of compilation?
www.pmt.education
What are the stages of compilation?
● Lexical analysis
● Syntax analysis
● Code generation
● Optimisation
www.pmt.education
What happens during syntax analysis?
www.pmt.education
What happens during syntax analysis?
www.pmt.education
What are the similarities and differences between
static and dynamic linkers?
Static: Library code copied into the file. File size increased.
www.pmt.education
Give three advantages of using libraries.
- Error-free
- Save time
- Re-usable
- No need to ‘reinvent the wheel’
- Designed by experts
www.pmt.education
Describe the function of a loader
www.pmt.education
Describe the function of a loader
www.pmt.education
What is the purpose of the optimisation
stage of compilation?
www.pmt.education
What is the purpose of the optimisation stage of
compilation?
www.pmt.education
OCR Computer Science A Level
1.4.1 Data Types
Flashcards
www.pmt.education
What data type should be used for
storing a phone number like
07886756443?
www.pmt.education
What data type should be used for storing a phone
number like 07886756443?
String
Numeric types would omit the leading 0.
www.pmt.education
Perform an AND mask on the binary
numbers:
10101101
01011011
www.pmt.education
Perform an AND mask on the binary numbers
00001001
www.pmt.education
Which data type stores a
collection of characters?
www.pmt.education
Which data type stores a collection of characters?
String
www.pmt.education
Add the two binary numbers:
01011011
00111010
149
0 1 0 1 1 0 1 1
+ 0 0 1 1 1 0 1 0
1 0 0 1 0 1 0 1
www.pmt.education
What is the decimal 45 in binary?
www.pmt.education
What is the decimal 45 in binary?
00101101
www.pmt.education
What is the hexadecimal 2E in decimal?
www.pmt.education
What is the hexadecimal 2E in decimal?
(2×16) + (14×1) = 46
www.pmt.education
What is the hexadecimal 45 in binary?
www.pmt.education
What is the hexadecimal 45 in binary?
01000101
www.pmt.education
Which data type stores
just True and False?
www.pmt.education
Which data type stores just True and False?
Boolean
www.pmt.education
What is -5 in sign magnitude binary?
www.pmt.education
What is -5 in sign magnitude binary?
1101
www.pmt.education
What does the binary 01101100
represent in hexadecimal?
www.pmt.education
What does the binary 01101100 represent in
hexadecimal?
6C
www.pmt.education
What is the effect of a logical
shift left by one place?
www.pmt.education
What is the effect of a logical shift left by one place?
www.pmt.education
What is the two’s complement binary
10101101 in decimal?
www.pmt.education
What is the two’s complement binary 10101101 in
decimal?
-83
www.pmt.education
The binary 0011010000110 is a floating
point number with a single-bit sign, 8-bit
mantissa and 4-bit exponent.
www.pmt.education
What is the number in decimal?
52
www.pmt.education
Perform a logical shift right by two places
on the binary number 01101010 and
convert your result to decimal.
www.pmt.education
Perform a logical shift right by two places on the
binary number 01101010 and convert your result to
decimal.
26.5
www.pmt.education
Perform an XOR mask on the binary
numbers:
01010101
10111011
www.pmt.education
Perform an XOR mask on the binary numbers
11101110
www.pmt.education
Which of the following is not a character?
A: 8 C: %
B: R D: 43
www.pmt.education
Which is not a character?
www.pmt.education
The binary 1100110000011 is a floating
point number with a single-bit sign, 8-bit
mantissa and 4-bit exponent.
www.pmt.education
What is the number in decimal?
-9.5
www.pmt.education
OCR Computer Science A Level
1.4.2 Data Structures
Flashcards
www.pmt.education
What is an array?
www.pmt.education
What is an array?
www.pmt.education
What type of array is a linear array?
www.pmt.education
What type of array is a linear array?
A one-dimensional array.
www.pmt.education
How can you visualise a two-dimensional
array?
www.pmt.education
How can you visualise a two dimensional array?
As a spreadsheet or table.
www.pmt.education
How can you visualise a three
dimensional array?
www.pmt.education
How can you visualise a three dimensional array?
www.pmt.education
What is a record also known as?
www.pmt.education
What is a record also known as?
A row in a file
www.pmt.education
What is a record made up of?
www.pmt.education
What is a record made up of?
www.pmt.education
How can you select a field from a record
using pseudocode?
www.pmt.education
How can you select a field from a record using
pseudocode?
recordName.fieldName
www.pmt.education
What is the definition of a list?
www.pmt.education
What is the definition of a list?
www.pmt.education
What are the main differences between
arrays and lists?
www.pmt.education
What are the main differences between arrays and
lists?
www.pmt.education
What is a tuple?
www.pmt.education
What is the difference between a tuple
and an array?
www.pmt.education
What is the difference between a tuple and an array?
www.pmt.education
What is a linked list?
www.pmt.education
What is a linked list?
www.pmt.education
What is the name given to the items in a
linked list?
www.pmt.education
What is the name given to the items in a linked list?
Nodes
www.pmt.education
What does each item in a linked list
contain?
www.pmt.education
What does each item in a linked list contain?
www.pmt.education
What is a data field in a linked list?
www.pmt.education
What is a data field in a linked list?
www.pmt.education
What is a pointer field in a linked list?
www.pmt.education
What is a pointer field in a linked list?
www.pmt.education
What is a graph?
www.pmt.education
What is a graph?
www.pmt.education
What is a directed graph?
www.pmt.education
What is a directed graph?
www.pmt.education
What is an undirected graph?
www.pmt.education
What is an undirected graph?
www.pmt.education
What is a weighted graph?
www.pmt.education
What is a weighted graph?
www.pmt.education
Give two ways of representing graphs so
that they can be understood by
computers.
www.pmt.education
What two data types can a computer understand a
graph?
www.pmt.education
What are the advantages of using an
adjacency matrix?
www.pmt.education
What are the advantages of using an Adjacency
Matrix?
www.pmt.education
What are the advantages of using an
Adjacency List?
www.pmt.education
What are the advantages of using an Adjacency
Matrix?
www.pmt.education
What is a stack?
www.pmt.education
What is a stack?
www.pmt.education
Give an example of where stacks may
be used.
www.pmt.education
Give an example of where stacks may be used.
www.pmt.education
What is a queue?
www.pmt.education
What is a queue?
www.pmt.education
What is a tree?
www.pmt.education
What is a node?
www.pmt.education
What is a node?
www.pmt.education
What is an edge?
www.pmt.education
What is an edge?
www.pmt.education
What is the root node?
www.pmt.education
What is the root node?
www.pmt.education
What is a child?
www.pmt.education
What is a child?
www.pmt.education
What is a parent?
www.pmt.education
What is a parent?
www.pmt.education
What is a subtree?
www.pmt.education
What is a subtree?
www.pmt.education
What is a leaf?
www.pmt.education
What is a leaf?
www.pmt.education
What is a binary tree?
www.pmt.education
What is a binary tree?
www.pmt.education
What is the purpose of a binary tree?
www.pmt.education
What is the purpose of a binary tree?
www.pmt.education
What is a hash table?
www.pmt.education
What is a hash table?
www.pmt.education
What is a collision? (hashing)
www.pmt.education
What is a collision? (hashing)
www.pmt.education
What properties does a good hashing
algorithm have?
www.pmt.education
What properties does a good hashing algorithm
have?
www.pmt.education
What is pre-order traversal?
www.pmt.education
What is a pre-order traversal?
www.pmt.education
What is in-order traversal?
www.pmt.education
What is in-order traversal?
www.pmt.education
What is post-order traversal?
www.pmt.education
What is post-order traversal?
www.pmt.education
What does the operation isEmpty() do?
(Lists)
www.pmt.education
What does the operation isEmpty() do?
www.pmt.education
What does the operation append(value)
do? (Lists)
www.pmt.education
What does the operation append(value) do?
www.pmt.education
What does the operation remove(value)
do? (Lists)
www.pmt.education
What does the operation remove value do?
www.pmt.education
What does the operation search(value)
do? (Lists)
www.pmt.education
What does the operation search(value) do?
www.pmt.education
What does the operation length() do?
(Lists)
www.pmt.education
What does the operation length() do?
www.pmt.education
What does the operation index(value)
do? (Lists)
www.pmt.education
What does the operation index(value) do?
www.pmt.education
What does the operation insert(position,
value) do? (Lists)
www.pmt.education
What does the operation insert(position, value) do?
www.pmt.education
What does the operation pop() do (Lists)
www.pmt.education
What does the operation pop() do?
www.pmt.education
What does pop(position) do? (Lists)
www.pmt.education
What does pop(position) do?
www.pmt.education
What does the operation isEmpty() do?
(Stacks)
www.pmt.education
What does the operation isEmpty() do?
www.pmt.education
What does the operation push(value)
do? (Stacks)
www.pmt.education
What does the operation push(value) do?
www.pmt.education
What does the operation peek() do?
(Stacks)
www.pmt.education
What does the operation peek() do?
www.pmt.education
What does the operation pop() do?
(Stacks)
www.pmt.education
What does the operation pop() do?
www.pmt.education
What does the operation size() do?
(Stacks)
www.pmt.education
What does the operation size() do?
www.pmt.education
What does the operation isFull() do?
(Stacks)
www.pmt.education
What does the operation isFull() do?
www.pmt.education
What does the operation
enQueue(value) do? (Queue)
www.pmt.education
What does the operation enQueue(value) do?
www.pmt.education
What does the operation deQueue() do?
(Queue)
www.pmt.education
What does the operation deQueue() do?
www.pmt.education
What does the operation isEmpty() do?
(Queue)
www.pmt.education
What does the operation isEmpty() do?
www.pmt.education
What does the operation isFull() do?
(Queue)
www.pmt.education
What does the operation isFull() do?
www.pmt.education
OCR Computer Science A Level
1.4.3 Boolean Algebra
Flashcards
www.pmt.education
Which logic gate is this?
www.pmt.education
Which logic gate is this?
www.pmt.education
What is the equation symbol
for conjunction?
www.pmt.education
What is the equation symbol for conjunction?
www.pmt.education
Which is the truth table for AND?
A B C D
www.pmt.education
Which was the truth table for AND?
www.pmt.education
What will the value of Y be
in this logic circuit?
1 0
www.pmt.education
What would be the value of Y in the logic circuit?
www.pmt.education
State De Morgan’s laws
www.pmt.education
State De Morgan’s laws
www.pmt.education
Simplify the Boolean expression
www.pmt.education
Simplify the Boolean expression
www.pmt.education
Apply one of De Morgan’s laws to the
Boolean expression .
www.pmt.education
Apply one of De Morgan’s laws to the Boolean
expression
www.pmt.education
What is the purpose of a D-type flip flop?
www.pmt.education
What is the purpose of a D-type flip flop?
www.pmt.education
When is the stored value in a
D-type flip flop updated?
www.pmt.education
When is the stored value in a D-type flip flop
updated?
www.pmt.education
What is the logic circuit for a half adder?
www.pmt.education
What is the logic circuit for a half adder?
www.pmt.education
Apply a distributive rule to the
Boolean expression
www.pmt.education
Apply a distributive rule to the Boolean
expression
www.pmt.education
Complete the truth table for a full adder
A B Cin Cout Sum
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
www.pmt.education
Complete the truth table for a full adder
A B Cin Cout Sum
0 0 0 0 0
0 0 1 0 1
0 1 0 0 1
0 1 1 1 0
1 0 0 0 1
1 0 1 1 0
1 1 0 1 0
1 1 1 1 1
www.pmt.education
OCR Computer Science A Level
2.1.1 Thinking Abstractly
Flashcards
www.pmt.education
What is representational abstraction?
www.pmt.education
What is representational abstraction?
www.pmt.education
Which form of abstraction involves
grouping together similarities within a
problem to identify what kind
of problem it is?
www.pmt.education
Which form of abstraction involves grouping together
similarities within a problem to identify what kind of
problem it is?
Abstraction by generalisation
www.pmt.education
What is meant by data abstraction?
www.pmt.education
What is meant by data abstraction?
www.pmt.education
What kind of problems make use of
multiple levels of abstraction?
www.pmt.education
What kind of problems make use of multiple levels of
abstraction?
www.pmt.education
How does abstraction allow non-experts
to make use of a system?
www.pmt.education
How does abstraction allow non-experts to make use
of a system?
www.pmt.education
State two advantages of using
abstraction in software development
www.pmt.education
State two advantages of using abstraction in
software development
Two from:
www.pmt.education
Give two applications of
layers of abstraction
www.pmt.education
Give two applications of layers of abstraction
www.pmt.education
State two advantages of using
abstraction in programming languages
www.pmt.education
State two advantages of using abstraction in
programming languages
www.pmt.education
How does object-oriented
programming use abstraction?
www.pmt.education
How does object-oriented programming use
abstraction?
Objects are an abstraction for real-world entities.
Attributes are an abstraction for the characteristics of
an object.
Methods are an abstraction for the actions a
real-world object is able to perform.
www.pmt.education
What is the difference between
abstraction and reality?
www.pmt.education
What is the difference between abstraction and
reality?
www.pmt.education
OCR Computer Science A Level
2.1.2 Thinking Ahead
Flashcards
www.pmt.education
What is the purpose of thinking ahead?
www.pmt.education
What is the purpose of thinking ahead?
www.pmt.education
Define inputs.
www.pmt.education
Define inputs.
www.pmt.education
Define outputs.
www.pmt.education
Define outputs.
www.pmt.education
What three considerations do
programmers need to make regarding
inputs and outputs when thinking ahead?
www.pmt.education
What three considerations do programmers need to
make about inputs and outputs when thinking
ahead?
- Method of input/output (device used)
- Data structures used
- Data types used
- Order of data
www.pmt.education
Identify the inputs and outputs that are
likely to be used in a book reservation
system i.e. at a library.
www.pmt.education
Identify the inputs and outputs that are likely to be used
in a book reservation system i.e. at a library.
Inputs Outputs
ISBN Confirmation
Collection point
www.pmt.education
What are preconditions?
www.pmt.education
What are preconditions?
www.pmt.education
Where can preconditions be defined?
www.pmt.education
Where can preconditions be defined?
www.pmt.education
Give an example where preconditions
are required.
www.pmt.education
Give an example where preconditions are required.
- Stack functions
- Check that a stack is not empty when popping an element from a stack
- Check that a stack is not full when pushing an element onto a stack
- Factorial function
- The number passed to the function cannot be negative
www.pmt.education
State two advantages of including
preconditions within the documentation
accompanying a subroutine.
www.pmt.education
State two advantages of including preconditions
within the documentation accompanying a
subroutine.
- Reduces the length of the program
- Reduces the complexity of the program
- Saves time needed to debug and maintain a longer program
- Makes subroutine more reusable
www.pmt.education
A Level only
Define caching.
www.pmt.education
Define caching.
www.pmt.education
A Level only
www.pmt.education
How is caching used in storing web pages?
www.pmt.education
A Level only
www.pmt.education
What are the advantages of caching web pages?
www.pmt.education
A Level only
www.pmt.education
What is the name given to the technique in which
algorithms are used to predict which instructions are
likely to soon be used?
Prefetching
www.pmt.education
A Level only
www.pmt.education
Give a limitation of caching.
www.pmt.education
Give three advantages of using reusable
program components.
www.pmt.education
Give three advantages of using reusable program
components.
- More reliable than new components, as they have
already been tested.
- As developing from scratch is not required, this saves
time, money and resources.
www.pmt.education
Give two examples of reusable program
components.
www.pmt.education
Give two examples of reusable program
components.
- Abstract data structures eg. queues and stacks
- Classes
- Subroutines
www.pmt.education
OCR Computer Science A Level
2.1.3 Thinking Procedurally
Flashcards
www.pmt.education
What is the first stage of thinking
procedurally?
www.pmt.education
What is the first stage of thinking procedurally?
www.pmt.education
What is the purpose of problem
decomposition?
www.pmt.education
What is the purpose of problem decomposition?
www.pmt.education
State another name given to top-down
design.
www.pmt.education
State another name given to top-down design.
Stepwise refinement
www.pmt.education
What is the purpose of top-down design?
www.pmt.education
What is the purpose of top-down design?
www.pmt.education
What are the benefits of using top-down
design?
www.pmt.education
What are the benefits of using top-down design?
www.pmt.education
What sort of problems is top-down
design suited to?
www.pmt.education
What sort of problems is top-down design suited to?
www.pmt.education
What is the second stage of thinking
procedurally in software development?
www.pmt.education
What is the second stage of thinking procedurally in
software development?
www.pmt.education
How can the lowest level subproblems in
top-down design in code?
www.pmt.education
How can the lowest level subproblems in top-down
design in code?
www.pmt.education
What do software developers need to
consider when recombining components
of a solution?
www.pmt.education
What do software developers need to consider when
recombining components of a solution?
www.pmt.education
What must a software developer do before designing
a subroutine to solve a particular problem?
www.pmt.education
State two advantages of utilising
reusable components.
www.pmt.education
State two advantages of utilising reusable
components.
www.pmt.education
OCR Computer Science A Level
2.1.4 Thinking Logically
Flashcards
www.pmt.education
What is a decision?
www.pmt.education
What is a decision?
www.pmt.education
When are decisions made?
www.pmt.education
When are decisions made?
www.pmt.education
What is the shape used to indicate a
decision in a flow chart?
www.pmt.education
What is the shape given to a decision icon in a flow
chart?
A diamond
www.pmt.education
In a flow chart how many many options
stem from a decision?
www.pmt.education
In a flow chart how many options can you pick from
a decision?
www.pmt.education
How do you make effective decisions?
www.pmt.education
How do you make effective decisions?
www.pmt.education
Does the result of a decision affect the flow of a
program?
www.pmt.education
OCR Computer Science A Level
2.1.5 Thinking Concurrently
Flashcards
www.pmt.education
What is concurrent thinking?
www.pmt.education
What is concurrent thinking?
www.pmt.education
Are concurrent processing and
concurrent thinking the same thing?
www.pmt.education
Are concurrent processing and concurrent thinking
the same thing?
No
www.pmt.education
What is parallel processing?
www.pmt.education
What is parallel processing?
www.pmt.education
What is concurrent processing?
www.pmt.education
What is concurrent processing?
www.pmt.education
What are the benefits of concurrent
processing?
www.pmt.education
What are the benefits of concurrent processing?
www.pmt.education
What are the drawbacks of concurrent processing?
www.pmt.education