The Student Room Group

OCR AS Computer science paper 1 5th June 2017

Scroll to see replies

Reply 20
Original post by Gamer_44
You cant have many to many


Yes you can 😂😂
Reply 21
IMG_0217.PNG
Original post by Gamer_44
You cant have many to many
Original post by UsKmekwioz
IMG_0217.PNG


For it to be many to many- you must break it in two 2 lots of one to many.

:wink:
I just believe a parcel and a customer has a 1 to many relationship
Reply 24
Original post by Waveyalex
I just believe a parcel and a customer has a 1 to many relationship


At least we know one of us is right lol
Reply 25
Original post by Waveyalex
I just believe a parcel and a customer has a 1 to many relationship


A parcel can only have one customer while a single customer can have many parcels.

One to many relationship.
Original post by GayElf
A parcel can only have one customer while a single customer can have many parcels.

One to many relationship.

finally confirmed lol but dw he will still get 1 mark prob
Original post by UsKmekwioz
At least we know one of us is right lol

bro were all in this together
Original post by GayElf
Lets make an unofficial mark scheme.

1. Topic = Vonneuman / Registers
a)
i) What is a register? [3?]

Spoiler


ii) Name another component of von-neuman architecture [1]

Spoiler


b)
i) State an operation which causes the ACC to change [1]

Spoiler


ii) Describe what the Pc stores [2]

Spoiler


c) State two LMC operations which will cause the PC to change [2]

Spoiler


2. Topic = PC improvements
Some fool has is having poor performance.Suggests how he can make it better? [9]

Spoiler


3. Topic = JavaScript.
a) What do the following lines mean?

var total = "" : [1]

Spoiler


for (var j =0;j<200000;i++) : [2]

Spoiler


total = total + str(j) : [1]

Spoiler


4. Binary / Data representation

1.
a) Convert the following from hex to binary : 0110 1111 [1]

Spoiler


b) Convert -19 to Twos complement [1]

Spoiler


c) -19 in sign and magnitude

Spoiler


d) subtraction question

e) Express 1 + 5/8 as a floating point number with a mantissa of 5 and exponent of 3.

Spoiler


f) A company distributes parcels and takes a picture of them before and after transit.They then use this to compare if any damege has occurred using a digital camera.Explain what type of storage would be best for this flash or magnetic.

Spoiler




6. Topic = Boolean
a) Draw the symbol for an XOR gate [1]

Spoiler


b) Describe the difference between an OR and XOR gate [2]

Spoiler


c) Diagram of (A OR B) OR (C OR D) Complete the truth table [1?]

Spoiler


d) Simplify expression[1?]

Spoiler


7.
a) Descibe the TCP/IP Stack

b) Disadvantage of ASCII over UNICODE

Pseudocode :

array called words = ["word1","word2",etc]
Multipledimensional array called Display[20,4]

Write a program which will display the words onto the fridge

8. Topic = Website accessibility

How can a website developer use techniques to accommodate otherly able and mobile users [9]


Questions Unaccounted for :

Many
Lossless vs lossy compression
pseudocode
entitty diagram between parcel and customers

Did you guys do the theory paper first?
Reply 29
Original post by Nada Elhannach
Did you guys do the theory paper first?


We only have theory based papers in year 1.
I have dished out a possible pseudocode solution with comments for question 7 if anyone is interested





updateDisplay(words):
# set a counter to know what line we are currently writing to
currentLine = 0

# loop through the following code while the queue of words is not empty
while words is not empty then
# get the next word in the queue, removing it from the queue
word = words.remove()

# check how many spaces the current line has left
lineCharsLeft = 20 - len(display[currentLine])

# if the line does not have enough space to print the word move onto the next line
if lineCharsLeft <= len(word) then
currentLine += 1
endif

# add the current word onto the end of the current line
display[currentLine] += word

# check how many spaces the current line has left
lineCharsLeft = 20 - len(display[currentLine])

# if the current line has spaces left, add a space to separate words
if lineCharsLeft > 0 then
display[currentLine] += " "
endif
endwhile



(edited 6 years ago)
Hey guys does anyone have these papers? I would be incredibly grateful if you could send them to me!
1. Topic = Vonneuman / Registers
a)
i) What is a register? [3?]

Spoiler


ii) Name another component of von-neuman architecture [1]

Spoiler


b)
i) State an operation which causes the ACC to change [1]

Spoiler


ii) Describe what the Pc stores [2]

Spoiler


c) State two LMC operations which will cause the PC to change [2]

Spoiler


2. Topic = PC improvements
Some fool has is having poor performance.Suggests how he can make it better? [9]

Spoiler


3. Topic = JavaScript.
a) What do the following lines mean?

var total = "" : [1]

Spoiler


for (var j =0;j<200000;i++) : [2]

Spoiler


total = total + str(j) : [1]

Spoiler


4. Binary / Data representation

