Candidate number. Centre number

Similar documents
Tuesday 14 June 2016 Afternoon Time allowed: 1 hour 15 minutes

Tuesday 15 January 2013 Morning

F453. COMPUTING Advanced Computing Theory ADVANCED GCE. Thursday 23 June 2011 Morning

Friday 16 June 2017 Morning

Wednesday 14 May 2014 Morning

Level 3 Cambridge Technical in Digital Media

Practice. A Level Computer Science H446/01 Computer systems. Practice paper - Set 1. Time allowed: 2 hours 30 minutes

Thursday 12 January 2017 Afternoon Time allowed: 1 hour

Tuesday 29 January 2013 Morning

Wednesday 13 May 2015 Morning

Candidate number. Centre number

Wednesday 17 May 2017 Morning

A451. COMPUTING Computer Systems and Programming GENERAL CERTIFICATE OF SECONDARY EDUCATION. Monday 23 May 2011 Morning

THIS IS A NEW SPECIFICATION

Thursday 17 May 2012 Afternoon

Monday 15 June 2015 Afternoon

* * MATHEMATICS 4721/01 Core Mathematics 1 ADVANCED SUBSIDIARY GCE. Wednesday 9 January 2008 Afternoon. Duration: 1 hour 30 minutes.

Tuesday 14 January 2014 Morning

Candidate number. Centre number

* * MATHEMATICS (MEI) 4751/01 Introduction to Advanced Mathematics (C1) ADVANCED SUBSIDIARY GCE. Thursday 15 May 2008 Morning

F452. COMPUTING Programming Techniques and Logical Methods ADVANCED SUBSIDIARY GCE. Friday 21 January 2011 Morning

THIS IS A LEGACY SPECIFICATION GCSE MATHEMATICS C (GRADUATED ASSESSMENT)

Thursday 6 June 2013 Morning

Friday 9 June 2017 Morning

Thursday 6 June 2013 Afternoon

Thursday 14 June 2012 Morning

Friday 18 January 2013 Afternoon

Tuesday 24 June 2014 Morning

Monday 27 June 2016 Afternoon

B277B MATHEMATICS C (GRADUATED ASSESSMENT) MODULE M7 SECTION B GENERAL CERTIFICATE OF SECONDARY EDUCATION. Monday 8 March 2010 Morning

MATHEMATICS 4736 Decision Mathematics 1

Tuesday 13 June 2017 Morning Time allowed: 1 hour 30 minutes

Friday 24 May 2013 Morning

Level 3 Cambridge Technical in IT 05838/05839/05840/05841/05842/05877 Unit 1: Fundamentals of IT

Wednesday 22 May 2013 Afternoon

Monday 23 January 2012 Morning

Thursday 8 June 2017 Morning Time allowed: 1 hour 30 minutes

Tuesday 9 January 2018 Morning

Cambridge International Examinations Cambridge International Advanced Level

Specimen. Date Morning/Afternoon Time allowed: 1 hour 30 minutes. GCSE (9 1) Computer Science J276/01 Computer Systems Sample Question Paper

Level 3 Cambridge Technical in IT

To be given to candidates on or after 1 March 2018 in the year before certification.

Cambridge International Examinations Cambridge International Advanced Subsidiary and Advanced Level

MATHEMATICS 4736 Decision Mathematics 1

Monday 17 June 2013 Morning

Friday 5 June 2015 Morning

Thursday 19 June 2014 Morning

Cambridge International Examinations Cambridge International Advanced Subsidiary and Advanced Level

Monday 9 June 2014 Afternoon

Cambridge International Examinations Cambridge International Advanced Subsidiary and Advanced Level

Cambridge International Examinations Cambridge International Advanced Subsidiary and Advanced Level

Wednesday 15 June 2016 Morning

Cambridge International Examinations Cambridge International Advanced Subsidiary and Advanced Level

THIS IS A LEGACY SPECIFICATION

Tuesday 22 January 2013 Afternoon

Cambridge International Examinations Cambridge Ordinary Level

Thursday 24 May 2012 Morning

Thursday 9 June 2016 Morning

This pre-release material may be given to candidates at any time after receipt by the Centre.

Cambridge International Examinations Cambridge International Advanced Subsidiary and Advanced Level

physicsandmathstutor.com

Cambridge International Examinations Cambridge International General Certificate of Secondary Education

Cambridge International Examinations Cambridge International General Certificate of Secondary Education

Cambridge International Examinations Cambridge International Advanced Subsidiary and Advanced Level

Cambridge International Examinations Cambridge International Advanced Level

Wednesday 18 May 2016 Morning

Released June 2012 For Assessment Submission January 2013 to June 2015

Cambridge International Examinations Cambridge International Advanced Subsidiary and Advanced Level

Cambridge International Examinations Cambridge International Advanced Subsidiary and Advanced Level

GCSE (9 1) Computer Science J276/02 Computational thinking, algorithms and programming Sample Question Paper. Specimen

ADVANCED GCE MATHEMATICS (MEI) 4754A

Cambridge International Examinations Cambridge Ordinary Level

