[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-314695-105":59,"doc-detail-314695-en":131},{"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":124,"head_meta":126,"extra_data":128,"updated_unix":130},105,"en","ap-principles-36-37-38-39-310-mcq-multiple-choice-questions","AP Principles 3.6, 3.7, 3.8, 3.9, 3.10 MCQ - Multiple Choice Questions","","AP Computer Science Principles Test Booklet focused on selecting correct algorithms for specified scenarios. Includes questions on flowchart execution results, pairing-based methods to identify the earliest birthdays from month and day, and updating maximum/minimum scores in a running game. Additional items address robot movement strategies on grid worlds with obstacles and conditional rules, including using REPEAT-UNTIL loops and procedures to reach a goal state. Suitable for MCQ assessment of algorithm reasoning and logic.",{"@graph":69,"@context":123},[70,84,106],{"@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-principles-36-37-38-39-310-mcq-multiple-choice-questions/314695/",{"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-principles-36-37-38-39-310-mcq-multiple-choice-questions/314695.png","ImageObject",300,407,{"name":92,"@type":93},"Jiven","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-05","2026-09-20",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",15,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"How do you determine the result shown by executing the flowchart in the first question?","Question",{"text":113,"@type":114},"Evaluate the flowchart using the specified building blocks and follow the logic to identify which answer choice matches the final displayed result.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"Which birthday-identification algorithm(s) correctly find the people with the earliest birthday?",{"text":118,"@type":114},"Compare algorithms I, II, and III based on how ties are handled and how pairing or counting proceeds; the correct options are determined by matching those behaviors to the intended earliest birthday selection.",{"name":120,"@type":111,"acceptedAnswer":121},"What replacement code can move the robot into the gray square in question 5?",{"text":122,"@type":114},"Use the given REPEAT UNTIL condition and choose the replacement steps that advance the robot appropriately until the GoalReached procedure becomes true, then select the matching option.","https://schema.org",{"og:url":83,"og:type":125,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":127,"canonical":83},"index,follow",{"doc_id":129,"site_id":62},314695,1790733063,{"code":4,"msg":5,"data":132},{"doc_id":129,"user_id":133,"nickname":92,"user_avatar":134,"doc_module":4,"category_id":19,"category_name":20,"doc_title":65,"doc_description":67,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":140,"language":141,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":67,"update_tm":145,"read_time":146,"preview_page_count":4},1099513958607,"https://ap-avatar.wpscdn.com/avatar/100002390cf8733938c?x-image-process=image/resize,m_fixed,w_180,h_180&k=1778829742770036399","AP COMPUTER SCIENCE PRINCIPLES  \nTest Booklet  \nAP Principles 3.6, 3.7, 3.8, 3.9, 3.10 MCQ  \n1. A flowchart is a way to visually represent an algorithm. The flowchart below uses the following building blocks.  \nWhat is displayed as a result of executing the algorithm in the flowchart?  \n Test Booklet  \nAP Principles 3.6, 3.7, 3.8, 3.9, 3.10 MCQ  \n(A) 5  \n(B) 15  \n(C) 1 2 3 4  \n(D) 1 2 3 4 5  \n2. Suppose a large group of people in a room were all born in the same year. Consider the following three algorithms, which are each intended to identify the people in the room who have the earliest birthday based on just the month and day. For example, a person born on February 10 is considered to have an earlier birthday than a person born on March 5. Which of the three algorithms will identify the correct people?  \nI. All the people in the room stand up. All standing people form pairs where possible, leaving at most one person not part of a pair. For each pair, the person with the earlier birthday remains standing, while the other person in the pair sits down. If there is a tie, both people sit down. Any individual not part of a pair remains standing. Continue doing this until only one person remains standing. That person has the earliest birthday.  \nII. All the people in the room stand up. All standing people form pairs with another standing person that they have not previously been paired with where possible, leaving at most one person not part ofa pair. For each pair, the person with the earlier birthday remains standing, while the other person in the pair sits down. If there is a tie, both people in the pair remain standing. Any individual not part ofa pair remains standing. Continue doing this until only one person remains standing or all persons standing have the same birthday. Anyone still standing has the earliest birthday.  \nIII. Beginning with the number 1, ask if anyone was born on that day of any month. Continue with the numbers 2, 3, and so on until a positive response is received. If only one person responds, that person has the earliest birthday. If more than one person responds, determine which person was born in the earliest month, and that person or those persons have the earliest birthday.  \n(A) I only  \n(B) II only  \n(C) I and II  \n(D) II and III  \n3. A certain game keeps track of the maximum and minimum scores obtained so far. If num represents the mostrecent score obtained, which of the following algorithms correctly updates the values of the maximum and the minimum?  \n(A) Ifthe nummaxiis grmume, asteetrtthhean thmaxeimmuinimumm equa,l setot the mnuminimum equal to num. Otherwise, if num is greater than  \n(B) Ifmanxium imums, lessetstthan the minimumhe maximum equal, steot thenumminimum equal to num. Otherwise, if num is greater than the  \n(C) Ifmanxium imums, lessetstthan the minimumhe maximum equal, steot thenumminimum equal to num. Otherwise, if num is less than the  \n(D) Ifmanxium imums, grseetattheerthmanaxithmuemminimumequal to, set thnume minimum equal to num. Otherwise, if num is less than the  \nTest Booklet  \nAP Principles 3.6, 3.7, 3.8, 3.9, 3.10 MCQ  \n4. The figure below shows four grids, each containing a robot represented as a triangle. The robot cannot move to a black square or move beyond the edge of the grid.  \nWhich of the following algorithms will allow the robot to make a single circuit around the rectangular region of black squares, finishing in the exact location and direction that it started in each of the four grids?  \nTest Booklet  \nAP Principles 3.6, 3.7, 3.8, 3.9, 3.10 MCQ  \n(A)  \n(B)  \n(C)  \n(D)  \nStep 1:  \nKeep moving forward, one square at a time, until the square to the right of the robot is black.  \nStep 2:  \nTurn right and move one square forward.  \nStep 3:  \nRepeat steps 1 and 2 three more times.  \nStep 1:  \nKeep moving forward, one square at a time, until the square to the right of the robot is no  \nlonger black.  \nStep 2:  \nTurn right and move one square forward.  \nStep 3: Repeat","cbCaioF3bj8iN5rJ","https://ap.wps.com/l/cbCaioF3bj8iN5rJ","pdf",4855975,99,"English","# Multiple-choice questions\n## Algorithm tracing and flowcharts\n## Birthday identification algorithms\n## Updating maximum and minimum scores\n## Robot pathfinding in grid worlds\n## REPEAT-UNTIL and procedure-based control logic\n## Conditional motor and gate control algorithm","[{\"question\":\"How do you determine the result shown by executing the flowchart in the first question?\",\"answer\":\"Evaluate the flowchart using the specified building blocks and follow the logic to identify which answer choice matches the final displayed result.\"},{\"question\":\"Which birthday-identification algorithm(s) correctly find the people with the earliest birthday?\",\"answer\":\"Compare algorithms I, II, and III based on how ties are handled and how pairing or counting proceeds; the correct options are determined by matching those behaviors to the intended earliest birthday selection.\"},{\"question\":\"What replacement code can move the robot into the gray square in question 5?\",\"answer\":\"Use the given REPEAT UNTIL condition and choose the replacement steps that advance the robot appropriately until the GoalReached procedure becomes true, then select the matching option.\"}]","AP Principles 3.6, 3.7, 3.8, 3.9, 3.10 MCQ - Multiple Choice Questions | PDF",1789901654,249]