Edexcel IGCSEGeneralGeneral Applications4 Marks
A programmer is designing a program that displays a menu of options to the user.
- (a)The program will allow a user to enter an option from 1 to 4. State the most appropriate data type to store the user’s choice.[1]
- (b)The program converts the user’s input into a different data type. State the name of this process.[1]
- (c)Explain why the programmer might need to convert the user’s input into a different data type.[2]
Mark scheme
Marking points from the official mark scheme. The mark or mark type is shown in brackets.
- 7(a) Integer (1) B1
- 7(b) Type casting / Type conversion (1) B1
- 7(c) Up to two of: B1 for each explanation.
- User input is normally stored as a string / character (1)
- To perform arithmetic operations / calculations (on the input) (1)
- To allow comparison to other values (e.g. numbers) (1)
Write your answer and get it marked
On Oracle Prep you can write or photograph your own answer and have it marked by AI against this mark scheme, with feedback on what you missed.
Sign up free →