Cambridge International Examinations Cambridge International Advanced Level

UNIVERSITY OF CAMBRIDGE INTERNATIONAL EXAMINATIONS General Certificate of Education Advanced Subsidiary Level and Advanced Level

Cambridge International Examinations Cambridge International Advanced Subsidiary and Advanced Level

Cambridge International Examinations Cambridge International General Certificate of Secondary Education

UNIVERSITY OF CAMBRIDGE INTERNATIONAL EXAMINATIONS General Certificate of Education Advanced Level. Paper 3 October/November hours

Learning objectives. Computer principles The characteristics of contemporary processors, input, output and storage devices

Cambridge International Examinations Cambridge International General Certificate of Secondary Education

Cambridge International Examinations Cambridge International General Certificate of Secondary Education

UNIVERSITY OF CAMBRIDGE INTERNATIONAL EXAMINATIONS General Certificate of Education Advanced Level. Paper 3 October/November hours

Cambridge International Examinations Cambridge International General Certificate of Secondary Education

OCR H446 A-Level Computer Science

INFORMATION AND COMMUNICATION TECHNOLOGY

SAMPLE CURRICULUM GUIDE June 2014

GCSE (9 1) Mathematics J560/05 Paper 5 (Higher Tier) Practice paper Set 2 Time allowed: 1 hour 30 minutes

Cambridge International Examinations Cambridge International Advanced Subsidiary and Advanced Level

UNIVERSITY OF CAMBRIDGE INTERNATIONAL EXAMINATIONS General Certificate of Education Advanced Subsidiary Level and Advanced Level

Cambridge International Examinations Cambridge International Advanced Subsidiary and Advanced Level

Tuesday 10 June 2014 Morning

Cambridge International Examinations Cambridge International Advanced Subsidiary and Advanced Level

Cambridge International Examinations Cambridge International Advanced Subsidiary and Advanced Level

MATHEMATICS (MEI) 4771 Decision Mathematics 1

Cambridge International Examinations Cambridge International Advanced Subsidiary and Advanced Level

Cambridge International Examinations Cambridge International General Certificate of Secondary Education

UNIVERSITY OF CAMBRIDGE INTERNATIONAL EXAMINATIONS General Certificate of Education Advanced Level. Paper 3 May/June hours

2c. Content of Computer systems (Component 01)

Cambridge International Examinations Cambridge International Advanced Level

Cambridge International Examinations Cambridge International Advanced Subsidiary and Advanced Level

MATHEMATICS 4736 Decision Mathematics 1

Transcription:

Oxford Cambridge and RSA AS Level Computer Science H046/01 Computing Principles Monday 5 June 2017 Morning Time allowed: 1 hour 15 minutes *6891262311* Do not use: a calculator * H 0 4 6 0 1 * First name Last name Centre number Candidate number INSTRUCTIONS Use black ink. Complete the boxes above with your name, centre number and candidate number. Answer all the questions. Write your answer to each question in the space provided. Additional paper may be used if required but you must clearly show your candidate number, centre number and question number(s). Do not write in the barcodes. INFORMATION The total mark for this paper is 70. The marks for each question are shown in brackets [ ]. Quality of extended responses will be assessed in questions marked with an asterisk (*). This document consists of 16 pages. [601/5030/0] DC (RW/FC) 139032/3 OCR is an exempt Charity Turn over

2 Answer all the questions. 1 (a) Processors following the Von Neumann Architecture use registers. (i) Describe what is meant by the term register.... [2] (ii) Give one other feature of the Von Neumann Architecture.... [1] (b) An example of a register is the Accumulator (ACC). Give a Little Man Computer instruction that will copy the contents of the accumulator into memory when executed....... [1] (c) Another register is the Program Counter (PC). (i) State what the Program Counter holds.... [1] (ii) Give the name of two Little Man Computer instructions that may change the contents of the Program Counter when executed. 1... 2... [2]

3 2* A student, Dan, on a limited budget finds his computer is running slowly. He uses his computer for university work and internet browsing. Discuss what measures can be taken to improve Dan s computer s performance. You should explain what these measures are, why they improve the performance and justify whether you would recommend them....................................................... [9] Turn over

3 The following JavaScript has been found to crash certain web browsers. Line Code 1 var total = ""; 2 for(var j = 0; j < 200000; j++) 3 { 4 total = total + j.tostring(); 5 history.pushstate(0,0, total); 6 } j.tostring() converts j to a string. It is the JavaScript equivalent to str(j). (a) Complete the table below. 4 Line 1 Effect of Code [2] 2 [1] 3 4 [1] 5 Pushes total onto a stack that holds the browser s history. 6 (b) Line 5 pushes total onto a stack. Define the term stack, stating why it is suited to holding a web browser s history............. [2]

