Refer to the insert for the list of pseudocode functions and operators.
- (a)(i)Complete the following table by giving the appropriate data type in each case. Variable Example data value Data type Name "Catherine" Index 100 Modified FALSE Holiday 25/12/2020[4]
- (a)(ii)Evaluate each expression in the following table by using the initial data values shown in part (a)(i). Expression Evaluates to Modified OR Index > 100 LENGTH("Student: " & Name) INT(Index + 2.9) MID(Name, 1, 3)[4]
- (b)Each pseudocode statement in the following table contains an example of selection, assignment or iteration. Put one tick ('✓') in the appropriate column for each statement. Statement Selection Assignment Iteration Index ← Index + 1 IF Modified = TRUE THEN ENDWHILE[3]
Mark scheme
Marking points from the official mark scheme (May/June 2021). The mark or mark type is shown in brackets.
- [1] (a)(i) STRING
- [1] (a)(i) INTEGER
- [1] (a)(i) BOOLEAN
- [1] (a)(i) DATE
- [1] (a)(ii) FALSE
- [1] (a)(ii) 18
- [1] (a)(ii) 102
- [1] (a)(ii) "Cat"
- [1] (b) Index ← Index + 1: Assignment ✓
- [1] (b) IF Modified = TRUE THEN: Selection ✓
- [1] (b) ENDWHILE: Iteration ✓
Write your answer and get it marked
On Oracle Prep you can write or photograph your own answer and have it marked by AI against this mark scheme, with feedback on what you missed.
Sign up free →