Cambridge International Examinations Cambridge .

3y ago
423 Views
29 Downloads
485.39 KB
12 Pages
Last View : 2d ago
Last Download : 1m ago
Upload by : Raelyn Goode
Transcription

Cambridge International ExaminationsCambridge International Advanced Level* 2 1 5 5 3 9 6 6 5 3 *9608/31COMPUTER SCIENCEPaper 3 Advanced TheoryOctober/November 20161 hour 30 minutesCandidates answer on the Question Paper.No Additional Materials are required.No calculators allowed.READ THESE INSTRUCTIONS FIRSTWrite your Centre number, candidate number and name in the spaces at the top of this page.Write in dark blue or black pen.You may use an HB pencil for any diagrams, graphs or rough working.Do not use staples, paper clips, glue or correction fluid.DO NOT WRITE IN ANY BARCODES.Answer all questions.No marks will be awarded for using brand names of software packages or hardware.At the end of the examination, fasten all your work securely together.The number of marks is given in brackets [ ] at the end of each question or part question.The maximum number of marks is 75.This document consists of 11 printed pages and 1 blank page.DC (NF/AR) 116626/4 UCLES 2016[Turn over

21In a particular computer system, real numbers are stored using floating-point representation with: 12 bits for the mantissa4 bits for the exponenttwo’s complement form for both mantissa and exponent(a) Calculate the floating-point representation of 2.5 in this system. Show your working.MantissaExponent . [3](b) Calculate the floating-point representation of 2.5 in this system. Show your working.MantissaExponent . [3] UCLES 20169608/31/O/N/16

3(c) Find the denary value for the following binary floating-point number. Show your working.Mantissa0 011000Exponent000000011. [3](d) (i)State whether the floating-point number given in part (c) is normalised or not normalised. [1](ii)Justify your answer given in part (d)(i). [1](e) The system changes so that it now allocates 8 bits to both the mantissa and the exponent.State two effects this has on the numbers that can be represented.1 .2 . [2] UCLES 20169608/31/O/N/16[Turn over

42There are four stages in the compilation of a program written in a high-level language.(a) Four statements and four compilation stages are shown below.Draw a line to link each statement to the correct compilation stage.StatementCompilation stageThis stage removes anycomments in the programsource code.Lexical analysisThis stage could beignored.Syntax analysisThis stage checks thegrammar of the programsource code.Code generationThis stage produces atokenised version of theprogram source code.Optimisation[4](b) Write the Reverse Polish Notation (RPN) for the following expressions.(i)(A B) * (C D). [2](ii) A / B * 4 / (C D). [3] UCLES 20169608/31/O/N/16

5(c) An interpreter is executing a program. The program uses the variables w, x, y and z.The program contains an expression written in infix form. The interpreter converts the infixexpression to RPN. The RPN expression is:x w z y *The interpreter evaluates this RPN expression using a stack.The current values of the variables are:w 1(i)x 2y 3z 4Show the changing contents of the stack as the interpreter evaluates the expression.The first entry on the stack has been done for you.2[4](ii)Convert back to its original infix form, the RPN expression:x w z y *. [2](iii)Explain one advantage of using RPN for the evaluation of an expression. [2] UCLES 20169608/31/O/N/16[Turn over

63A computer operating system (OS) uses paging for memory management.In paging: main memory is divided into equal-size blocks, called page frameseach process that is executed is divided into blocks of the same size, called pageseach process has a page table that is used to manage the pages of this processThe following table is the incomplete page table for a process X.PagePresenceflagPage frame address1113221245312324005154260013500Additional dataWhen a particular page of the process is currently in main memory, the Presence flag entry in thepage table is set to 1.If the page is not currently present in memory, the Presence flag is set to 0.(a) The page frame address entry for Page 2 is 245.State what the value 245 could represent. [1](b) Process X executes until the next instruction is the first instruction in Page 4. Page 4 is notcurrently in main memory.State a hardware device that could be storing this page. [1] UCLES 20169608/31/O/N/16

7(c) When an instruction to be accessed is not present in main memory, its page must be loadedinto a page frame. If all page frames are currently in use, the contents of a page frame will beoverwritten with this new page.The page that is to be replaced is determined by a page replacement algorithm.One possible algorithm is to replace the page that has been resident in main memory for thelongest time.(i)Give the additional data that would need to be stored in the page table. [1](ii)Complete the table entries below to show what happens when Page 4 is swapped intomain memory. Assume that Page 5 is the one to be replaced.In the final column, give an example of the data you have identified in part (c)(i).Page4PresenceflagPage frame addressAdditional data.[3]An alternative algorithm is to replace the page that has been used least.(iii)Give the different additional data that the page table would now need to store. [1](iv)In the following table, complete the missing data to show what happens when Page 3 isswapped into main memory. Assume that Page 1 is the one to be replaced.In the final column, give an example of the data you have identified in part (c)(iii).Page3 UCLES 2016PresenceflagPage frame addressAdditional data.9608/31/O/N/16[3][Turn over

8(d) Explain why the algorithms given in part (c) may not be the best choice for efficient memorymanagement.Longest resident .Least used . [4]4(a) (i)Complete the truth table for this logic circuit.InputXAYBX0011Y0101OutputAB[2](ii)State the name given to this logic circuit. [1](iii)Name the labels usually given to A and B.Label A .Label B .Explain why your answers are more appropriate for the A and B labels. [4] UCLES 20169608/31/O/N/16

9(b) (i)Write the Boolean expression corresponding to the following logic circuit:ABXC. [2](ii)Use Boolean algebra to simplify the expression that you gave in part (b)(i).Show your working. [3] UCLES 20169608/31/O/N/16[Turn over

105The TCP/IP protocol suite can be viewed as a stack with four layers.(a) (i)Complete the stack by inserting the names of the three missing layers.Transport[3](ii)State how each layer of the stack is implemented. [1](b) A computer is currently running two processes: Process 1 is downloading a web page.Process 2 is downloading an email.(i)Describe two tasks that the Transport layer performs to ensure that the incoming data isdownloaded correctly.1 .2 . [4](ii)Name a protocol that will be used by Process 1. [1](iii)Name a protocol that will be used by Process 2. [1] UCLES 20169608/31/O/N/16

116(a) The table below gives descriptions of three types of malware.DescriptionTermMalware that attaches itself to another program.Malware that redirects the web browser to a fake website.Email that encourages the receiver to access a website andgive their banking details.Complete the table by adding the correct terms.[3](b) Ben wants to send a highly confidential email to Mariah so that only she can read it. Plain textand cipher text will be used in this communication.(i)Explain the terms plain text and cipher text.Plain text .Cipher text . [2](ii)Explain how the use of asymmetric key cryptography ensures that only Mariah can readthe email. [4] UCLES 20169608/31/O/N/16

12BLANK PAGEPermission to reproduce items where third-party owned material protected by copyright is included has been sought and cleared where possible. Every reasonableeffort has been made by the publisher (UCLES) to trace copyright holders, but if any items requiring clearance have unwittingly been included, the publisher willbe pleased to make amends at the earliest possible opportunity.To avoid the issue of disclosure of answer-related information to candidates, all copyright acknowledgements are reproduced online in the Cambridge InternationalExaminations Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available

Cambridge International Examinations Cambridge International Advanced Level *2155396653* COMPUTER SCIENCE 9608/31 Paper 3 Advanced Theory October/November 2016 1 hour 30 minutes Candidates answer on the Question Paper. No Additional Materials are required. No calculators allowed. READ THESE INSTRUCTIONS FIRST Write your Centre number, candidate number and name in the spaces at the top of this .

Related Documents:

Cambridge International Examinations 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. BLANK PAGE. Title: 5054/41 O Level Physics November 2017 Keywords : CIE,0 Level,Physics,paper 4 Created Date: 1/16/2019 2:18:45 PM .

Cambridge International Examinations Cambridge Secondary 1 Checkpoint MATHEMATICS 1112/01 Paper 1 October 2016 1 hour Candidates answer on the Question Paper. . Cambridge Assessment is the brand name of University of Cambridge Local Examinations Syndicate (UCLES), which is itself a department of the University of Cambridge. .

Cambridge International Examinations 1 Hills Road Cambridge CB1 2EU United Kingdom Phone 44 1223 553554 Fax 44 1223 553558 Email international@ucles.org.uk Website www.cie.org.uk. Cambridge International Examinations IGCSE English as

Cambridge International GCE Advanced Subsidiary and Advanced level (AS and A level) 47 Cambridge International General Certificate of Secondary Education (Cambridge IGCSE)/Cambridge International Certificate of Education (Cambridge ICE)/Cambridge GCE Ordinary level (Cambridge O level) 47 Cambridge International Diploma in Business 48 European Baccalaureate (EB) 65 International Baccalaureate .

University of Cambridge International Examinations London GCE AS/A-Level / IGCSE / GCSE Edexcel International. 6 Examination Date in 2011 Cambridge IGCSE Oct/Nov X 9 Cambridge GCE / May/Jun 9 9 London GCE London GCSE May/Jun 9 X Chinese London IGCSE Jan X 9 Cambridge IGCSE / May/Jun 9 9 London IGCSE London GCE Jan 9 9 Cambridge GCE Oct/Nov X 9 Private Candidates School Candidates Exam Date. 7 .

SSC Examinations. 13 CXC & SSC Design & Content Comparison. 13 Vocational and technical examinations. 15 JHSC Examinations. 15 Examinations and the Curriculum. 16 Junior High School and Upper Secondary Curricula. 18 The Impact Of Examinations On Students’ School Performance And Self-

Cambridge International Advanced Level (A Level) Cambridge International Project (CIPQ) Cambridge International Certificate of Education (ICE Diploma) Cambridge Advanced International Certificate of Education (AICE Diploma) Cambridge Checkpoint and Cambridge Primary Checkpoint qualifications are part of the May 2020 series.

Cambridge Primary Checkpoint Cambridge Secondary 1 (11–14 years*) Cambridge Secondary 1 Cambridge Checkpoint Cambridge Secondary 2 (14–16 years*) Cambridge IGCSE Cambridge Advanced (16–19 years*) Cambridge International AS and A Cambridge Pre-