1.
a) Convert the following from hex to binary : 0110 1111 [1]

Spoiler


b) Convert -19 to Twos complement [1]

Spoiler


c) -19 in sign and magnitude

Spoiler


d) subtraction question

e) Express 1 + 5/8 as a floating point number with a mantissa of 5 and exponent of 3.

Spoiler


f) A company distributes parcels and takes a picture of them before and after transit.They then use this to compare if any damege has occurred using a digital camera.Explain what type of storage would be best for this flash or magnetic.

Spoiler




6. Topic = Boolean
a) Draw the symbol for an XOR gate [1]

Spoiler


b) Describe the difference between an OR and XOR gate [2]

Spoiler


c) Diagram of (A OR B) OR (C OR D) Complete the truth table [1?]

Spoiler


d) Simplify expression[1?]

Spoiler


7.
a) Descibe the TCP/IP Stack [3/4?]

Spoiler



b) Disadvantage of ASCII over UNICODE

Spoiler


Pseudocode :

array called words = ["word1","word2",etc]
Multipledimensional array called Display[20,4]

Write a program which will display the words onto the fridge

8. Topic = Website accessibility

How can a website developer use techniques to accommodate otherly able and mobile users [9]


Questions Unaccounted for :

Many
Lossless vs lossy compression
pseudocode
entitty diagram between parcel and customers
(edited 6 years ago)
Reply 33
Just finished this paper as a PPE (mock) here is the full Unofficial Mark scheme, this is about as close as our class can get to the actual MS:

H046/01 June 2017 Unofficial Mark scheme




1ai

A series of transistors and logic gates in order to hold a small piece of data or instruction.



Alt:

- A memory location, located on the processor

- Used for a particular purpose involving the storage of data

- It is faster access than RAM

1aii

Data and instructions stored together



Alt:

- It uses the fetch-decode execute cycle

- It stores data and instructions together

- It uses registers, a single control unit, a single bus and a single memory store

- The Vonn Neumann bottle neck limits clock speed

1b

ADD, SUB, LDA, STA

1ci

Stores the address of the instruction which is waiting to be decoded. Once decoded the PC increments causing for the next instructions address to be fetched.



Alt:

- The Program Counter points to the next instruction to be fetched, decoded and executed

- It is incremented to point to the next instruction

- It's value can also be altered by a jump instruction

1cii

Two of:

- BRZ

- BRP

- BRA

2

Three of:



- Processor with Faster Clock Speed

-- More cycles per second therefore more instructions can be executed per second

-- Therefore programs can run faster



- Cache memory

-- Cache memory is a memory store that is faster access than RAM. Commonly used instructions are stored here and since there is faster access, instructions can be fetched more quickly and thus programs take less time to run.

-- More cache memory means there is more memory for instructions/data to be stored



- Additional cores

-- A processor with more cores will process more quickly as each core is a distinct processing unit.

-- Pipelining can be used so that one core fetches whilst the other decodes and another executes etc.



- Additional RAM

-- More RAM means there is more memory to store instructions and data.

-- Reduces the use of virtual memory and thus the effect of disk thrashing.



- Utility software, like disk defrag

-- Disk defrag software optimises the hard disk by moving segments of files so that they are together on the disk.

-- This optimises the hard disk making read and write operations faster, this in turn makes the computer run faster.

3a

1

-- 1 mark for: Initializes the variable total as an empty string. (Dynamic type cast so variable is declared as string.)

-- 2nd mark for: definition of a variable, i.e. a named location in memory.

2 Creating a loop from 0 to 199999 (must state the correct number of iterations).

Other Answer:

A loop that will iterate 20,000 times

4 Casts j as a string and concatenates it with total



3b

- A stack is a method for handling linear lists of data; data is added and removed from the top of the list.

- Ideal for web browser history as it keeps the order, using the LIFO (‘last on, first off’) method, so that last web history item recorded is the first off the stack.

4a

- Check for volume less than 0.3m3 and weight less than 4kg

- If ^ is true, correctly returns £5

- For other parcels, calculation of cost: £20/m3 AND £2/kg

- Returns whichever calculation cost is bigger ^

4b

A parcel can only have one customer, while a single customer can have many parcels.

- 1 mark for customer correctly drawn

- 1 mark for parcel correctly drawn












4ci

- 1 mark for giving an advantage:

-- faster read/write speeds

-- more reliable (not prone to mechanical failure)

-- more quiet

-- less power consumed

-- smaller in physical size

-- no fragmentation issues

- 1 mark for comparing to magnetic

4cii

Either answer, justification needs to be given and needs to be made relevant:

- lossy

- most optimised form of compression

- (making it relevant) helpful when delivery company is photographing a lot of parcels



-- or --



- lossless

- doesn’t lose any quality.

- (making it relevant) delivery company wants high quality images as evidence of undamaged deliveries.

5a

6F

5bi

1110 1101

5bii

10010011

5c

