Describe the structure of a computer system
Understand how computer languages are run on a computer system
if (true AND false) OR (false AND true) OR NOT(false AND true) AND (true and true) OR (true OR false)
A program is written that calculates the sum of two numbers.
Name the part of the computer system that will carry out each of the following tasks during the execution of the code.
function main() //Loops 10 times for($i = 0; $i < 10; $i++) print($i) end for end function
12 3 18 19 3 18 8 19 4 3 16 3 18 19 3 18 8 77 4 3 19 32 18 4 3 16 5 69 4 3 36 5 69 4 3 47 19 3 18 4 3 19 17 32 17 12
1100 0011 10010 10011 0011 10010 1000 10011 0100 0011 1110 0011 10010 10011 0011
Answer either high-level language or machine code for each of these:
|Interpreted programs||Compiled programs|
|Report errors immediately||Report all errors after compilation|
|Are slow||Are fast|
|Are translated line by line||Are translated into machine code in one step|
|Require an interpreter to run the program every time||Can be run independently of the compiler after compilation|
for i in range(0, 100): print(i)
How many lines will be translated with:
Answer the following questions:
For each of the following answer using the keyword from the lesson!
The place where large amounts of data is stored in the computer system whilst it is running.
Random Access Memory
Where small amount of data are stored in the CPU when a computer is running
What ALU stands for
Arithmetic Logic Unit
The bus where you might expect to find a memory location being transferred
The computer program used to turn source code into object code in one go
A computer language that uses keywords from the English language
A high-level language
Sam is creating a program to calculate and display the total cost of laying new flooring. Flooring is charged at £15 per square meter and skirting boards are charged at £60 per room.
The total cost is calculated by multiplying the total floor area by 15, then adding the number of rooms requiring skirting multiplied by 60.
2022 Q10 b)
The following are key shortcuts for using BalfSlideView and reveal.js.
|→, PAGE DOWN, SPACE||Next slide|
|←, PAGE UP||Previous slide|
|SHIFT + →||Last Slide|
|SHIFT + ←||First slide|
|W||Widget Board/White Screen|
|C||Toggle Notes Canvas|
|DEL||Clears Whiteboard/Notes Canvas|
|S||Show Presenter Mode|
|SHIFT + D||Toggle Dark Mode|
|H||Goes to the Home Slide|
|META + P||Show Print options window|
In order to use the 'Start Remote' feature, you'll need to download JB Slide Controls from the Apple App Store. Once you have this you'll be able to control the slides using the app from you Apple Watch.
BalfSlideView and jamiebalfour.scot are copyright © Jamie B Balfour 2017 - 2023, 2010 - 2023. Content is copyright © Jamie B Balfour