3Easy
0/1

An algorithm is shown in the pseudocode below.

1  fruits ← ['Apple', 'Banana', 'Cherry']
2  fruit1 ← 'Damson'
3  fruit2 ← 'Elderberry'
4  OUTPUT fruit1
5  OUTPUT LEN(fruits)
6  temp ← SUBSTRING(1, 3, fruit1)
7  OUTPUT temp

Select the option that correctly shows the output of line 5 from this algorithm.

111

333

555

666

String handling operations in a programming language Questions

Practise AQA GCSE Computer Science String handling operations in a programming language with exam-style questions for GCSE Computer Science. 90 questions, matched to the AQA GCSE Computer Science (8525) specification and written in Paper 1 and Paper 2 style. Every question includes a full worked solution and mark scheme, so you can see where marks are awarded rather than just whether you got the answer right.

PreviousNext

String handling operations in a programming language Questions

  1. GCSE
  2. /Computer Science
  3. /String handling operations in a programming language