CLS Computing Stage 8 Answers
CLS Computing Stage 8 Answers
b You assume that messages are private because you send them to your intended recipient.
Anyone could read a letter before it is delivered; there are ways to open a letter and read it,
such as using steam to unseal the envelope. If you knew that a private letter had been read
by someone else, you could feel unsettled.
2 For example: posted letters, email, instant messaging, social media. A letter is kept secure
in a sealed envelope; emails and instant messaging are sent to the recipients’ account and
not to anyone else.
3 For example: Pseudocode can be quicker to write out compared with drawing a flowchart.
It is therefore easier to edit and improve pseudocode, as you can move the text, edit it and
cross it out instead of possibly having to start drawing a flowchart again from scratch.
– It is easier to see the flow of a program algorithm as a flowchart as the steps are
clearer.
– Pseudocode is similar to how a program may be written, e.g. in a programming
language such as Python, so the writing stage can be easier.
– The shapes in a flowchart aid understanding of the selection and help to ensure that
both the True and False outputs have been considered.
– Test values could include 50, 200, 220; one higher, one lower and then the value
used in the conditional statement (200).
Part 2
1–2 The errors to be fixed are that the conditional statement needs to be less than 90 (< 90)
and the image displayed should be changed to SAD.
3 For example:
– comparison operator (<, >, ==, !=, <=, >=)
– value to be compared in conditional statement (50)
– image to be output (heart)
– spelling (e.g. ‘dispay’ should be ‘display’)
– indentation (the output moved in under the conditional statement)
– colon at the end of the conditional statement ( : )
– – uppercase letters for image output (HEART)
– – correct code for light sensor in MicroPython:
4 Students should complete the ‘Expected outcome’ column before testing the program on
the micro:bit.
5 By testing on the micro:bit, students are able to complete the final column, stating
whether the program passed or failed.
8 Students may consider the different inputs they could use and think about using the A or B
button to send their messages more quickly.
5 42 is set in the example, however each pair will have their own radio group set.
6 For example: ‘microbit’ = 13, 9, 3, 18, 15, 2, 9, 20.
7 For example:
8 The ‘Scenario’ asks students to create a program to send a message securely from one
micro:bit to another; use of the radio function will enable this.
5 As the testing is completed, students may find and fix one error at a time. This means that
students are developing the program code and then continuing to test it. It allows the
program to improve and be tested continuously.
– The lines to run if the conditional statement is TRUE or FALSE are indented.
6 For example: Testing is important throughout the development process, and it starts when
the algorithm is created. It is easier to find and fix an error in a smaller amount of code or a
section of an algorithm instead of at the end, when there is more to examine to find the
error.
8–9 Students will need to explain how they tested at different stages of the program
development, when creating both the algorithm and the program code. This can be done
using the test plan and a checklist of possible errors.
10 For example: A linear search looks at each data item in turn, from start to finish or until it
has found the item it is looking for. A computer could use it when trying to locate in the
ASCII table the letter or symbol that a binary number represents.
2 Responses here will vary but should be a number of characters long, such as the ‘Hello
friend’ example from part 1a.
3 a Allow appropriate time in class for students to attempt to convert their partner’s
message back into words using the ASCII conversion chart.
b – All uppercase letters start with 0100; all lowercase start with 0110.
– There is only a 1 binary digit change in the code as you move from one alphabetic
character to the next.
– Lower‐ and uppercase representations all begin with 01; special characters all begin
with 001.
– All numerical characters start with 0011 and the remaining four digits contain the
binary representation for that digit, e.g. 2 in ASCII is 00110010.
2 For example:
– First, write down the place values for a binary number.
– Examine the highest place value and check whether this value can be subtracted
from the original decimal number without creating a negative number.
– If it can, place a 1 underneath the place value and keep a note of the result of your
calculation.
– If it cannot, place a 0 underneath the place value.
– Go to the next place value, and repeat the process to see whether that value can be
subtracted from the result, without creating a negative number in the answer.
– If it can, place a 1 underneath the place value and keep a note of the result of your
calculation.
– If it cannot, place a 0 underneath the place value.
– Continue repeating this process until you have examined all the place value.
3a
100000012
b
c AI is about using complex computer programs and data to make decisions. It does not
always include imagery. The user can interact with the AI tool in many ways, e.g. with text,
images, video, sound.
With AR, the user interacts with a digital image that is projected onto their own real‐world
environment. The AR application may use AI to help with its interaction with the user.
d For example: Machine learning is when an AI system can use data to make decisions
without the help of a human.
i Digital assistants in homes/smart streaming services where suggestions are made about
shows the user might like.
ii Social‐media applications, e.g. Pokémon GO; also in shopping and travel apps to help the
user to make decisions.
2 a Responses should include reference to the following points.
Each digital device generates a special combination of 1s and 0s to represent each character
available to the user on the device’s keyboard. When a keyboard character is pressed, the
correct combination of 1s and 0s are generated so that the processor knows which letters/
symbols have been produced. 1s and 0s are generated using electrical pulses. This is
necessary as the processor does not understand the letters of the computer keyboard; only
1s and 0s.
b Student responses here will vary depending on student logins to school computing
systems. Encourage students to show only their username (not their password). Ask
students to write out their username in its usual format and then show underneath how
each character could be represented in ASCII format, e.g.:
Part 4
1 a Step 1: Divide 19810 successively by 2 until the result of the division is 0.
198 / 2 = 99, remainder is 0
99 / 2 = 49, remainder is 1
49 / 2 = 24, remainder is 1
24 / 2 = 12, remainder is 0
12 / 2 = 6, remainder is 0
6 / 2 = 3, remainder is 0
3 / 2 = 1, remainder is 1
1 / 2 = 0, remainder is 1
Step 2: Read from the bottom (MSB) to the top (LSB) as 11000110.
So, 11000110 is the binary equivalent of decimal number 198.
b Step 1: Divide 6810 successively by 2 until the result of the division is 0.
68 / 2 = 34, remainder is 0
34 / 2 = 17, remainder is 0
17 / 2 = 8, remainder is 1
8 / 2 = 4, remainder is 0
4 / 2 = 2, remainder is 0
2 / 2 = 1, remainder is 0
1 / 2 = 0, remainder is 1
Step 2: Read from the bottom (MSB) to the top (LSB) as 1000100.
So, 1000100 is the binary equivalent of decimal number 68.
2a
– Robots are used in many production lines, e.g. car manufacturing (but students can
list many more in their presentations).
Advantages of AR
– Provides users with more experience with products (e.g. they can try them in their
own homes).
– Brings the store/business to the customer.
– Makes the company stand out from others in a more creative way.
Disadvantages of AR
– May need to publish regular updates for new products.
– Can be expensive to develop.
– Not all customers will be able to use the technology.
Education
– Robots used to support students in developing mathematical thinking skills.
– Telepresence robots to support remote education.
– AR and VR enhance learning experiences by helping students to visualise learning;
some use VR comic books/animations as a learning tool and game‐based learning to
capture students’ interest.
Advantages of AR
– Allows students to learn in an interactive environment.
– Provides a media‐rich learning experience (fun element).
– Allows students to interact with experiences that are not normally available.
Disadvantages of AR
– Budgets can be limited in schools.
– Applications may not provide the learning experiences the school needs.
– There may not be enough equipment for all students.
Entertainment
– ● Humanoid robots are often used to carry out tricks either with remote controls or
pre‐programmed tasks; some toys based on robotic technology are used for
entertainment.
– AR is widely used in social‐media apps and filters, and many games now use AR
technology.
– AR is used in many TV shows or in public relations/advertising on TV where a unique
symbol or character is identified on the user’s mobile‐phone camera, and this can be
used to activate a task or another application.
Advantages of AR
– Provides users with an interactive experience.
– Increases the fun element of gaming.
– Can provide users with a more realistic experience in their own reality (living
room/garden/school, etc.).
Disadvantages of AR
– Software can require a lot of additional storage.
– May need a lot of RAM to run the application.
– May need additional hardware, and this can be expensive.
2–3 For example: The player’s character is not visible in the image in the ‘Practise’ box, so
students may not identify this. Some students may include enemies as a hazard as they will
need to be avoided by the player. There is not a set order in which the elements of the
game should be created. There are, however, some tasks that should come before others,
e.g. creating the background first helps with placement and movement of the other
elements.
2 For example:
Features:
– Forms to allow data to be collected for a model.
– Tables to store data relating to the model.
– Queries to allow users to extract useful data from the model.
– Data types to ensure that the model can process the data in the correct way.
2 An example of a spreadsheet application is MS Excel.
Features:
– Cells to record data items that make up the model.
– Labels to help the user understand the model.
– Formulae to link data items in the model.
– Conditional formatting to highlight important data in the model.
Part 3
1 Database:
– Few calculations involved
– Needs to be able to search effectively for books
– Needs to monitor overdue loans
– Needs to store members’ details
2 Database:
– Few calculations involved
– Needs to be able to search effectively for students’ contact details
– Needs to store assessment results
– Needs to add new data each year
3 Spreadsheet:
– Calculations may be needed to work out students’ averages and grades
– Calculations are also needed to work out class averages
4 Spreadsheet:
– Calculations are needed to work out fastest times and average times in races
take will be Grade 2. There is no need to record unnecessary data in a data model, as this
could lead to increased processing time in large models.
4 New headings could include SessionID (this would be needed as a primary key),
StudentInitial, StudentSurname, YearGroup, Instrument, CurrentGrade, SessionDate,
SessionTime, Lesson/Exam, TutorSurname, Online/InPerson, FeePaid? Using the rule that
students must take all exam grades in numerical order, the field ExaminationGrade could be
removed; as long as students’ current grade is known, their exam grade can be worked out.
5 The list of field headings should be close to those shown in the data dictionary below.
6 Display 8.5 Presentation slide 3 to allow students to see a model version of the music
school database. Use this to discuss potential changes to the database structure. Examine
the student data dictionary and discuss any differences between students’ answers and the
model answer provided.
Part 2
– A primary key helps distinguish one record from another. For example, in the
database shown in this case, each student will appear more than once as they have
many lessons at many different times. Using a key field, for example SessionID, helps
distinguish one session (lesson or exam session) from another.
– Names were broken down into initials and surnames to ensure that the same data is
recorded for each person in the database. If the field heading was ‘name’, there are
lots of ways people might respond: some may only provide their first name, some
may provide a full first name and surname, some may provide an initial and a
surname. This might make it difficult to search for a person using their name as it
may not be entered in the same format each time.
– The field headings were renamed because it was important to remove blank fields
when the user was entering data into the database. Even when no data is added to a
field, the database still sets aside a number of characters to record that data item.
This means that storage space is being wasted. The field headings were renamed
from ExaminationTime and LessonTime to SessionDate/SessionTime to help reduce
the number of blank fields. This will also make the data validation process easier
later in development (we could include a presence check for each field – no field
should be left blank). We also added a primary key to make it easy to identify one
lesson from another – we can now use SessionID instead of having to use the
student’s name. Examination grade is no longer required. If we are recording the
student’s current grade, we can easily work out what their exam grade will be. Also,
by breaking student name and tutor name down into student initial and student
surname and tutor initial and tutor surname, we are providing a consistent means of
recording data which again helps with validation and also makes it easier to search
for records that relate to individual students or tutors.
– The structure the music department used previously would have been easy to
understand as the field headings were clear, but as more and more data was
entered, the blank fields in the database may have been confusing. Users may not
have been sure if a field was left blank on purpose or by accident.
– It would have been easy to make an error when storing details for a lesson or an
examination session as users may not have entered a student’s or tutor’s name in
the same format each time a record was entered into the database.
– See above comments for discussion points on how the data structure in the new
MusicSchool.accdb database is an improvement.
3 I8, J8 (F10 and F11 would change only if his score increased to greater than 89 or less than
68, so they should not be included at this point).
4 a Circulate among students as they compare the formulae they wrote down at the
beginning of the exercise with the actual formulae used in the spreadsheet. Take time to
discuss the formulae with those who do not understand the structure of the formulae
(especially the use of relative and absolute cell referencing).
b D3, I3, J3, D10 and D11.
Part 2
1 New % = 95%, new Average score = 76, new Average % = 93.
2 a It would increase their Average score to 80 and their Average % to 97%.
b It would increase the value of cell F10 to 100.
3 The spreadsheet would now contain the following values.
3 For example:
Part 2
3 The discount to date is $236.25; the maximum number of lessons the school could offer
without exceeding their $300 budget is 44.
Part 3
1 For example:
– A data model is a computer‐based representation of a real‐life scenario as it exists at
the current time. Formulae and algorithms can be used to create relationships
between data items in the model.
– A computer simulation uses a data model to imitate a real‐life scenario. Inputs can
be amended to allow users to investigate how changes in input can alter output from
the simulation. Some simulations use specialised input and output devices to
support user interaction and may incorporate high‐quality graphics to create a
realistic environment for the user.
2 For example:
– Using AR in science to allow students to investigate inside the body or inside a
beehive; VR could allow them to visit and interact with far‐off planets in space.
– Using AR in language learning to allow students to experiment with new words and
phrases by interacting with apps in their classroom or other environment; using AR,
overlays for words and phrases for items in their current environment could be
displayed on screen for students to repeat or click on to hear.
1 Each student acting as the developer should be able to describe how they have developed
the design. They should have sketches of each iteration to show how they have developed
the design after each round of feedback from the client.
2 For example: The iterative process differs from the waterfall process by its approach to
the project – the iterative process develops in cycles and can be followed continuously until
the final product meets the project requirements.
1 This creates a variable called ‘score’ with a starting value of 0. It asks the user two
questions. Each question has two answers. If the user answers a question correctly, then
they are told that it is correct and 1 point is added to their score; otherwise, they are told
that the answer is incorrect and then the current score is displayed.
2a
– User 1:
– Correct
– 1
– Incorrect
– 1
– User 2:
– Incorrect
– 0
– Incorrect
– 0
– User 3:
– Correct
– 1
– Correct
– 2
b
– User 1: 1
– User 2: 0
– User 3: 2
3
– score: integer
– question1: string
– question2: string
5–7 Each student’s list will have similarities, e.g. the user’s answer to the question.
Differences may include the variable names, e.g. ‘question1’ or ‘Q1’. There may be
additional variables that some students add, including a score that increases or decreases
depending on the user’s answers, or additional variables to store the correct answers.
The comparison allows students to compare their findings and then develop their own
tables, which should include the following.
8 Students have developed the list iteratively as they created the first list individually and
then, through discussion and comparison with others, they gained feedback on areas to
improve or add, which they added into a new list.
one question, allows the player to enter their answer, gives feedback based on the answer
given, and awards points if the answer is correct. The question should be suitable for an eco
quiz.
6 Testing may take place during the development of the program code and will always take
place once the section of code for each iteration has been completed. Reviewing and
evaluating take place at the end of each iteration or cycle.
5–6 Feedback will be linked to students’ program code. For an example linked to the test
plan shown above in answer 4, the feedback would be that the answer was still added in the
first test and the output was incorrect as there were uppercase letters on both words.
8 Test plan example:
9 For example:
– a clear question that asks about recycling or the environment
– an output stating whether the answer is correct or incorrect
– the score increasing if the second question is answered correctly
– the second question playing after the user has answered the first question
– the score being displayed to the user.
The program could be developed by adding selection, and then asking the user whether
they are ready before the countdown starts, e.g. if user is ready, then start the countdown.
1 Students will need to create the Python code to generate a random number between 1
and 100.
2 For example, variables used:
– ‘storedNumber’ = integer
– ‘numberGuessed’ = integer.
3 For example:
– if numberGuessed == storedNumber:
4 For example:
– elif numberGuessed > storedNumber and numberGuessed < 100:
5 For example:
– elif numberGuessed < storedNumber and numberGuessed > 0:
6 A test plan is harder to generate with a random number, as the expected outcome is not
known because you do not know the randomly generated number. Documenting the output
and the value being stored can show whether the correct output is being displayed, e.g.:
Iteration 2
14–16 For example, here is a test plan to test question 2.
Iteration 3
17–19 For example, here is a test plan to test question 3.
Iteration 4
20–24 For example, question 1: