Ocr - f452 computing 29th may 2012 [official]
Computer Science and ICT discussion, revision, exam and homework help.
-
Re: Ocr - f452 computing 29th may 2012 [official]
For the question about improving the code, you would have to have an if statement, or something similar, that checks if it is a whole number of hours, otherwise, as Buckers said, they would be overcharged. This was the point of the question asking you for the output when there were 60 (I think) minutes.
-
Re: Ocr - f452 computing 29th may 2012 [official]Close But I believe it is 116. Because Div means ignore the remainder so 96 DIV 60 = 1. Therefore,(Original post by MSI_10)
Oh yeah I liked this one. I think the answer for part one was 117 (There was a trick here- when you use DIV normally it ignores the fraction.. I think it was 96/60=1.6, but it said in the question to round UP the minutes so I got 2) and yeah, use order of precedence.
Part 2 was 16 i think.
TimeSpent DIV 60 + 1 * HourlyRate + CostOfGoods
1 + 1 * 15 + 100
1 + 115
= 116 -
Re: Ocr - f452 computing 29th may 2012 [official]But the code didn't actually say round up, the bit above did and as we were running the code, surely we didn't have to round up?(Original post by MSI_10)
Oh yeah I liked this one. I think the answer for part one was 117 (There was a trick here- when you use DIV normally it ignores the fraction.. I think it was 96/60=1.6, but it said in the question to round UP the minutes so I got 2) and yeah, use order of precedence.
Part 2 was 16 i think. -
Re: Ocr - f452 computing 29th may 2012 [official]
Overall it felt like a very nice paper. Nicely balanced (like F451) around major topics, thank god there was no high-level coding question.
Good luck to all.
The bit of code(Original post by Dubes)
But the code didn't actually say round up, the bit above did and as we were running the code, surely we didn't have to round up?
TimeSpent DIV 60 + 1 * HourlyRate + CostOfGoods
Timespent DIV 60 will return a rounded DOWN value - this is how DIV works. It rounds down to the nearest integer. Adding 1 immediately afterwards simulates the rounding up.Last edited by Inorien; 29-05-2012 at 18:54. -
Re: Ocr - f452 computing 29th may 2012 [official]I did that, but I did 1+1= 2, 2 * 15= 30(Original post by fusionet24)
Close But I believe it is 116. Because Div means ignore the remainder so 96 DIV 60 = 1. Therefore,
TimeSpent DIV 60 + 1 * HourlyRate + CostOfGoods
1 + 1 * 15 + 100
1 + 115
= 116
30 + 100= 130
Did you not have to add the 1 before multiplying the HourlyRate? -
Re: Ocr - f452 computing 29th may 2012 [official](Original post by Inorien)
Overall it felt like a very nice paper. Nicely balanced (like F451) around major topics, thank god there was no high-level coding question.
Good luck to all.
The bit of code
TimeSpent DIV 60 + 1 * HourlyRate + CostOfGoods
Timespent DIV 60 will return a rounded DOWN value - this is how DIV works. It rounds down to the nearest integer. Adding 1 immediately afterwards simulates the rounding up.
Yeah I did that. Just talking rubbish now
-
Re: Ocr - f452 computing 29th may 2012 [official]I'm glad i'm not the only one! Perhaps both are viable?(Original post by OneMorePanda)
For the question about improving the code, you would have to have an if statement, or something similar, that checks if it is a whole number of hours, otherwise, as Buckers said, they would be overcharged. This was the point of the question asking you for the output when there were 60 (I think) minutes. -
Re: Ocr - f452 computing 29th may 2012 [official]
You do realise you can use a calculator to check the answer right. I just entered the line into my calculator and got something like 116.7. Earlier in the question it stated that minutes was rounded up or something along those lines so the answer in minutes was 117 and hours = 2
I'd have to see the paper again to be sure, I rushed this part of the paper. -
Re: Ocr - f452 computing 29th may 2012 [official]How? I finished with about 30 mins to spare(Original post by KS8)
I rushed this part of the paper.
-
Re: Ocr - f452 computing 29th may 2012 [official]Yeah but I didn't realise we had to do it all in one go, so I did each adding, multiplication seperate as I got confused when it said show your workings out, oh well(Original post by KS8)
You do realise you can use a calculator to check the answer right. I just entered the line into my calculator and got something like 116.7. Earlier in the question it stated that minutes was rounded up or something along those lines so the answer in minutes was 117 and hours = 2
I'd have to see the paper again to be sure, I rushed this part of the paper.
-
Re: Ocr - f452 computing 29th may 2012 [official]No doubt I'll have missed some marks on that question but it was only 2 marks or something, as I said I rushed it lol.(Original post by Dubes)
Yeah but I didn't realise we had to do it all in one go, so I did each adding, multiplication seperate as I got confused when it said show your workings out, oh well
As for the above person who fininshed with 30 minutes left. I am a slow writer and always have to read the question several times lol I still finished in time and hopefully I wrote down what was required for the majority of the paper. I need to get about 90UMS in this paper and it's my last chance
-
Re: Ocr - f452 computing 29th may 2012 [official](Original post by KS8)
No doubt I'll have missed some marks on that question but it was only 2 marks or something, as I said I rushed it lol.
As for the above person who fininshed with 30 minutes left. I am a slow writer and always have to read the question several times lol I still finished in time and hopefully I wrote down what was required for the majority of the paper. I need to get about 90UMS in this paper and it's my last chance
We had 5 mins extra in our exam as the invigilator forgot to tell us that we had 5 mins left and I only finished mine because of that, so your not the only one who is slow. Can't see how anyone can do it in an hour though
-
Re: Ocr - f452 computing 29th may 2012 [official]
i messed up the recursion question, for some reason i assumed "PE" was a single character, so evaluated that the IF condition was true, during the second call
i only realised this in the very last minute, so didn't have time to change
what do you guys reckon the grade boundaries for A will be like? -
Re: Ocr - f452 computing 29th may 2012 [official](Original post by Derick B)
The paper was not easy or hard. It was average. I left all the coding questions out but didn't have time to finish it. I couldn't attempt or read the last question.
That probably means you lost around 20 marks then just from that. -
Re: Ocr - f452 computing 29th may 2012 [official]Considering it was 75/100 for an A in the January paper I would like to think it was slightly more difficult, maybe more like 70?(Original post by sw121)
i messed up the recursion question, for some reason i assumed "PE" was a single character, so evaluated that the IF condition was true, during the second call
i only realised this in the very last minute, so didn't have time to change
what do you guys reckon the grade boundaries for A will be like? -
Re: Ocr - f452 computing 29th may 2012 [official]Our invigilators never tell us we only have x minutes left, except if it's 0(Original post by Dubes)
We had 5 mins extra in our exam as the invigilator forgot to tell us that we had 5 mins left and I only finished mine because of that, so your not the only one who is slow. Can't see how anyone can do it in an hour though

I finished this (and F451, for that matter) in an hour, left early (only one in exam)
-
Re: Ocr - f452 computing 29th may 2012 [official]That's a shame but don't worry, you will still pick up around 2 marks out of 6 I assume as long as your method was appropiate.(Original post by sw121)
i messed up the recursion question, for some reason i assumed "PE" was a single character, so evaluated that the IF condition was true, during the second call
i only realised this in the very last minute, so didn't have time to change
what do you guys reckon the grade boundaries for A will be like?
I can't remember the grade boundaries for F452 but I know they are generally higher than F451.
The january 2012 paper grade boundaries were as follows: (Raw mark)
A - 75
B - 68
C - 62
D - 56
E - 50
I'd say this paper was easier although a lot of people seemed to have messed up the recusion part/record file question/array question when I spoke outside the exam hall so I can;t be sure what the grade boundaries for this paper will be. -
Re: Ocr - f452 computing 29th may 2012 [official]Yep i think i have BTW I didn't have time to finish it.(Original post by Dubes)
That probably means you lost around 20 marks then just from that.
i only realised this in the very last minute, so didn't have time to change 