BHARATI VIDYAPEETH RABINDRANATH TAGORE SCHOOL OF EXCELLENCE
ACADEMIC YEAR 2024-25
Name: ……………………………………. Grade: VII Div: …. Date: ………………………….
Subject: Computing Unit 1 – Textbook answers
Questions 1.1
1 Parallelogram
2 Rectangle
30
41
Questions 1.2
1 Example:
Programming task 1.6
1 The diamond
2 If colour == "purple"
3 "I like purple too" is output
4 "That colour is ok, but purple is better" is output
Questions 1.3
1 A programming/algorithm statement that makes a decision. Either one output is run, or a different one is
run.
2 A diamond
3 Two arrows, one with True (or Yes) and one with False (or No)
4 The condition; the action if the condition is true; and the action if the condition is false
Questions 1.4
1 True and false (yes or no, 1 or 0, positive or negative)
2 True
3 When both conditions are False
4 Reverses the Boolean value
5 When one or both conditions are False
Questions 1.5
1 Something that is repeated, e.g. a colour, text, or design
2 Responses will vary depending on experience, for example: the same action being performed several
times; the same background or images used; the same decisions being made; the same inputs and outputs
being made; the same character being used; the same movements; and so on
3 For example: to save time, because a repeated piece of code only needs to be written and tested once; to
make a program more efficient
Questions 1.6
1 addNumbers
2 Two numbers
3 The two numbers input are added together
4 The total of the two numbers added together
5 The algorithm returns to where the sub-routine was called in the main code
Questions 1.7
1 Independent flowchart/algorithm with an identifier. It can be called from other flowcharts/algorithms. At
the end of the sub-routine, the algorithm returns to where it stopped in the main code.
2
3 An identifier; a stop or return statement
4 Use its identifier in the sub-routine flowchart symbol
5 It returns to the algorithm it was called from, which then continues from that same place
6 When the same actions happen several times, you only need to draw one flowchart, then call it several
times. This saves time, and you only need to test the sub-routine once.
Questions 1.8
1 print
2 Double quotation marks
3 The first has a capital G, the second has a lowercase g. The first has a full stop at the end, the second has
an exclamation mark.
4 Closing quotation marks are missing
5 PRINT should be in lowercase
6 print with rounded brackets and the learner’s name inside double quotation marks in the brackets, e.g.
print("Victoria Ellis")
7 This will differ for each learner, e.g. print("I am 11 years old")
Questions 1.9
1 Valid
2 Invalid – it starts with a number
3 Invalid – it has a space and a full stop
4 Invalid – it is a reserved word
5 Valid
6 Invalid – it has a hyphen
Questions 1.10
1 Integer; string; real/float; character; integer
2 Any whole number, e.g. 120
3 Any single characters, e.g. !, V, o
4 An Integer is a whole number; a Real number can have a decimal part
5 A Character is only one character; a String is one or more characters
Questions 1.11
1 input()
2 The assignment is the wrong way around and should be: colour = input("Enter a colour")
3 The program takes two numbers as input from the user, divides the first by the second and outputs the
answer
Questions 1.12
1 An early/small version of a product or system that might only have some of the features
2 The original purpose and/or requirements of the product or system
3 Examples: whether the design is suitable; whether the inputs and outputs are appropriate; whether it meets
the requirements; whether it can be improved
Questions 1.13
1 To give people tasks that are suitable for them; to make sure everyone has a job; and so everyone knows
what they are doing
2 So people know what they are working towards to ensure the project is finished on time
3 People will not start a task that cannot be completed due to another task being incomplete
Questions 1.14
1 A formal description/table that lists all of the ways in which the program will be tested, and what the
output should be
2 A description of what is being tested, the data input and the expected output
3 To create a record of the tests and the results, to make sure everything is tested and to avoid repeating the
same test(s) multiple times
Questions 1.15
1 Code that does not follow the rules of the programming language
2 Code that runs but does not do what it is supposed to do
3 Read the code line by line and check that it makes sense. Write down the variable names and values and
make sure they are correct. Use a checklist to check key words, operators, variables, and so on.
4 Line 1: missing final bracket; Line 4: average := should be average =
5 Line 4: Total should be + number3 not – number 3; Line 7: total
Questions 1.16
1 Button press, movement/accelerometer/tilt, temperature sensor, compass and many more
2 Light LEDs, make sounds (with speaker peripheral)
3 A variable
4 10
5 Displays a smiley face. Each time the micro:bit is shaken, 1 is subtracted from ‘number’. When ‘number’
is less than or equal to 0 a sad face is displayed.