1 mark for each nibble:

0101 001

5d

1 mark for whole number, 1 mark for decimal, 1 mark for showing working:

01101 001

6a



6b

- XOR is exclusive while OR is not.

- Meaning an OR gate returns true for 11 while XOR returns false for 00.

6ci

(All 1's apart from 0000 which returns false)

6cii

A OR B OR C OR D , but using symbols not words

7a

[Question removed]

- -

- The TCP/IP stack is a set of networking protocols that allow computers to communicate.

- It is a standard and it is an example of protocol layering

- A divide and conquer strategy used to simplify the design of networks.

- It consists of four layers: application, transport, network(internet), link

-- Application Layer: Encodes the data ready to be sent on a network

-- Transport: Splits the data into packets and packages them adding port numbers

-- Internet Layer: Looks at destination IP address and decides on the best route across a network. It adds these IP address to specify the route.

-- Link Layer: The physical connection. It involves the physical medium e.g. cables. It adds MAC address information to specify what hardware is receiving.



7b

One of:

- ASCII is 7-bit whereas Unicode is 16-bit.

- ASCII only allows up to 128 characters to be stored and the Most significant bit is stored as zero (since computers use 8-bits)

- Unicode allows over 65,000 characters to be stored therefore the computer can understand a variety of languages, etc

7c

updateDisplay(words):

currentLine = 0

while words is not empty then

word = words.remove()

lineCharsLeft = 20 - len(display[currentLine])



if lineCharsLeft <= len(word) then

currentLine += 1

endif



display[currentLine] += word



lineCharsLeft = 20 - len(display[currentLine])





if lineCharsLeft > 0 then

display[currentLine] += " "

endif

endwhile



- 1 mark for correct pseudocode and readability

- counter for current line

- iterate over words

- check remaining spaces on line

- move onto next line if not enough space

- add space between words

- correctly adding line to display



8

Mark Band 3 High Level (7-9 marks)

Demonstrates a thorough knowledge and understanding in a range of accessibility features for websites. Features described and then explained how they would help a user and how they would be implemented technically.



Mark Band 2 Mid Level (4-6 marks)

Demonstrates a reasonable knowledge and understanding in a range of accessibility features for websites. Features are outlined, and then either explained how they would help a user or how they would be implemented technically.



Mark Band 1 Low Level (1-3 marks)

Demonstrates a basic knowledge of web design, some basic accessibility features mentioned.



Discussion of:

- mobile web design

- SEO

- usability

- design for older users

- colour

- alternative text for non-text based content

- keyboard input

- transcripts of audio and video files

- compatibility with screen readers, magnifiers and speech recognition software

- using WAVE (web accessibility evaluation tool)

- etc
What were the 9 marker questions??
Original post by GayElf
Lets make an unofficial mark scheme.

1. Topic = Vonneuman / Registers
a)
i) What is a register? [3?]

Spoiler


ii) Name another component of von-neuman architecture [1]

Spoiler


b)
i) State an operation which causes the ACC to change [1]

Spoiler


ii) Describe what the Pc stores [2]

Spoiler


c) State two LMC operations which will cause the PC to change [2]

Spoiler


2. Topic = PC improvements
Some fool has is having poor performance.Suggests how he can make it better? [9]

Spoiler


3. Topic = JavaScript.
a) What do the following lines mean?

var total = "" : [1]

Spoiler


for (var j =0;j<200000;i++) : [2]

Spoiler


total = total + str(j) : [1]

Spoiler


4. Binary / Data representation

1.
a) Convert the following from hex to binary : 0110 1111 [1]

Spoiler


b) Convert -19 to Twos complement [1]

Spoiler


c) -19 in sign and magnitude

Spoiler


d) subtraction question

e) Express 1 + 5/8 as a floating point number with a mantissa of 5 and exponent of 3.

Spoiler


f) A company distributes parcels and takes a picture of them before and after transit.They then use this to compare if any damege has occurred using a digital camera.Explain what type of storage would be best for this flash or magnetic.

Spoiler




6. Topic = Boolean
a) Draw the symbol for an XOR gate [1]

Spoiler


b) Describe the difference between an OR and XOR gate [2]

Spoiler


c) Diagram of (A OR B) OR (C OR D) Complete the truth table [1?]

Spoiler


d) Simplify expression[1?]

Spoiler


7.
a) Descibe the TCP/IP Stack

b) Disadvantage of ASCII over UNICODE

Pseudocode :

array called words = ["word1","word2",etc]
Multipledimensional array called Display[20,4]

Write a program which will display the words onto the fridge

8. Topic = Website accessibility

How can a website developer use techniques to accommodate otherly able and mobile users [9]


Questions Unaccounted for :

Many
Lossless vs lossy compression
pseudocode
entitty diagram between parcel and customers


Thank you so much for this! Do you have one for paper 2, or could you tell me what was on it please?

Quick Reply

Latest

Trending

Trending