The Student Room Group

Computer Science Paper 2 OCR GCSE (9-1) Unofficial Mark scheme

This is the discussion about the ocr gcse computer science paper 2 which was sat on the 17th of May 2018

Scroll to see replies

Reply 1
For the logic question did you get 1,1,1,0?
Reply 2
2 programming constructs were ITERATION and SEQUENCING
the binary to hex question was B5
Reply 4
Original post by ThomasClay
2 programming constructs were ITERATION and SEQUENCING


:frown:, I put for loop and print function, at least it was only 2 marks
Reply 5
Original post by Georgev1337
the binary to hex question was B5


Yeah I got B5
boi it was 2,4,6
Reply 7
Original post by sbalfe16
boi it was 2,4,6


My G
Reply 8
Original post by sbalfe16
boi it was 2,4,6


How many times did it run?
Original post by peeked
For the logic question did you get 1,1,1,0?

yea thats exactly what i got
Original post by Georgev1337
the binary to hex question was B5


yess 1 right
Original post by ThomasClay
2 programming constructs were ITERATION and SEQUENCING


oh wow. i wrote loops and indentation
I did 'A OR (NOT B) for the logic one

B5 for hexadecimal

10000100 for the binary one

Sequence and Iteration

* for SQL Wild Card

One place left shift for doubling

M and K for variables (if I remember correctly)

ASCII in 7 bits, extended ASCII in 8 bits so it has more combinations for characters.
Original post by peeked
For the logic question did you get 1,1,1,0?


yep
Original post by ThomasClay
How many times did it run?


i got 3 * 5 which was 15
What did everyone get for the 2nd question about the first 3 numbers output and how many times does line 3 repeat?
What did you guys get for the SQL command question that outputs all the items in the database. i Wrote
If 1=1
Original post by RocksLikeA13055
i got 3 * 5 which was 15


Ahh sh*t yeh! I added
Alright, these are the questions I remember:
The SQL ones:
Data types: string / text, integer, boolean
SQL statement: SELECT StudentName FROM Conduct WHERE Points < 0
Wildcard: * (an asterik)

Algorithm:
If studentdata [3] == "TRUE" then
Print ("sent")
Else
Print ("not sent")
Endif

For the algorithm with the nested for loop:
First three outputted numbers: 2,3,4 (not sure about this)
Number of times line 3 repeats: 15
Define a variable: stores a data value under an identifier which links to a memory location. The value can change at any time whilst the programme is running
The two variables: could have been m,k or p

The library code question:
The parameter was "year"
The number in .subString () was 3
The next line is assigning it to any variable name (I named it "code")

The algorithm:
Title = input ("enter title")
Year = input ("enter year")
code = librarycode (title, year)
file = openWrite ("books.txt") - can't remember the file name
file.writeLine (code)
file.close ()

Difference between a function and a procedure:
Functions always return at least one value whereas parameters don't return a value.

Advantages of subprograms:
- useful when you need to repeat code in diferent places in a program
-more structure and readability
-cuts down on amount of code
(+explanation as 4 marks)

For the infinite loop question:
The first two were infinite the second two were not.

Algorithm to count to 10:
For k = 1 to 10
print k
next k

132 in binary: 10000100
Binary to hex : B5
To double number: left shift 1 place
That's what I remember
Original post by Loci Pi
What did everyone get for the 2nd question about the first 3 numbers output and how many times does line 3 repeat?


for that i got 2,3,4
and the next one was 3*5 which was 15

Quick Reply

Latest

Trending

Trending