[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-313981-105":59,"doc-detail-313981-en":131,"doc-similar-313981":164},{"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-csp-loops-lists-algorithms-test-questions-and-scratch-pseudocode-output","AP CSP Loops, Lists, Algorithms Test - Questions and Scratch Pseudocode Output","","AP CSP Loops, Lists, Algorithms TEST contains multiple-choice questions focused on core programming concepts: variables, lists, conditionals, and loops/iteration. It includes a series of Scratch-based pseudocode problems where learners must predict printed output after assignments and repeat constructs (both fixed-count repeats and repeat-until loops). The questions also test list creation, element updates, and adding values to list structures using defined list positions.",{"@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-csp-loops-lists-algorithms-test-questions-and-scratch-pseudocode-output/313981/",{"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-csp-loops-lists-algorithms-test-questions-and-scratch-pseudocode-output/313981.png","ImageObject",300,407,{"name":92,"@type":93},"Eden","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-20","2026-09-20",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",12,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"What is a program variable, according to the test?","Question",{"text":113,"@type":114},"A variable is a place in memory to store a value that can change.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"Why are lists used when writing programs?",{"text":118,"@type":114},"Lists allow multiple values to be stored in one place and can be manipulated effectively using loops.",{"name":120,"@type":111,"acceptedAnswer":121},"In the Scratch-based pseudocode questions, how do you determine the output?",{"text":122,"@type":114},"Track how the initial value changes through each repeat step (including repeat-until conditions) and read the final values that the say/display statements output.","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},313981,1790783389,{"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":19,"preview_urls":147},1374391974468,"https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0","© A+ Computer Science - www.apluscompsci.com  \nA+ Computer Science  \nAP CSP Loops, Lists, Algorithms TEST Directions :: On your answer sheet, mark the letter of the best answer to each question.  \n1. What is a program variable?  \na. A place in memory to store a value that can change.  \nb. A decimal or whole number only  \nc. A word or letter only  \nd. A and B only  \ne. A, B, and C  \n2. What is a list?  \na. A structure that can store multiple variables  \nb. A structure than can only store one value  \nc. A variable that has limited storage  \nd. A and B only  \ne. A, B, and C  \n3. Why are lists used when writing programs?  \na. Lists allow multiple values to be stored in one place.  \nb. Lists can increase and decrease in size as needed.  \nc. Lists are easily manipulated with loops.  \nd. A and B only  \ne. A, B, and C  \n4. What is the purpose of an if statement or selection statement?  \na. To set a value to variable.  \nb. To repeat a section of code.  \nc. To evaluate a condition to determine which code to execute.  \nd. To print out some values.  \ne. To cause your code to blow up.  \n5. What is the purpose of a loop or iteration when writing code?  \na. To repeate a section of code based on a condition  \nb. To repeat a section of code a set number times  \nc. To assign value to a variable  \nd. To print out values  \ne. A and B only  \n© A+ Computer Science - www.apluscompsci.com  \n© A+ Computer Science - www.apluscompsci.com  \n6. Questions 6-23 will use a scratch based pseudocode.  \nWhat is output by the following scratch pseudocode?  \nset a to 75  \nrepeat 5 times  \nchange a by -5 say a  \na. 50  \nb. 65  \nc. 60  \nd. 55  \ne. 70  \n7. What is output by the following scratch pseudocode?  \nset a to 63  \nrepeat 4 times  \nchange a by -7 say a  \na. 63  \nb. 56  \nc. 49  \nd. 42  \ne. 35  \n8. What is output by the following pseudocode?  \nset a to 100  \nrepeat 3 times  \nchange a by -5 say a  \na. 100  \nb. 95  \nc. 90  \nd. 85  \ne. 80  \n© A+ Computer Science - www.apluscompsci.com  \n© A+ Computer Science - www.apluscompsci.com  \n9. What is output by the following pseudocode?  \nset a to 60  \nrepeat 2 times  \nchange a by 10  \nsay a  \na. 70  \nb. 76  \nc. 90  \nd. 80  \ne. 86  \n10. What is output by the following pseudocode?  \nset a to 50  \nrepeat 6 times  \nchange a by 3  \nsay a  \na. 90  \nb. 76  \nc. 60  \nd. 68  \ne. 66  \n11. What is output by the following pseudocode?  \nset a to 0  \nrepeat 7 times  \nchange a by 2  \nsay a  \na. 0  \nb. 8  \nc. 10  \nd. 14  \ne. 20  \n© A+ Computer Science - www.apluscompsci.com  \n© A+ Computer Science - www.apluscompsci.com  \n12. What is output by the following pseudocode?  \nset a to -14  \nrepeat 3 times  \nchange a by 12  \nsay a  \na. 22  \nb. 36  \nc. 12  \nd. 34  \ne. 20  \n13. What is output by the following pseudocode?  \nset c to 1  \nrepeat until c > 49  \nchange c by 8  \nsay c  \na. 1  \nb. 17  \nc. 33  \nd. 49  \ne. 57  \n14. What is output by the following pseudocode?  \nset c to 5  \nrepeat until c > 60  \nchange c by 10  \nsay c  \na. 15  \nb. 35  \nc. 55  \nd. 65  \ne. 75  \n© A+ Computer Science - www.apluscompsci.com  \n© A+ Computer Science - www.apluscompsci.com  \n15. What is output by the following pseudocode?  \nset c to 30  \nrepeat until c \u003C 10  \nchange c by -5  \nsay c  \na. 30  \nb. 20  \nc. 10  \nd. 5  \ne. 0  \n16. What is output by the following pseudocode?  \nset d to 10  \nrepeat until d > 71  \nchange d by 6  \nsay d  \na. 76  \nb. 34  \nc. 48  \nd. 72  \ne. 84  \n17. What is output by the following pseudocode?  \nset d to 32  \nrepeat until d > 50  \nchange d by 4  \nsay d  \na. 32  \nb. 36  \nc. 44  \nd. 52  \ne. 48  \n© A+ Computer Science - www.apluscompsci.com  \n© A+ Computer Science - www.apluscompsci.com  \n18. What is output by the following pseudocode?  \nset d to 100  \nrepeat until d \u003C 71  \nchange d by -7  \nsay d  \na. 86  \nb. 65  \nc. 73  \nd. 93  \ne. 60  \n19. What is output by the following pseudocode?  \nset f to 1  \nset g to 0  \nrepeat until f > 16  \nchange g by f  \nchange f by 7  \nsay g  \na. 25  \nb. 24  \nc. 46  \nd. 8  \ne. 1  \n20. What is output by the follow","cbCaiawEbzU94BfD","https://ap.wps.com/l/cbCaiawEbzU94BfD","pdf",152698,15,"English","# Program Concepts\n## Variables and Lists\n## Conditionals and Loops\n# Scratch-Based Output Questions\n## Repeat (Fixed Times)\n## Repeat Until Conditions\n## List Creation and Add Operations","[{\"question\":\"What is a program variable, according to the test?\",\"answer\":\"A variable is a place in memory to store a value that can change.\"},{\"question\":\"Why are lists used when writing programs?\",\"answer\":\"Lists allow multiple values to be stored in one place and can be manipulated effectively using loops.\"},{\"question\":\"In the Scratch-based pseudocode questions, how do you determine the output?\",\"answer\":\"Track how the initial value changes through each repeat step (including repeat-until conditions) and read the final values that the say/display statements output.\"}]","AP CSP Loops, Lists, Algorithms Test - Questions and Scratch Pseudocode Output | PDF",1789899763,38,[148,152,156,160],{"page_no":8,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/fc9ec80fad5fa46a5805e3f97742f1e4.webp",983,1272,{"page_no":14,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/dd8442caef8215697678c1fee37ba176.webp",982,1270,{"page_no":81,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/180abe6ad93985b3a2ba3d17ff10950c.webp",981,1269,{"page_no":19,"url":161,"width":162,"height":163},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/bcb0a689d9e45a56cc4922b358bf75dd.webp",980,1268,{"list":165,"token":66},[166,172,178,185,191,197,204,210,216,222],{"doc_id":167,"doc_title":168,"file_type":138,"home_preview_img_url":169,"slug":170,"view_count":56,"category_name":20,"create_tm":171},314695,"AP Principles 3.6, 3.7, 3.8, 3.9, 3.10 MCQ - Multiple Choice Questions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229907676780/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167619&Signature=WkObtaESMZGlM9d%2F60pPRWGfTT4%3D","ap-principles-36-37-38-39-310-mcq-multiple-choice-questions",1789901654,{"doc_id":173,"doc_title":174,"file_type":138,"home_preview_img_url":175,"slug":176,"view_count":105,"category_name":20,"create_tm":177},492831,"Key vocabulary to introduce at Year 5 and Year 6","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229928392892/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167619&Signature=bqnP4cbCDJrSxMOPKY6mJNHzEgo%3D","key-vocabulary-to-introduce-at-year-5-and-year-6",1790870850,{"doc_id":179,"doc_title":180,"file_type":138,"home_preview_img_url":181,"slug":182,"view_count":183,"category_name":20,"create_tm":184},311479,"The AP Computer Science Principles Cheat Sheet","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229907320742/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167619&Signature=D9P32zGcpZNa20aailieQ90IjnE%3D","the-ap-computer-science-principles-cheat-sheet",16,1789894344,{"doc_id":186,"doc_title":187,"file_type":138,"home_preview_img_url":188,"slug":189,"view_count":52,"category_name":20,"create_tm":190},208287,"2.2 - Programming fundamentals - Advanced notes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229883625134/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167619&Signature=RFIHZmRb0eQ9vszcmXbR6g9L71c%3D","22-programming-fundamentals-advanced-notes",1788603368,{"doc_id":192,"doc_title":193,"file_type":138,"home_preview_img_url":194,"slug":195,"view_count":29,"category_name":20,"create_tm":196},668969,"Computing Flowchart Algorithms Knowledge Organiser - Flowchart Symbols - Homework Tasks","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229987435580/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167619&Signature=2OAttK6%2B079CcfsUp7yUigTNXJA%3D","computing-flowchart-algorithms-knowledge-organiser-flowchart-symbols-homework-tasks",1793521905,{"doc_id":198,"doc_title":199,"file_type":138,"home_preview_img_url":200,"slug":201,"view_count":202,"category_name":20,"create_tm":203},314615,"AP Computer Science Principles - Exam Reference Information - Instruction Explanation - List Operations","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229907670968/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167619&Signature=dLjIf%2BCsRonF2uiprbR9nr92Fow%3D","ap-computer-science-principles-exam-reference-information-instruction-explanation-list-operations",11,1789901274,{"doc_id":205,"doc_title":206,"file_type":138,"home_preview_img_url":207,"slug":208,"view_count":183,"category_name":20,"create_tm":209},446532,"UIL Computer Science Competition - Practice Test 2008","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229924692150/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167619&Signature=Aw4ThuEFemAWTiHkN1LeSoArx4Q%3D","uil-computer-science-competition-practice-test-2008",1790715848,{"doc_id":211,"doc_title":212,"file_type":138,"home_preview_img_url":213,"slug":214,"view_count":14,"category_name":20,"create_tm":215},728611,"W4 Exam - JamCoders Week 4 Exam July 30, 2026","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230030203011/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167619&Signature=IZ1aiM37OxZHZCj2ILbTNGf3R9Q%3D","w4-exam-jamcoders-week-4-exam-july-30-2026",1795292664,{"doc_id":217,"doc_title":218,"file_type":138,"home_preview_img_url":219,"slug":220,"view_count":39,"category_name":20,"create_tm":221},685750,"Assignment 2 - Graph Adjacency List and Topological Interval Algorithms","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000190665/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167619&Signature=GYzP%2B4ZXHU9OXpUDj%2BFsMJDl2l4%3D","assignment-2-graph-adjacency-list-and-topological-interval-algorithms",1794017503,{"doc_id":223,"doc_title":224,"file_type":138,"home_preview_img_url":225,"slug":226,"view_count":227,"category_name":20,"create_tm":228},313336,"AP Computer Science Principles Syllabus - 2020-21","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229907345169/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167619&Signature=l%2FdowLzlwlyxAFiPoEAHH74g8%2BE%3D","ap-computer-science-principles-syllabus-2020-21",14,1789897719]