Monday, September 29, 2014

Exam Question

Exam Question

1 comment:

  1. This question is out of 28 marks and makes up a fair proportion of the January 2009 F452 paper. The mark scheme is as follows:
    A. 4
    B. 8
    C. I 2 ii 2
    D. 4
    E. 8
    This was not set in exam conditions but in the exam you should look to spend no more than 25 minutes on this question.
    You scored the following on each question
    A. 4
    B. 6
    C. I 2 ii 2
    D. 4
    E. 2
    Total = 20
    Look at what you missed:

    A. Correct
    B.
    There is a facility for scrolling for more ingredients than the screen can fit
    There is a button to start over/clear data
    There is a button to save ingredient data/add a line of ingredients
    There is a button to close the program
    Optimal use of screen
    Space for ingredient and recipe name long enough (at least 10 characters)

    C. Correct

    D. Correct

    E.
    Input NewNumberOfPeople (from user)
    Open both files
    ...one for Input/Reading, one for output/writing
    Read a line of text (recipe name) from Input file
    Write that line to output file
    Read a line of text from input
    Write NewNumberOfPeople to output file / scale number of people from input file
    Repeat ... / use a loop to read line by line
    Read a line of text from Input
    Calculate new recipe quantity
    Replace quantity in string
    Write string to output file
    Until input file gets to end of file
    Close all files (which have been opened)

    Simin, I am pleasantly surprised by this. You have given every question a good go and even though E was set as the higher level question you have attempted it and for this I applaude you.
    You are working at a A/B grade at the moment which is excellent and I am very impressed with the way you work and conduct yourself. Look at where you dropped marks and we will go over these questions on Thursday. Well done!

    ReplyDelete