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

#1
This is the discussion about the ocr gcse computer science paper 2 which was sat on the 17th of May 2018
0
7 months ago
#2
For the logic question did you get 1,1,1,0?
5
#3
2 programming constructs were ITERATION and SEQUENCING
3
7 months ago
#4
the binary to hex question was B5
3
7 months ago
#5
(Original post by ThomasClay)
2 programming constructs were ITERATION and SEQUENCING
, I put for loop and print function, at least it was only 2 marks
0
7 months ago
#6
(Original post by Georgev1337)
the binary to hex question was B5
Yeah I got B5
0
7 months ago
#7
boi it was 2,4,6
2
#8
(Original post by sbalfe16)
boi it was 2,4,6
My G
0
#9
(Original post by sbalfe16)
boi it was 2,4,6
How many times did it run?
0
7 months ago
#10
(Original post by peeked)
For the logic question did you get 1,1,1,0?
yea thats exactly what i got
2
7 months ago
#11
(Original post by Georgev1337)
the binary to hex question was B5
yess 1 right
0
7 months ago
#12
(Original post by ThomasClay)
2 programming constructs were ITERATION and SEQUENCING
oh wow. i wrote loops and indentation
0
7 months ago
#13
I did 'A OR (NOT B) for the logic one

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.
2
7 months ago
#14
(Original post by peeked)
For the logic question did you get 1,1,1,0?
yep
0
7 months ago
#15
(Original post by ThomasClay)
How many times did it run?
i got 3 * 5 which was 15
2
7 months ago
#16
What did everyone get for the 2nd question about the first 3 numbers output and how many times does line 3 repeat?
0
7 months ago
#17
What did you guys get for the SQL command question that outputs all the items in the database. i Wrote
If 1=1
0
#18
(Original post by RocksLikeA13055)
i got 3 * 5 which was 15
0
7 months ago
#19
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:
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.

- useful when you need to repeat code in diferent places in a program
-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
2
7 months ago
#20
(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
1
X

new posts
Latest
My Feed

### Oops, nobody has postedin the last few hours.

Why not re-start the conversation?

see more

### See more of what you like onThe Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

### University open days

• University of East Anglia
All Departments Open 13:00-17:00. Find out more about our diverse range of subject areas and career progression in the Arts & Humanities, Social Sciences, Medicine & Health Sciences, and the Sciences. Postgraduate
Wed, 30 Jan '19
• Aston University
Wed, 30 Jan '19
• Solent University
Sat, 2 Feb '19

### Poll

Join the discussion

Remain (1065)
79.01%
Leave (283)
20.99%