Save
Computer Science GCSE
Topic 1
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
Albert Voicu
Visit profile
Cards (87)
What are the two main processes in programming mentioned?
Decomposition
and
abstraction
View source
What is abstraction in programming?
Removing
unnecessary
detail
Focusing on important points
View source
What is the purpose of decomposition in problem-solving?
To reduce the
size
of the problem
View source
How do subprograms help in programming?
They break down
complex
programs into smaller parts
View source
What is one benefit of using subprograms in code?
They make the
logic
of code clearer
View source
How do subprograms aid in code maintenance?
They can be
modified
without
affecting
the
whole
program
View source
What is the process of removing unnecessary detail so that only the most important points remain?
Decomposition
View source
What is the purpose of using decomposition and abstraction?
To reduce the size of the
problem
View source
What are the benefits of using subprograms?
Make code easier to design, code and debug by breaking down a
complex
program into smaller parts
Make the logic of code clearer by replacing blocks of code with
meaningful
named subprograms
Make code easier to maintain by allowing subprograms to be modified without affecting the
rest
of the program
Avoid unnecessary
duplication
of code by allowing subprograms to be reused
View source
What are the main components of a flowchart?
Start/stop symbol
,
process symbol
, input/output symbol,
arrows
View source
What are the 4 options for the size variable in the selection algorithm?
Large
,
Small
,
Medium
, Medium
View source
What are the 3 common types of loops used in algorithms?
While
,
Until
,
As long as
View source
What is the definition of iteration?
The process of looping through every item in a
data structure
Repeating a set of
instructions
for every item in a data structure/list
View source
What are some suitable variable names for storing results?
result1
,
result2
,
result4
,
result5
,
total
,
theMean
View source
What are the steps in the algorithm to search for a friend in an array?
Get the first name and last name from the user
Assume
'found'
is false
Point to the first row in the array of
friends
(
index
0)
Loop through the friends
Check if 'found' is true, if so go to step 8
Check if there are any more friends to look at, if not go to step 8
Check if the friend's first and last name
match
, if so set 'found' to true and go to step 4, otherwise move to the next friend
If 'found' is true, print "Found the friend", otherwise print "Friend is not in the array"
View source
What is the difference between modulus and integer division?
Modulus returns the
remainder
, integer division returns the
quotient
View source
What is the result of the logical expression "Met"?
True
View source
What are the two main outcomes of a linear search algorithm?
Finding the
target item
, reaching the
end of the list
View source
What are the steps in the binary search algorithm?
The
median
item is
27
but this is higher than the
search item
The
sub-list
to the left is used:
3, 5, 9, 14, 17, 21
The median is 9 but this is too low, the sub-list 14, 17, 21 is used
The median selected is 17 which is the search item
View source
What is the purpose of the bubble sort algorithm?
To
sort
a
list
of
items
View source
What is the result of the logical expression "P = A AND NOT B"?
True
View source
What is the purpose of the microprocessor hardware?
To only operate on
bits
, with no
concept
of type or representation
View source
How many bits are needed to represent 24 colors?
5
bits
View source
What are the strengths and weaknesses of digital sound recording?
Strengths:
Entire
analogue recording
is represented
No loss of quality over time
Weaknesses:
Limited by the
sampling frequency
Limited by the number of
bits
used to encode each sample
View source
How many bits are needed to store 24 colors?
5
bits
View source
What is the file size in gigabytes of a 4096 MB file?
4 GB
View source
What are the strengths and weaknesses of lossless data compression?
Strengths:
Reduces file size for transmission
Allows original data to be reconstructed exactly
Weaknesses:
Not as effective at reducing file size as
lossy compression
View source
What is the stored program concept?
Program instructions and data are stored in
main memory
and transferred/fetched one at a time to the
CPU
, where they are decoded and executed
View source
What are the main functions of the CPU?
Read
program
instructions and data from
memory
, write results to memory
View source
What are the steps in the fetch-decode-execute cycle?
Instructions are fetched from memory into the
CPU
sequentially
Instructions are decoded by the CPU
Instructions are executed by the CPU, with arithmetic and logic operations performed by the
ALU
View source
What is the difference between volatile and non-volatile storage?
Volatile storage
requires
power
to
retain
data
, non-volatile
retains
data
without
power
View source
What are some advantages of secondary storage?
High
capacity
Relatively cheap per
unit
of storage
Fast
data access
/retrieval
Can be kept off-site/away from the office
View source
What is an example of an embedded system?
A system that uses a
sensor
to monitor water temperature and control a
heating element
View source
How do operating systems manage processes?
Share out
CPU
time between processes so each gets a
time slice
Prioritize processes so high priority ones get more CPU time
View source
How do operating systems manage files?
Organize files in a hierarchical
tree structure
Maintain records of the start location and sequence of
file blocks
View source
What type of utility software would be most useful for uploading a file?
File compression software
View source
Why is a quick fix solution to a software problem problematic?
It may have
unintended
consequences in other areas of the program
View source
Why are low-level programming languages preferred for embedded systems?
They enable efficient use of the system's
memory
and hardware
View source
What are the advantages and disadvantages of using an interpreter versus a compiler?
Advantages of interpreter:
Provides immediate
feedback
Allows testing and debugging as program is developed
Advantages of compiler:
Optimizes code for efficient use of limited resources
View source
Why is a WAN used instead of a LAN for a company with stores in different locations?
A WAN covers a wider
geographic
area than a LAN
View source
See all 87 cards