4 A delivery company sends parcels across the UK. (a) The company charges on the following basis: 5 Parcels that have a volume of less than 0.3 m 3 and weigh less than 4 kg cost 5 to send. All other parcels cost 20 per m 3 or 2 per kg, whichever is greater. Examples Parcel A weighs 2.5 kg, has a volume of 0.1 m 3 and costs 5 to send. Parcel B weighs 6 kg, has a volume of 0.2 m 3 and costs 12 to send. Parcel C weighs 6 kg, has a volume of 0.8 m 3 and costs 16 to send. The function getcost takes in the volume and weight of a parcel and returns the cost. getcost(2.5,0.1) returns 5 getcost(6,0.2) returns 12 getcost(6,0.8) returns 16 Complete the pseudo-code below so that the function getcost returns the correct cost. function getcost(weight, volume) endfunction [4] Turn over

6 (b) Details of customers sending parcels are stored in a database. The database contains a table called parcel and a table called customer. Draw an entity relationship diagram showing the parcel and customer tables. (c) To prove parcels have not been damaged in transit, the delivery drivers use a digital camera to take a photograph of them when they arrive at their destination. The digital camera uses flash memory. [2] (i) Describe one advantage of the digital camera using flash storage rather than magnetic.... [2] (ii) Explain whether lossless or lossy compression would be most appropriate to store the photographs. Justify your response.... [3]

7 5 (a) Convert the binary number 01101111 to a hexadecimal number....... [1] (b) Convert the denary number 19 to an 8-bit number using: (i) Two s complement representation.... [1] (ii) Sign and Magnitude representation.... [1] (c) The two values below are stored using unsigned binary. Calculate the subtraction of 01110010 from 11000011. Show your working. 11000011 01110010 (d) Convert the denary number 1 5 / 8 (i.e. 1.625) to a normalised floating point binary number using 5 bits for the mantissa and 3 bits for the exponent. Show your working................... [3] [2] Turn over

6 (a) Draw an XOR gate. 8 [1] (b) Explain the difference in the function of OR and XOR gates............. [2]

(c) A circuit contains the logic gates shown below. 9 A B C D Output (i) Complete the logic table below. A B C D Output 1 1 1 1 1 1 1 0 1 1 0 1 1 1 0 0 1 0 1 1 1 0 1 0 1 0 0 1 1 0 0 0 0 1 1 1 0 1 1 0 0 1 0 1 0 1 0 0 0 0 1 1 0 0 1 0 0 0 0 1 0 0 0 0 [4] (ii) Complete the Boolean expression below to represent the circuit.... Output [2] Turn over

10 BLANK PAGE PLEASE DO NOT WRITE ON THIS PAGE

11 7 A company releases an Internet connected fridge. Users can email messages to the fridge and it puts them on its display. (a) The fridge uses the TCP/IP stack. Explain what is meant by the term TCP/IP stack................... [3] (b) The fridge uses the ASCII character set. Give one disadvantage of the fridge using ASCII rather than Unicode.......... [1] Turn over

12 When the fridge receives a message it takes the string and stores it in a queue called words. For example REMEMBER TO TAKE CHARLIE TO THE DENTIST THIS AFTERNOON becomes a queue: words=["remember","to","take","charlie","to","the","dentist", "THIS","AFTERNOON"] words.remove() then returns the next item in the queue for example temp=words.remove() assigns temp the value "REMEMBER" and leaves words as ["TO","TAKE","CHARLIE","TO","THE","DENTIST","THIS","AFTERNOON"] The display has four lines; each can show a maximum of 20 characters including spaces. If a word can t fit on a line a new line is started. Examples R E M E M B E R T O T A K E C H A R L I E T O T H E D E N T I S T T H I S A F T E R N O O N G E T S O M E M O R E C H O C O L A T E P L E A S E The contents of the display are stored in a 2D array of characters called display. The procedure updatedisplay receives the queue words which holds the message and writes the message to the display.

13 (c) Write the procedure updatedisplay. Credit will be given for the readability of your code. You can assume: Messages contain no punctuation. All messages will fit on the display. The previous message is removed before the procedure is run. global array display[20,4] procedure updatedisplay(words) endprocedure [7] Turn over

14 8* Many websites try to ensure they are accessible to all visitors regardless of disability, language spoken or the device being used to access it. Discuss the technical and design measures that can be taken to ensure a website is accessible................................................................ [9] END OF QUESTION PAPER

15 BLANK PAGE PLEASE DO NOT WRITE ON THIS PAGE

16 PLEASE DO NOT WRITE ON THIS PAGE Oxford Cambridge and RSA Copyright Information OCR is committed to seeking permission to reproduce all third-party content that it uses in its assessment materials. OCR has attempted to identify and contact all copyright holders whose work is used in this paper. To avoid the issue of disclosure of answer-related information to candidates, all copyright acknowledgements are reproduced in the OCR Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download from our public website (www.ocr.org.uk) after the live examination series. If OCR has unwittingly failed to correctly acknowledge or clear any third-party content in this assessment material, OCR will be happy to correct its mistake at the earliest possible opportunity. For queries or further information please contact the Copyright Team, First Floor, 9 Hills Road, Cambridge CB2 1GE. OCR is part of the Cambridge Assessment Group; Cambridge Assessment is the brand name of University of Cambridge Local Examinations Syndicate (UCLES), which is itself a department of the University of Cambridge.