Note AcademyNote Academy

Computer Science (AS & A Level) · Oct / Nov 2022 · Paper 21 · Question 8

9618

As printed in the paper

The question as text

A teacher is designing a program to perform simple syntax checks on programs written by students. Student programs are submitted as text files, which are known as project files. A project file may contain blank lines. The teacher has defined the first program module as follows: Module Description CheckFile() • takes the name of an existing project file as a parameter of type string • returns TRUE if the file is valid (it contains at least 10 non-blank lines), otherwise returns FALSE

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

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

  • 8(b)[2]

  • 8(c)[8]

  • 8(d)[2]

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