Computer Science (AS & A Level) · May / June 2024 · Paper 42 · Question 1
9618
As printed in the paper
The question as text
A program outputs a main word. The program asks the user to enter the different words of 3 or more letters that can be made from the letters in the main word. These are called the answers. There are 3 files: Easy.txt, Medium.txt and Hard.txt. Each file has the main word on the first line. For example, the main word in Easy.txt is house. The answers are stored in the file. Each answer is on a new line after the main word. For example, Easy.txt has 14 answers that can be made from the letters in house. The words read from the text file are stored in the global array WordArray. The number of words that can be made from the letters in the main word is stored in the global variable NumberWords.
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
1(a)[6]
1(b)[4]
1(c)(i)[6]
1(c)(ii)[3]
1(d)(i)[1]
1(d)(ii)[1]
1(d)(iii)[1]
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

