Computer Science (AS & A Level) · Oct / Nov 2023 · Paper 42 · Question 3
9618
As printed in the paper
The question as text
A computer game is written using object-oriented programming. The game has multiple characters. The class Character stores data about the game characters. Each character has a name, date of birth, intelligence value and speed value. Character CharacterName : STRING DateOfBirth : DATE Intelligence : REAL Speed : INTEGER stores the name of the character stores the date of birth of the character stores the intelligence value of the character stores the speed value of the character Constructor() SetIntelligence() GetIntelligence() GetName() ReturnAge() Learn() initialises CharacterName, DateOfBirth, Intelligence and Speed to the parameter values assigns the value of the parameter to Intelligence returns the value of Intelligence returns the name of the character calculates and returns the age of the character as an integer increases the value of Intelligence by 10%
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
3(a)(i)[5]
3(a)(ii)[3]
3(a)(iii)[2]
3(a)(iv)[1]
3(a)(v)[2]
3(b)(i)[2]
3(b)(ii)[3]
3(b)(iii)[1]
3(c)(i)[5]
3(c)(ii)[3]
3(d)(i)[2]
3(d)(ii)[1]
3(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.

