[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-207525-en":3,"doc-seo-207525-105":30,"detail-sidebar-cat-0-en-105":90},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":4,"is_deleted":4,"is_public":20,"is_downloadable":20,"audit_status":20,"page_count":21,"language":22,"language_code":23,"site_id":24,"html_lang":23,"table_of_contents":25,"faqs":26,"seo_title":27,"seo_description":14,"update_tm":28,"read_time":29},207525,962075114765,"Quinn","https://ap-avatar.wpscdn.com/davatar_a8503ba1806abce46bf441b54a3ca4cd",4,"Exam","Practice Paper 2023 - GCSE (9–1) Computer Science J277/02 - Computational thinking, algorithms and programming","Practice questions for GCSE (9–1) Computer Science focusing on computational thinking, algorithms, and programming. The paper covers operator identification, interpreting algorithm output, array searching and counting occurrences, and insertion sort with analysis of partially sorted data. It also tests completion of computational thinking definitions using key terms such as decomposition, abstraction, algorithmic evaluation, and pseudocode, alongside advantages of high-level languages and compiler versus interpreter behaviour. Total marks: 80.","Practice Paper 2023  \nGCSE (9–1) Computer Science  \nJ277/02 Computational thinking, algorithms and programming Time allowed: 1 hour 30 minutes  \nDo not use:  \n• a calculator  \n| Please write clearly in black ink. Do not write in the barcodes. |  |  |  |\n| --- | --- | --- | --- |\n| Centre number |  | Candidate number |  |\n| First name(s)   Last name   |  |  |  |\n\nINSTRUCTIONS  \n• Use black ink.  \n• Write your answer to each question in the space provided. If you need extra space use the lined pages at the end of this booklet. The question numbers must be clearly shown.  \n• Answer all the questions.  \nINFORMATION  \n• The total mark for this paper is 80.  \n• The marks for each question are shown in brackets [] .  \n• This document has 24 pages.  \nADVICE  \n• Read each question carefully before you start to answer.  \n• We advise you to spend approximately 50 minutes on Section A and approximately 40 minutes on Section B.  \n© OCR 2023 OCR is an exempt Charity Turn over  \nTHIS PAGE IS BLANK  \nPLEASE DO NOT WRITE ON THIS PAGE  \nSECTION A  \nWe advise you to spend approximately 50 minutes on Section A.  \n1 Tick (✓) one box in each row to identify if each operator is a comparison operator or an arithmetic operator.  \n\n| Operator | Comparison | Arithmetic |\n| --- | --- | --- |\n| == |  |  |\n| + |  |  |\n| DIV |  |  |\n| > |  |  |\n\n2 Give the output of each algorithm.  \n(a) temp = 7 if temp \u003C 10 then  \nprint(temp)  \nendif  \n(b) value = 3  \nvalue = value - 1 print(value * 2)  \n(c) scores = [3, 6, 6, 9, 2, 8] number = scores[2]  \nprint(number)  \n[4]  \n  [1]  \n  [1]  \n  [1]  \n(d) day = \"Monday\"  \nx = day.length  \nprint(x)  \n   [1]  \n3 An array stores a collection of words. The array has the identifier data.  \ndata = [ \"or\", \"and\", \"it\", \"when\", \"and\", \"or\", \"and\", \"it\"]  \nA searching algorithm is used to find a word in the array data. The algorithm used to search fora word is shown.  \nword = input(\"Enter a word to find\")  \nfound = False  \nfor i = 0 to 7  \nif data [i] == word then  \nfound = True  \nendif  \nnext i  \nprint(found)  \n(a) State the name of this searching algorithm.  \n   [1]  \n(b) Some words appear in the array more than once.  \nRefine the algorithm to:  \n• count the number of times a word appears in the array  \n• output this number.  \nFor example, the algorithm should output 3 if the input is \"and\".  \n. ..….……………………………………………………………………………………. ..…………………. .  \n. ..….……………………………………………………………………………………. ..…………………. .  \n. ..….……………………………………………………………………………………. ..…………………. .  \n. ..….……………………………………………………………………………………. ..…………………. .  \n. ..….……………………………………………………………………………………. ..…………………. .  \n. ..….……………………………………………………………………………………. ..…………………. .  \n. ..….……………………………………………………………………………………. ..…………………. .  \n. ..….……………………………………………………………………………………. ..…………………. .  \n. ..….……………………………………………………………………………………. ..…………………. .  \n. ..….……………………………………………………………………………………. ..…………………. .  \n. ..….……………………………………………………………………………………. ..…………………. .  \n...….……………………………………………………………………………………...…………………..  \n...….……………………..………………………..…..………………………………………...………. [4]  \n(c) An insertion sort is used to put the array with the identifier data into alphabetical order. The diagram shows the array when the insertion sort is almost complete.  \n\n| and | and | and | it | or | when | or | it |\n| --- | --- | --- | --- | --- | --- | --- | --- |\n\nSection A Section B  \n(i) Explain why the array is shown with two sections.  \n.... ...…. .….……………….….……………………………………………………………………………….  \n.…...……. .... .………….…………………………………………………………………………..…………  \n........…..….….………….……………………………………………………………………………………  \n..……........….…………….…………………………………………………………………………..…. [2]  \n(ii) Describe the steps an insertion sort takes to complete sorting the array data .  \n………………….…….…………….….………………………………………………………………..……  \n………………….…….…………….….………………………………………………………………..……  \n………………….…….…………….….………………………………………………………………..……  \n………………….…….…………….….………………………………………………………………..……  \n………………….…….…………….….………………………………………………………………..……  \n…………………….….………………….……………………….…………………………","cbCaiaYUv5bZjGoR","https://ap.wps.com/l/cbCaiaYUv5bZjGoR","pdf",377191,1,24,"English","en",105,"# Instructions and information\n## Section A\n## Section B\n# Question 1\n## Operator classification\n# Question 2\n## Algorithm output\n# Question 3\n## Searching and insertion sort\n# Question 4\n## Computational thinking completion\n# Question 5\n## High-level vs low-level languages and IDE components","[{\"question\":\"What topics are assessed in this practice paper?\",\"answer\":\"It assesses computational thinking, algorithms and programming, including operators, algorithm tracing, searching/counting in arrays, and sorting with insertion sort. It also includes understanding high-level languages and IDE translator roles.\"},{\"question\":\"How are marks allocated and how much time is suggested?\",\"answer\":\"The total mark is 80, with marks for each question shown in brackets. Guidance suggests about 50 minutes for Section A and about 40 minutes for Section B.\"},{\"question\":\"What is included under Section A?\",\"answer\":\"Section A contains questions on identifying comparison vs arithmetic operators, finding outputs of algorithms, searching an array and refining it to count word occurrences, and explaining insertion sort’s two-section diagram plus its sorting steps.\"}]","Practice Paper 2023 - GCSE (9–1) Computer Science J277/02 - Computational thinking, algorithms and programming | PDF",1788599890,60,{"code":4,"msg":31,"data":32},"ok",{"site_id":24,"language":23,"slug":33,"title":13,"keywords":34,"description":14,"schema_data":35,"social_meta":85,"head_meta":87,"extra_data":89,"updated_unix":28},"practice-paper-2023-gcse-91-computer-science-j27702-computational-thinking-algorithms-and-programming","",{"@graph":36,"@context":84},[37,53,67],{"@type":38,"itemListElement":39},"BreadcrumbList",[40,44,48,51],{"item":41,"name":42,"@type":43,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":45,"name":46,"@type":43,"position":47},"https://docshare.wps.com/document/","Document",2,{"item":49,"name":12,"@type":43,"position":50},"https://docshare.wps.com/document/exam/",3,{"item":52,"name":13,"@type":43,"position":11},"https://docshare.wps.com/document/practice-paper-2023-gcse-91-computer-science-j27702-computational-thinking-algorithms-and-programming/207525/",{"url":52,"name":13,"@type":54,"author":55,"headline":13,"publisher":57,"fileFormat":60,"inLanguage":23,"description":14,"dateModified":61,"datePublished":61,"encodingFormat":60,"isAccessibleForFree":62,"interactionStatistic":63},"DigitalDocument",{"name":9,"@type":56},"Person",{"url":41,"name":58,"@type":59},"DocShare","Organization","application/pdf","2026-09-05",true,{"@type":64,"interactionType":65,"userInteractionCount":4},"InteractionCounter",{"@type":66},"ViewAction",{"@type":68,"mainEntity":69},"FAQPage",[70,76,80],{"name":71,"@type":72,"acceptedAnswer":73},"What topics are assessed in this practice paper?","Question",{"text":74,"@type":75},"It assesses computational thinking, algorithms and programming, including operators, algorithm tracing, searching/counting in arrays, and sorting with insertion sort. It also includes understanding high-level languages and IDE translator roles.","Answer",{"name":77,"@type":72,"acceptedAnswer":78},"How are marks allocated and how much time is suggested?",{"text":79,"@type":75},"The total mark is 80, with marks for each question shown in brackets. Guidance suggests about 50 minutes for Section A and about 40 minutes for Section B.",{"name":81,"@type":72,"acceptedAnswer":82},"What is included under Section A?",{"text":83,"@type":75},"Section A contains questions on identifying comparison vs arithmetic operators, finding outputs of algorithms, searching an array and refining it to count word occurrences, and explaining insertion sort’s two-section diagram plus its sorting steps.","https://schema.org",{"og:url":52,"og:type":86,"og:title":13,"og:site_name":58,"og:description":14},"article",{"robots":88,"canonical":52},"index,follow",{"doc_id":7,"site_id":24},{"code":4,"msg":5,"data":91},[92,96,100,103,107,112,117,122,127,130,134],{"id":20,"doc_module":4,"doc_module_name":46,"category_name":93,"show_sort_weight":94,"slug":95},"Story & Novel",90,"story-novel",{"id":47,"doc_module":4,"doc_module_name":46,"category_name":97,"show_sort_weight":98,"slug":99},"Literature",80,"literature",{"id":11,"doc_module":4,"doc_module_name":46,"category_name":12,"show_sort_weight":101,"slug":102},70,"exam",{"id":104,"doc_module":4,"doc_module_name":46,"category_name":105,"show_sort_weight":29,"slug":106},5,"Comic","comic",{"id":108,"doc_module":4,"doc_module_name":46,"category_name":109,"show_sort_weight":110,"slug":111},6,"Technology",50,"technology",{"id":113,"doc_module":4,"doc_module_name":46,"category_name":114,"show_sort_weight":115,"slug":116},7,"Healthcare",40,"healthcare",{"id":118,"doc_module":4,"doc_module_name":46,"category_name":119,"show_sort_weight":120,"slug":121},8,"Research & Report",30,"research-report",{"id":123,"doc_module":4,"doc_module_name":46,"category_name":124,"show_sort_weight":125,"slug":126},9,"Religion & Spirituality",20,"religion-spirituality",{"id":125,"doc_module":4,"doc_module_name":46,"category_name":128,"show_sort_weight":125,"slug":129},"World Cup","world-cup",{"id":131,"doc_module":4,"doc_module_name":46,"category_name":132,"show_sort_weight":131,"slug":133},10,"Lifestyle","lifestyle",{"id":135,"doc_module":4,"doc_module_name":46,"category_name":136,"show_sort_weight":104,"slug":137},19,"General","general"]