[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-341189-105":59,"doc-detail-341189-en":130},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","ap-computer-science-principles-written-response-prompts-set-1-341189","AP® Computer Science Principles - Written Response Prompts Set 1","","AP® Computer Science Principles Section II Written Response Prompts Set 1 for the 2024 exam, providing two detailed questions to be answered within a separate Written Response booklet. Question 1 focuses on programs accepting input and requires describing at least one valid input and the program’s intended processing. Question 2 requires using the Personalized Project Reference to explain iteration behavior, produce two distinct procedure calls with expected outcomes, and design a step-by-step algorithm using checkValidity to verify list elements.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":20,"@type":76,"position":81},"https://docshare.wps.com/document/exam/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/ap-computer-science-principles-written-response-prompts-set-1-341189/341189/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/ap-computer-science-principles-written-response-prompts-set-1-341189/341189.png","ImageObject",300,407,{"name":92,"@type":93},"Miles","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-10-26","2026-09-22",true,{"@type":102,"interactionType":103,"userInteractionCount":44},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What is required for Question 1 about inputs and program functionality?","Question",{"text":112,"@type":113},"Describe at least one valid input to the program and explain what the program does with that input to achieve its intended functionality.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How should Question 2 use the Personalized Project Reference?",{"text":117,"@type":113},"Use the first iteration statement for part (a), use the procedure from part (i) for part (b), and use the list from the List section for part (c) when constructing the required explanations and algorithm steps.",{"name":119,"@type":110,"acceptedAnswer":120},"What does part (c) require you to do with checkValidity(value)?",{"text":121,"@type":113},"Provide a detailed, step-by-step algorithm using checkValidity(value) to determine whether all elements in your list are considered valid, with enough detail for someone else to write the code.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},341189,1790148278,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":19,"category_name":20,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":44,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":19,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":143,"read_time":52,"preview_page_count":4},13056703019404,"https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0","2024  \nAP® Computer Science Principles  \nWritten Response Prompts Set 1  \n© 2024 College Board. College Board, Advanced Placement, AP, AP Central, and the acorn logo are registered trademarks of College Board. Visit College Board on the web: [collegeboard.org](collegeboard.org).  \n[AP Central is the official online home for the AP Program: apcentral.collegeboard.org](AP Central is the official online home for the AP Program: apcentral.collegeboard.org).  \nCOMPUTER SCIENCE PRINCIPLES  \nSECTION II  \nTime—1 hour  \n2 Questions  \nDirections: Read each question carefully and completely. Write your response in the space provided for each question in the Written Response booklet.  \nYou may plan your answers in this orange booklet, but no credit will be given for anything written in this booklet. You will only earn credit for what you write in the separate Written Response booklet.  \n1. Programs accept input to achieve their intended functionality. Describe at least one valid input to your program and what your program does with that input.  \nWrite your responses to this question only on the designated pages in the separate Written Response booklet. If there are multiple parts to this question, write the part letter with your response.  \n2. Refer to your Personalized Project Reference when answering this question.  \n(a) Consider the first iteration statement included in the Procedure section of your Personalized Project Reference. Describe what is being accomplished by the code in the body of the iteration statement.  \n(b) Consider the procedure identified in part (i) of the Procedure section of your Personalized Project Reference. Write two calls to your procedure that each cause a different code segment in the procedure to execute. Describe the expected behavior of each call. If it is not possible for two calls to your procedure to cause different code segments to execute, explain why this is the case for your procedure.  \n(c) Suppose another programmer provides you with a procedure called checkValidity(value) that returns true if a value passed as an argument is considered valid by the other programmer and returns false otherwise. Using the list identified in the List section of your Personalized Project Reference, explain in detailed steps an algorithm that uses checkValidity to check whether all elements in your list are considered valid by the other programmer. Your explanation must be detailed enough for someone else to write the program code for the algorithm that uses checkValidity.  \nWrite your responses to this question only on the designated pages in the separate Written Response booklet. If there are multiple parts to this question, write the part letter with your response.  \nSTOP  \nEND OF EXAM","cbCaisixRquUFP62","https://ap.wps.com/l/cbCaisixRquUFP62","pdf",166419,"English","# Section II\n## Time and directions\n## Question 1\n## Question 2","[{\"question\":\"What is required for Question 1 about inputs and program functionality?\",\"answer\":\"Describe at least one valid input to the program and explain what the program does with that input to achieve its intended functionality.\"},{\"question\":\"How should Question 2 use the Personalized Project Reference?\",\"answer\":\"Use the first iteration statement for part (a), use the procedure from part (i) for part (b), and use the list from the List section for part (c) when constructing the required explanations and algorithm steps.\"},{\"question\":\"What does part (c) require you to do with checkValidity(value)?\",\"answer\":\"Provide a detailed, step-by-step algorithm using checkValidity(value) to determine whether all elements in your list are considered valid, with enough detail for someone else to write the code.\"}]","AP® Computer Science Principles - Written Response Prompts Set 1 | PDF",1790040801]