Arithmetic Logic Unit Completes All Arithmetical and Logical Operations
Arithmetic Logic Unit Completes All Arithmetical and Logical Operations
Volatile Non-volatile
Used for computer’s working memory Used for the computer’s start-up
for instructions instructions
Can be written to and read from Read only
Dish thrashing – when a system or program spends more time swapping data to
the hard drive it gets overworked.
LAN WAN
Fetch-decode-execute cycle
- Instruction fetched from memory and is then decoded and then executed so
the CPU performs continuously.
- Process is repeated and PC is incremented
- Instruction is transferred to MDR
- Address of instruction is fetched to be placed in the MAR
RAM:
Stores programs currently in use and data
ROM is non-volatile vice versa
RAM loses memory when computer is off vice versa
Bubble sort:
If
Insertion: While
valid = True
if firstname == "" or surname == "" then
valid = False
end if
if room != "basic" and room != "premium" then
valid = False
endif
if nights < 1 or nights > 5 then
valid = False
endif
if valid then
print("ALLOWED")
else
print("NOT ALLOWED")
endif
Create a function, newPrice(), that takes the number of nights and the type of
room
as parameters, calculates and returns the price to pay
print(newPrice("premium", 5))
x = newPrice(5, "premium")
print(x)
Legal:
- AI automatically checks for copyright violations
Ethical:
- Prevent illegal content from being posted
Privacy:
- Less invasive
Abstraction: ignore unnecessary information and only focus on essentials
Decomposition: Breaking down a problem into smaller problems so its easier to
solve
Linear search:
- Compares each item one by one until item is found
- No need for ordered list
Binary search:
- Compares middle item to target
- Discards half of the list the target isn’t in
- Finds next middle item and repeats until its found
Bubble sort:
Two numbers together and are swapped until ordered
Insertion sort:
Two lists one is unordered and one is ordered
Merge sort:
Numbers put into groups of 2 and sorted then 4 and sorted until the whole list is
sorted
Taylor needs to be able to enter a numeric value which is added to a total which
initially starts at 0.
Every time she enters a value, the total is output.
The algorithm repeats until the total is over 100.
Total = 0
While total <= 100
X = input(“Enter a number”)
Total = total + x
Print(total)
Endwhile
ask the player for the position of their block on the board
• use the checkblock() function to check if this position is free
• if the position is free, add the letter "A" to the position chosen in the gamegrid
array
• if the position is not free, repeat the above steps until a free position is chosen.
loop = True
while loop
row = input("enter row")
col = input("enter column")
if checkblock(row,col) == "FREE" then
gamegrid[row,col] = "A"
loop = False
endif
endwhile
Refine the program to be more efficient. Write the refined version of the
algorithm.
You must use either:
• OCR Exam Reference Language, or
• a high-level programming language that you have studied.
Total = 0
For x = 0 to 4
Total = total + hoursplayed(2, x)
Next x
Console.writeline(total)
Geography
1.1
- Melting ice leads to the destruction of animal habitats (1) which people
rely on to provide food and fur (1)
- Results in release of methane from permafrost (1) leading to further
global warming
- Ice cores (1) can be analysed to determine the amount of carbon dioxide
in them (1)
- Tree rings (1) can be examined with greater thickness meaning higher
temperatures (1)
- Historical records (1) may inform about frost fairs on difficult growing
conditions (1)
- High pressure areas are dry (1) in these areas cloud rarely form (1)
- Rain shadow areas are arid (1) as dry air is descending (1)
Suggest two ways that global circulation patterns affect rainfall distriution in
west Africa
- Air cools and rises causing water vapor to be squeezed out as rain resulting
in a band of heavy precipitation around globe. Air rising along ITCZ moves
away from equator and sinks in subtrophics at Horse latitudes rounding out
the Hadley circulation
- Glacial erosion from valley glaciers (1) creating U shaped troughs (1)
- Rock is weak if jointed (1) so more likely to be eroded by wave action (1)
- Relatively cheap compared with hard engineering (2)
- Less aesthetically intrusive compared with hard engineering (2)
Explain one way past tectonic process influence the physical landscape of UK (2)
- Plate collisions caused rocks to be folded and uplifted forming mountain
ranges which remained as uplands.
- Hydraulic action – force of the water against riverbed compressing air into
cracks causing it to break up
- Abrasion – wearing down of riverbed by river load
- Attrition – Rocks collide with each other, bed gradually becomes smoother
- Solution – Dissolution of rocks chemically
Explain one reason for the growth tertiary employment in the UK (2)
- Population growth therefore need for services such as teachers or doctors
- Deindustrialisation so increases in growth of tertiary sectors
- Increase in finance and business services because of UK’s global role
Explain one impact of globalisation on secondary sector employment in the UK
(2)
- Increase in high-end manufacturing as low-end jobs move offshore
- Increase in vehicle manufacturing sectors as TNCs move production into UK
Why secondary employment declined (2)
- Offshoring by companies (1) to seek lower costs (1)
State two reasons why FDI has increased in the UK
- Globalisation
- Free trade policies
Explain one reason why child poverty varies between different parts of a city:
- Some areas have higher number of immigrants
- They could find it hard to get higher paying jobs due to language barriers
Explain one reason why building height varies in urban areas (2)
- Different levels of demands for space (1) which makes it profitable to
intensify use of space by building upwards (1)
Describe how carbon and nitrogen in compounds in the leaves are recycled and
used
by living trees.
You should include a description of:
• how the leaves are broken down
• how substances are taken in and used by the trees.
Explain why the pH changes more quickly when the temperature is higher
- Enzymes are more active
- Lipase broken down quicker
- Fatty acids produced quicker
Explain what causes the changes in the carbon dioxide concentration in the air:
- In dark so only respiration occurs
- Respiration produces CO2
- In light photosynthesis rate is faster than respiration
Explain why the lack of FSH in the woman’s blood caused underdeveloped
breasts
- Causes lack of oestrogen
- Secondary sexual characteristics are dependent on it
Abiotic factors:
- Water
- Oxygen
- PH
- Minerals
- Temperature
Biotic:
- Food
- Predators
- Disease
Give two ways the results of the blood test show that person C might have
Type 2 diabetes.
- Higher glucose and higher insulin
Reducing by:
- LOW carbohydrate diet
- Exercising
Name three harmful substances that could cause water pollution
- Sewage
- Herbicide
- Fungicide
-
Describe how substances that pollute air and water could be harmful to humans
and
other living organisms.
Air pollution:
- Global warming, loss of habitat, extreme weather, migration
- Carbon monoxide combines with haemoglobin so less oxygen is carried
- Particulates cause asthma and damage to lungs
Water pollution:
- Through sewage, bacteria multiply. They use oxygen in respiration, water
animals cannot respire, pathogens in water
- Plastics entrap animals and cause internal damage if swallowed
- Acid rain lowers pH of water damaging fish gills and bleaching coral
Explain how the dilation of blood vessels in the skin can help to decrease
body temperature.
- More blood flows to the skin
- More heat is lost
- Cools blood that cools body
Describe:
• how microorganisms in the layers of soil help to recycle chemicals in the dead
plants
• how the chemicals are used again by living plants.
Microorganisms:
- Release of mineral ions
- Respiration
- Production of CO2
- Enzymes
- Digestion
Plants:
- CO2 taken in by leaves by diffusion via stomata
- CO2 used in photosynthesis
- For making glucose
- Ions taken in by roots by active transport
Compare the issues involved in embryo screening for cystic fibrosis and
polydactyly. (6)
Cystic:
- Possible damage to embryo and mother
- Must make ethical decisions
- Reduce health care costs
- Reduces number of people with cystic fibrosis
Polydactyly:
- Cures disfigurement
- But condition not life threatening
- So risks to foetus unjustified