January 2025 OCR Computer Science Year 13 Mock Exam Paper 1 PDF

Summary

This is an OCR Computer Science past paper from January 2025. The exam is for Year 13 and covers topics such as data structures, operating systems and programming.

Full Transcript

Computer Science (H046, H446) January 2025 Computer Science Year 13 Mock Exam - Paper 1 Joshua Beach Please note that you may see slight differences between this paper and the original....

Computer Science (H046, H446) January 2025 Computer Science Year 13 Mock Exam - Paper 1 Joshua Beach Please note that you may see slight differences between this paper and the original. Duration: 150 mins Candidates answer on the Question paper. OCR supplied materials: Additional resources may be supplied with this paper. Other materials required: Pencil Ruler (cm/mm) INSTRUCTIONS TO CANDIDATES Write your name, centre number and candidate number in the boxes above. Please write clearly and in capital letters. Use black ink. HB pencil may be used for graphs and diagrams only. Answer all the questions, unless your teacher tells you otherwise. Read each question carefully. Make sure you know what you have to do before starting your answer. Where space is provided below the question, please write your answer there. You may use additional paper, or a specific Answer sheet if one is provided, but you must clearly show your candidate number, centre number and question number(s). INFORMATION FOR CANDIDATES The quality of written communication is assessed in questions marked with either a pencil or an asterisk. In History and Geography a Quality of extended response question is marked with an asterisk, while a pencil is used for questions in which Spelling, punctuation and grammar and the use of specialist terminology is assessed. The number of marks is given in brackets [ ] at the end of each question or part question. The total number of marks for this paper is 140. The total number of marks may take into account some 'either/or' question choices. © OCR 2024. You may photocopy this page. 1 of 26 Created in ExamBuilder 1(a) Stacks and queues are both data structures. State which of a stack or queue would be considered as a ‘First In First Out’ data structure. (b) A queue is shown in Fig. 4.3. Draw what the queue shown in Fig 4.3 would look like after the following operations: enqueue("A"), enqueue("B"), dequeue(), enqueue("C"), dequeue(), enqueue("D") Fig. 4.3 (c) A stack is shown in Fig. 4.1 before a set of operations are carried out on it. Draw what the stack shown in Fig. 4.1 would look like after the following operations: push("A"), push("B"), pop(), push("C"), pop(), push("D") Fig. 4.1 © OCR 2024. You may photocopy this page. 2 of 26 Created in ExamBuilder (d) Fig. 4.2 shows a stack in two states: State One and State Two. Fig. 4.2 List the operations needed to get the stack from State One to State Two. 2(a) A programmer creates this function shown in Fig. 5 using a high-level language. Fig. 5 Before the code in Fig. 5 can be executed, a translator must be used. (i) State the purpose of a translator. © OCR 2024. You may photocopy this page. 3 of 26 Created in ExamBuilder (ii) Explain two differences between a compiler and an interpreter. Difference 1 Difference 2 © OCR 2024. You may photocopy this page. 4 of 26 Created in ExamBuilder (b) For each statement shown in Table 5, tick (✓) one box in each row to indicate which stage of compilation each action takes place at. Lexical Syntax Code analysis analysis generation Comments and whitespace are removed Keywords are replaced with tokens Object code is created Symbol table created for variables Builds an abstract syntax tree Table 5 (c) Describe the purpose of code optimisation. © OCR 2024. You may photocopy this page. 5 of 26 Created in ExamBuilder (d) * A programmer has been asked by a client to create a complex computer program. Compare the spiral model and waterfall lifecycle methodologies for this task. You should include the following in your answer: how both methodologies could be used to develop a complex computer program the benefits of each methodology for this task the drawbacks of each methodology for this task. © OCR 2024. You may photocopy this page. 6 of 26 Created in ExamBuilder © OCR 2024. You may photocopy this page. 7 of 26 Created in ExamBuilder 3(a) A theatre has a website showing its productions and allowing people to make bookings. Part of the site is shown below. The words ‘Book tickets’ link to the page ‘bookings.html’. Upcoming productions: 1. Macbeth 2. Blood Brothers 3. An Inspector Calls Book tickets Write the HTML code for the extract above. © OCR 2024. You may photocopy this page. 8 of 26 Created in ExamBuilder (b) The theatre website also uses CSS. Give an example of why the theatre website might use CSS. (c) The theatre offers price reductions on Tuesdays and Wednesdays. The theatre manager wants some text on the website to display “Midweek Special – tickets £15 tonight” on Tuesdays and Wednesdays, and “Tickets £20 tonight” on all other nights. The website coders will use a div tag with the id ‘prices’ to do this. The Javascript code to change the contents of the div tag has been started below. The variable dayCode holds a number representing the current day of the week (0 for Sunday, 1 for Monday, 2 for Tuesday and so on). Complete the Javascript code below so the correct message is displayed in a div tag with the id ‘prices’. var date = new Date(); var dayCode = date.getDay(); //0 is Sunday, 1 Monday, 2 Tuesday etc var priceText=""; = priceText; © OCR 2024. You may photocopy this page. 9 of 26 Created in ExamBuilder 4(a) A charity uses a desktop computer to record financial donations that it receives. The computer contains a single core, 2.4GHz processor with 2MB cache. A processor uses the Von Neumann architecture. (i) Describe what is meant by the term ‘Von Neumann architecture’. (ii) Give one way that the Harvard architecture differs from the Von Neumann architecture. (b) A charity is concerned that the performance of a computer is not sufficient and wishes to replace the processor. Give two features of a replacement processor that would increase the typical performance of the computer. 1 2 © OCR 2024. You may photocopy this page. 10 of 26 Created in ExamBuilder (c) The processor contains registers including the accumulator and the program counter. The contents of these registers are modified during the Fetch-Decode-Execute cycle. (i) Describe how the accumulator is used during the Fetch-Decode-Execute cycle. (ii) Describe how the program counter is used during the Fetch-Decode-Execute cycle. (iii) State the name of three other registers that are used during the Fetch-Decode-Execute cycle. 1 2 3 © OCR 2024. You may photocopy this page. 11 of 26 Created in ExamBuilder 5 OCR Insurance uses a computer system to calculate the price that customers pay for car insurance. The computer system contains a CPU, GPU, RAM and ROM. (i) State two factors that affect the performance of a CPU. 1 2 (ii) Explain the difference between RAM and ROM, including how these are used by the computer system. (iii) Describe one non-graphical use for a GPU. © OCR 2024. You may photocopy this page. 12 of 26 Created in ExamBuilder 6(a) A small manufacturing business uses networked computers with closed source application software installed. A spreadsheet application package is used to calculate employee’s wages. (i) Give one benefit of using a spreadsheet application for this task compared to calculating wages manually. (ii) Give two other types of application packages that the small business could use, giving an example of a task that the business could use each application for. Application 1 Example of task 1 Application 2 Example of task 2 (ii) Describe a drawback of using closed source software (rather than open source software) for the small business. © OCR 2024. You may photocopy this page. 13 of 26 Created in ExamBuilder (b) All computers owned by the business are connected together into a Local Area Network (LAN). Various network protocols are used in this network. (i) Give three advantages to the business of connecting computers together in a LAN. 1 2 3 (ii) Explain what is meant by a network protocol. © OCR 2024. You may photocopy this page. 14 of 26 Created in ExamBuilder (iii) Give the names of two protocols that may be used in a LAN. 1 2 (iv) Explain why protocol layering is used. © OCR 2024. You may photocopy this page. 15 of 26 Created in ExamBuilder 7 TCP/IP uses packet switching. Explain what is meant by packet switching. 8(a) Julie is a university student. She is considering buying a laptop to help with her studies both at home and university. Her friend has told her she will need to choose an operating system to run on her laptop. Two functions of an operating system are memory management and scheduling. State two other functions of an operating system. 1 2 © OCR 2024. You may photocopy this page. 16 of 26 Created in ExamBuilder (b) The operating system Julie is considering makes use of paging to manage the laptop’s memory. Explain one benefit of using paging for this purpose. 9(a) Imogen buys a desktop computer. It comes with an operating system installed. (i) Describe two ways that an operating system could manage physical memory. 1 2 (ii) Explain one benefit of memory management to the user. © OCR 2024. You may photocopy this page. 17 of 26 Created in ExamBuilder (iii) Describe how virtual memory allows a user to run programs when physical memory is full. (b) Operating systems make use of device drivers. Define what is meant by the term ‘device driver’, giving one example of a device driver that a home user would need. Definition Example © OCR 2024. You may photocopy this page. 18 of 26 Created in ExamBuilder 10(a Julie is a university student. She is considering buying a laptop to help with her studies both at home ) and university. Her friend has told her she will need to choose an operating system to run on her laptop. Julie’s friend has told her she should buy a laptop with a solid-state drive that uses flash technology rather than a magnetic hard drive. Explain two reasons why Julie would use flash technology to store her files. 1 2 (b) State the name of one utility that Julie could install on her laptop. © OCR 2024. You may photocopy this page. 19 of 26 Created in ExamBuilder 11(a Operating systems usually come with utility software pre-installed. ) Give two examples of utility software, explaining the purpose of both. 1 2 (b) Imogen installs a compiler for a high-level programming language onto her computer and makes use of an open source IDE (Integrated Development Environment). (i) State what is meant by the term ‘open source software’. (ii) Give one benefit to Imogen of using an open source IDE rather than a closed source IDE. © OCR 2024. You may photocopy this page. 20 of 26 Created in ExamBuilder (c) When Imogen creates programs in a high-level language, she makes use of libraries. (i) Explain what is meant by a library, giving one example of when one may be used. (ii) Describe one advantage of the use of library files to programmers. (iii) Describe one disadvantage of the use of library files to programmers. (iv) Explain how linkers are used during the compilation process. © OCR 2024. You may photocopy this page. 21 of 26 Created in ExamBuilder 12(a Fig. 1 shows assembly code written using the Little Man Computer (LMC). The program calculates and ) outputs the total amount that is donated to a charity in any particular day. Depending on the amount, an additional bonus may be added to each amount donated. Fig. 1 (i) The program shown in Fig. 1 is run once using three different inputs. Therefore, while the program is running once, it will output the updated total three times. Give the total values that are output when the values 10, 50 and 120 are input into this program. Output for 10 © OCR 2024. You may photocopy this page. 22 of 26 Created in ExamBuilder Output for 50 Output for 120 (ii) Write LMC code that will reset the value of the memory location labelled total to zero and then stop the program. (iii) This program is run on a processor that allows pipelining. Define the term ‘pipelining’. © OCR 2024. You may photocopy this page. 23 of 26 Created in ExamBuilder (iv) Explain one benefit to a charity of using a processor that allows pipelining. (b) * A charity has several desktop computers in their office that use a CISC processor. They are considering buying mobile devices for their staff to use when they are not in the office. Discuss whether these mobile devices should use the same CISC processors that are used in their desktop computers or if they should use a RISC processor instead. You should include the following in your answer: the difference between each processor type the suitability of each processor type for mobile devices. © OCR 2024. You may photocopy this page. 24 of 26 Created in ExamBuilder © OCR 2024. You may photocopy this page. 25 of 26 Created in ExamBuilder END OF QUESTION PAPER © OCR 2024. You may photocopy this page. 26 of 26 Created in ExamBuilder Powered by TCPDF (www.tcpdf.org)

Use Quizgecko on...
Browser
Browser