# Ocr - f452 computing 29th may 2012 [official] Tweet

Computer Science and ICT discussion, revision, exam and homework help.

Announcements Posted on
TSR launches Learn Together! - Our new subscription to help improve your learning 16-05-2013
IMPORTANT: You must wait until midnight (morning exams)/4.30AM (afternoon exams) to discuss Edexcel exams and until 1pm/6pm the following day for STEP and IB exams. Please read before posting, including for rules for practical and oral exams. 28-04-2013
1. 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.
2. Re: Ocr - f452 computing 29th may 2012 [official]
(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.
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
3. Re: Ocr - f452 computing 29th may 2012 [official]
(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.
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?
4. 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.

(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?
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.
Last edited by Inorien; 29-05-2012 at 18:54.
5. Re: Ocr - f452 computing 29th may 2012 [official]
(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
I did that, but I did 1+1= 2, 2 * 15= 30

30 + 100= 130

Did you not have to add the 1 before multiplying the HourlyRate?
6. 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
7. Re: Ocr - f452 computing 29th may 2012 [official]
(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.
I'm glad i'm not the only one! Perhaps both are viable?
8. 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.
9. Re: Ocr - f452 computing 29th may 2012 [official]
(Original post by KS8)
I rushed this part of the paper.
How? I finished with about 30 mins to spare
10. Re: Ocr - f452 computing 29th may 2012 [official]
The answer was 116, I'm an idiot!
11. Re: Ocr - f452 computing 29th may 2012 [official]
(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.
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
12. Re: Ocr - f452 computing 29th may 2012 [official]
(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
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
13. 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
14. 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?
15. Re: Ocr - f452 computing 29th may 2012 [official]
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.
16. 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.
17. Re: Ocr - f452 computing 29th may 2012 [official]
(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?
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?
18. Re: Ocr - f452 computing 29th may 2012 [official]
(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
Our invigilators never tell us we only have x minutes left, except if it's 0

I finished this (and F451, for that matter) in an hour, left early (only one in exam)
19. Re: Ocr - f452 computing 29th may 2012 [official]
(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?
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.

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.
20. Re: Ocr - f452 computing 29th may 2012 [official]
(Original post by Dubes)
That probably means you lost around 20 marks then just from that.
Yep i think i have BTW I didn't have time to finish it.