Past-paper question · 2020 October-November · Paper 23 · Q1(b)(i)

Question 1(b)(i) 2020 · October-November · Paper 23 · 5 marks

Original past-paper question for 1(B)(I)
Original past-paper question for 1(B)(I)
Original past-paper question for 1(B)(I)
Original past-paper question for 1(B)(I)
Reveal official mark-scheme answer Official mark-scheme answer for 1(B)(I)

Official answer for Question 1

Part (b)

(i)

✓
Any five from:

Question 5

✓
MP1 Display fillings available
✓
MP2 Prompt and entry of filling choice
✓
MP3 Only accept one correct filling
✓
MP4 Prompt and entry of number of salads
✓
MP5 Only accept 0 to 3 inclusive
✓
MP6 Display salads available
✓
MP7 Prompt and entry of correct number of salad choices
✓
MP8 Only accept correct salad choices
✓
MP9 At least one error message for incorrect data entry
✓
Example answer:
✓
REPEAT
✓
PRINT "Beef
✓
1"
✓
PRINT "Chicken
✓
2"
✓
PRINT "Cheese
✓
3"
✓
PRINT "Egg
✓
4"
✓
PRINT "Tuna
✓
5"
✓
PRINT "Turkey
✓
6"
✓
OUTPUT "Please enter your choice of filling"
✓
INPUT Filling
✓
UNTIL Filling >=1 AND Filling <=6
✓
PRINT "Lettuce
✓
1"
✓
PRINT "Tomato
✓
2"
✓
PRINT "Sweetcorn
✓
3"
✓
PRINT "Cucumber
✓
4"
✓
PRINT "Peppers
✓
5"
✓
REPEAT
✓
PRINT "How many salads do you want"
✓
INPUT NumSalad
✓
UNTIL NumSalad >= 0 and NumSalad <=3
✓
WHILE NumSalad >0 DO
✓
PRINT "Enter Salad ", NumSalad
✓
OUTPUT "Please enter your choice of salad"
✓
INPUT SaladType
✓
CASE SaladType OF
✓
1: NumSalad NumSalad – 1
✓
2: NumSalad NumSalad – 1
✓
3: NumSalad NumSalad – 1
✓
4: NumSalad NumSalad – 1
✓
5: NumSalad NumSalad – 1
✓
OTHERWISE: PRINT "Error"
✓
ENDCASE
✓
Salad[NumSalad] SaladType
✓
ENDWHILE

Mark scheme 2210_w20_ms_23.pdf →

Show text version of question

Question 1

Part (b)

(i)

Question 1

All variables, constants and other identifiers must have meaningful names.

(i)

Write an algorithm to allow a customer to choose the filling and salad items for their

baguette (part of Task 1), using either pseudocode, programming statements or a flowchart. Your algorithm must only include this part of Task 1.

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

Question 4

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

Question 5

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

.....................................................................................................................................

[5]
Topic relevance

Why this question appears here

98% assigned-topic match · Algorithm design and problem-solving

Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.

Permanent source page: Educate A Change · From 2210_w20_qp_23.pdf

Keep practising this topic