Note AcademyNote Academy

Computer Science · May / June 2023 · Paper 21 · Question 8

0478

As printed in the paper

The question as text

The function LENGTH(Phrase) calculates the length of a string Phrase

Read automatically from the paper; the printed page above is exact.

Show the answer and mark scheme
  • 8(a)[3]

    One mark per mark point, max three

    Storing string in Phrase
    Correct use of LENGTH function
    Correct use of UCASE function
    Correct outputs of LENGTH and UCASE

    For example:

    Phrase ← "The beginning is the most important part"

    OUTPUT LENGTH(Phrase)

    OUTPUT UCASE(Phrase)

  • 8(b)[2]

    One mark for each correct line, max two

    40

    THE BEGINNING IS THE MOST IMPORTANT PART

Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.