[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-207537-en":3,"doc-seo-207537-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},207537,549768064622,"Lucas Vance","https://ap-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8",4,"Exam","OCR GCSE (9–1) Computer Science J276/02 - Computational thinking, algorithms and programming - Paper 2","GCSE (9–1) Computer Science exam question paper focused on computational thinking, algorithms and programming. The paper tests data representation and database skills using a student conduct system, requiring appropriate data types, SQL queries, and SQL wildcard usage. It also assesses algorithm design by reading records into a zero-based array and outputting whether a letter was sent. Additional tasks evaluate nested loops, output sequencing, and programming constructs, including variables.","Oxford Cambridge and RSA  \nGCSE (9–1) Computer Science J276/02 Computational thinking, algorithms and programming  \nThursday 17 May 2018 – Afternoon Time allowed: 1 hour 30 minutes  \nDo not use:  \n• a calculator  \n| First name |  |\n| --- | --- |\n\n\n| Last name |  |\n| --- | --- |\n\nINSTRUCTIONS  \n• Use black ink.  \n• Complete the boxes above with your name, centre number and candidate number.  \n• Answer all the questions.  \n• Write your answer to each question in the space provided. If additional space is required, use the lined page(s) at the end of this booklet. The question number(s) must be clearly shown.  \n• Do not write in the barcodes.  \nINFORMATION  \n• The total mark for this paper is 80.  \n• The marks for each question are shown in brackets [ ] .  \n• This document consists of 16 pages.  \nNo calculator can be used for this paper  \n© OCR 2018 [601/8355/X] DC (ST/SG) 155699/6  \nOCR is an exempt Charity  \nTurn over  \n2  \nAnswer all the questions.  \n1 OCR High School uses a computer system to store data about students’ conduct. The system records good conduct as a positive number and poor conduct as a negative number. A TRUE or FALSE value is also used to record whether or not a letter has been sent home about each incident.  \nAn example of the data held in this system is shown below in Fig. 1:  \n\n| StudentName | Detail | Points | LetterSent |\n| --- | --- | --- | --- |\n| Kirstie | Homework forgotten | −2 | FALSE |\n| Byron | Good effort in class | 1 | TRUE |\n| Grahame | 100% in a test | 2 | FALSE |\n| Marian | Bullying | −3 | TRUE |\n\nFig. 1  \n(a) State the most appropriate data type used to store each of the following items of data.  \n• StudentName ....................................................................................................................  \n• Points ................................................................................................................................  \n• LetterSent ..........................................................................................................................  \n[3]  \n(b) The data shown above in Fig. 1 is stored in a database table called Conduct.  \n(i) Write an SQL statement to select the StudentName field for all records that have negative Points.  \n...........................................................................................................................................  \n...........................................................................................................................................  \n...................................................................................................................................... [3]  \n(ii) State the wildcard that can be used in SQL to show all fields from a table.  \n...........................................................................................................................................  \n...................................................................................................................................... [ 1]  \n© OCR 2018  \n3  \n(c) A single record from this database table is read into a program that uses an array with the identifier studentdata. An example of this array is shown below:  \nstudentdata = [“Kirstie”, “Homework forgotten”, “-2”, “FALSE”] The array is zero based, so studentdata[0] holds the value “Kirstie”.  \nWrite an algorithm that will identify whether the data in the studentdata array shows that a letter has been sent home or not for the student. The algorithm should then output either“sent”(if a letter has been sent) or “not sent”(if a letter has not been sent) .  \n\n|  |\n| --- |\n|  |\n|  |\n|  |\n|  |\n|  |\n|  |\n|  |\n|  |\n\n.............................................................................................................................................. [4]  \n© OCR 2018 Turn over  \n4  \n2 A programmer has written an algorithm to output a series of numbers. The algorithm is shown below:  \n01 for k = 1 to 3  \n02 for p","cbCaip8BqFBTrE8P","https://ap.wps.com/l/cbCaip8BqFBTrE8P","pdf",2318539,1,16,"English","en",105,"# Instructions and information\n# Question 1: Student conduct database and algorithms\n## (a) Data types for stored items\n## (b) SQL selection and wildcard usage\n## (c) Array-based algorithm to output sent/not sent\n# Question 2: Nested loops and programming fundamentals","[{\"question\":\"What is the paper’s total mark and permitted resources?\",\"answer\":\"The total mark for the paper is 80. No calculator can be used, and the paper states the total time allowed is 1 hour 30 minutes.\"},{\"question\":\"How does Question 1 define the stored conduct data?\",\"answer\":\"Good conduct is stored as a positive number and poor conduct as a negative number. A TRUE/FALSE value records whether a letter was sent home about each incident.\"},{\"question\":\"What is required in Question 1(c) using the studentdata array?\",\"answer\":\"An algorithm must check the array contents to determine whether a letter was sent. It then outputs \\\"sent\\\" if a letter was sent, or \\\"not sent\\\" if it was not.\"}]","OCR GCSE (9–1) Computer Science J276/02 - Computational thinking, algorithms and programming - Paper 2 | PDF",1788599935,40,{"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},"ocr-gcse-91-computer-science-j27602-computational-thinking-algorithms-and-programming-paper-2","",{"@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/ocr-gcse-91-computer-science-j27602-computational-thinking-algorithms-and-programming-paper-2/207537/",{"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 is the paper’s total mark and permitted resources?","Question",{"text":74,"@type":75},"The total mark for the paper is 80. No calculator can be used, and the paper states the total time allowed is 1 hour 30 minutes.","Answer",{"name":77,"@type":72,"acceptedAnswer":78},"How does Question 1 define the stored conduct data?",{"text":79,"@type":75},"Good conduct is stored as a positive number and poor conduct as a negative number. A TRUE/FALSE value records whether a letter was sent home about each incident.",{"name":81,"@type":72,"acceptedAnswer":82},"What is required in Question 1(c) using the studentdata array?",{"text":83,"@type":75},"An algorithm must check the array contents to determine whether a letter was sent. It then outputs \"sent\" if a letter was sent, or \"not sent\" if it was not.","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,108,113,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":106,"slug":107},5,"Comic",60,"comic",{"id":109,"doc_module":4,"doc_module_name":46,"category_name":110,"show_sort_weight":111,"slug":112},6,"Technology",50,"technology",{"id":114,"doc_module":4,"doc_module_name":46,"category_name":115,"show_sort_weight":29,"slug":116},7,"Healthcare","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"]