[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-728611-105":59,"doc-detail-728611-en":130,"doc-similar-728611":162},{"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","w4-exam-jamcoders-week-4-exam-july-30-2026","W4 Exam - JamCoders Week 4 Exam July 30, 2026","","JamCoders 2026 Week 4 Exam dated July 30, 2026 is a closed-book assessment for a 120-minute, 140-point test with 17 questions. The exam includes Python-focused problems covering conditionals, string slicing and concatenation, list and function completion, graph cycle detection and neighbor/in-degree questions, and debugging tasks that require identifying a specific faulty line and describing the fix. It also covers implementing a recursive number sequence function and dictionary/list manipulation exercises for outputs.",{"@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/w4-exam-jamcoders-week-4-exam-july-30-2026/728611/",{"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/w4-exam-jamcoders-week-4-exam-july-30-2026/728611.png","ImageObject",300,407,{"name":92,"@type":93},"hdkawk","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-25","2026-11-21",true,{"@type":102,"interactionType":103,"userInteractionCount":14},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What are the exam rules for materials and devices?","Question",{"text":112,"@type":113},"The exam is closed book, and no calculators or other electronic devices are permitted.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How should students handle time during the test?",{"text":117,"@type":113},"If a question is too difficult, skip it and return later. Start with questions you feel comfortable with and avoid getting stuck on unclear corner cases.",{"name":119,"@type":110,"acceptedAnswer":120},"What is required for each debugging sub-question in Q5?",{"text":121,"@type":113},"For each program, describe what goes wrong, write the line number that caused the problem, and briefly describe how to fix the bug.","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},728611,1795292664,{"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":14,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":19,"preview_urls":145},3985747859855,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","JamCoders 2026  \nLecturer: Orr Paradise  \nWeek 4 Exam July 30, 2026  \nName:    \nThis test has 17 questions across 17 pages worth a total of 140 points, and is to be completed in 120 minutes. Point totals are labeled next to each question. The exam is closed book, and no calculators or other electronic devices are permitted.  \nWrite the statement out below in the blank provided and sign your name. You may do this before the exam begins.  \n”I have neither given nor received any assistance in the taking of this exam.”  \nSignature:    \nTips:  \n• There may be partial credit for incomplete answers. Write as much of the solution as you can, but bear in mind that we may deduct points if your answers are much more complicated than necessary.  \n• Use your time wisely. If you are having too much trouble on a question, skip it and return to it later.  \nWork through the ones you are comfortable with first. Do not get overly captivated by interesting design issues or complex corner cases you’re not sure about.  \n• If you are given skeleton code to fill in, we will not grade your answer if you alter the skeleton code or write outside the solution box.  \n• For questions with square checkboxes, you may select more than one choice.  \n• For questions with circles, you may only select one choice.  \n• Relax, and try to have fun with it! Think of this exam as a checkpoint along your JamCoders journey. You got this!  \nStaff use only.  \n\n| Q1 | Q2 | Q3 | Q4 | Q5 | Q6 | Q7 | Q8 | Q9 |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n|  |  |  |  |  |  |  |  |  |\n| Q10 | Q11 | Q12 | Q13 | Q14 | Q15 | Q16 | Q17 | Total |\n|  |  |  |  |  |  |  |  |  |\n\n1. (4 points) Consider the following code.  \nif a or b:  \nif a:  \nprint (\"Robert\") else :  \nprint (\"Anushka\") else :  \nif b:  \nprint (\"Frank\") else :  \nprint (\"Mallika\")  \nFill in the boxes next to all answers for which the code will print only Anushka.  \n□ a = True, b = True  \n□ a = True, b = False  \n□ a = False, b = True  \n□ a = False, b = False  \n2. (6 points) What will be printed after running the following code? Write your answers on the dashed lines.  \na = \"Cheer\"  \nb = \"leader\"c = a + b * 2  \nprint(c) \\# Printed:    \nb = c[1:4]  \nprint(b) \\# Printed:    \na = a + b  \nprint(a) \\# Printed:    \n3. (6 points) Complete the following code to return the minimum element in a non-empty list of integers.  \ndef find_min(L):  \nmin_so_far =    \nfor   in   :  \nif   :  \nmin_so_far =   return    \n4. For the next question, consider the following directed graph.  \na  \nb  \nc  \nd  \ne  \nf  \na. (5 points) Which of the following are cycles in the graph?  \n□ a → b → d → e → a  \n□ b → d → e → b  \n□ c → d → e → f → c  \n□ a → c → d → b → a  \n□ d → e → f → d  \n□ e → b → a → c → e  \nb. (4 points) How many neighbors does node e have?  \nc. (4 points) Which node in the graph has no incoming edges?  \n5. Debugging  \nEach of the following programs contains a bug. For each one:  \n• Describe what goes wrong when the program is run.  \n• Write the line number that caused the problem.  \n• Briefly describe how to fix the bug.  \na. (6 points) This program should print the numbers 0 through 4.  \n1 i = 0  \n2 while i \u003C 5 :  \n3 print(i)  \n4 i += 1  \nProblem:   Line number:    \nDescribe the Fix:  \nb. (6 points) This program should print every word in the list in uppercase.  \n1 words = [ \"cat\" , \"dog\" , \"bird\"]  \n2 for i in range (len(words)):  \n3 print(i . upper())  \nProblem:   Line number:    \nDescribe the Fix:  \nc. (6 points) This program should print the square of the number 5.  \n1 def square(x):  \n2 return x * x 3  \n4 square(5)  \n5 print(result)  \nProblem:   Line number:    \nDescribe the Fix:  \n6. (8 points) Adrianna invented a new number sequence. The n-th number in the sequence, gn, is defined as follows:  \ng 0 = 6  \ng 1 = 7  \ngn = 12 · gn−1 − 7 · gn−2 + 4  \nFor example, the first few numbers in the sequence are g 0 = 6, g 1 = 7, g 2 = 46.  \nShe has started to implement a function that calculates the n-th Adrianna number, but didn’t ha","cbCaikcF30qMyGVM","https://ap.wps.com/l/cbCaikcF30qMyGVM","pdf",200672,17,"English","# Instructions\n# Python Questions\n## Q1 Conditional logic\n## Q2 Strings and slicing\n## Q3 List minimum function\n## Q4 Graph questions\n## Q5 Debugging\n## Q6 Recursive sequence (Adrianna)\n## Q7 Dictionary operations\n## Q8 Recursion over list\n## Q9 Counting veggies in a dictionary","[{\"question\":\"What are the exam rules for materials and devices?\",\"answer\":\"The exam is closed book, and no calculators or other electronic devices are permitted.\"},{\"question\":\"How should students handle time during the test?\",\"answer\":\"If a question is too difficult, skip it and return later. Start with questions you feel comfortable with and avoid getting stuck on unclear corner cases.\"},{\"question\":\"What is required for each debugging sub-question in Q5?\",\"answer\":\"For each program, describe what goes wrong, write the line number that caused the problem, and briefly describe how to fix the bug.\"}]","W4 Exam - JamCoders Week 4 Exam July 30, 2026 | PDF",43,[146,150,154,158],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-21/e79368e63318fbffcdc0fddd6dc904b3.webp",983,1272,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-21/632cc49f8b234a036763636489521a78.webp",982,1270,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-21/c43736f7b0e0ab285029850d2433275d.webp",981,1269,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-21/3751de150b20310328e056151086d902.webp",980,1268,{"list":163,"token":66},[164,170,177,183,190,196,202,208,215,222],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":34,"category_name":20,"create_tm":169},685628,"Unit 2 - Chapter 6 - List Creation - List in Python","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000169819/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796188799&Signature=vitxTXtfOLquPq7qz4EbEqdjID0%3D","unit-2-chapter-6-list-creation-list-in-python",1794016091,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":175,"category_name":20,"create_tm":176},300758,"Foundation Exam Reference Sheet - stdlib.h Functions - malloc calloc realloc free srand rand abs atoi atof - math.h Functions - pow sqrt fabs exp log - string.h Functions - strcmp strlen strcpy strcat - Summation Formulas","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229905867718/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796188799&Signature=YTUcd%2FMFWiiD71AZipAf5chXcq8%3D","foundation-exam-reference-sheet-stdlibh-functions-malloc-calloc-realloc-free-srand-rand-abs-atoi-atof-mathh-functions-pow-sqrt-fabs-exp-log-stringh-functions-strcmp-strlen-strcpy-strcat-summation-formulas",11,1789777134,{"doc_id":178,"doc_title":179,"file_type":137,"home_preview_img_url":180,"slug":181,"view_count":44,"category_name":20,"create_tm":182},417796,"PFTWeek - Python Basics - Variables, Types, and Operators","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229922495578/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796188799&Signature=9FKC4B6QGDcftoM2r8gqXTL8RzA%3D","pftweek-python-basics-variables-types-and-operators",1790610654,{"doc_id":184,"doc_title":185,"file_type":137,"home_preview_img_url":186,"slug":187,"view_count":188,"category_name":20,"create_tm":189},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=1796188799&Signature=GZy9y1iySDIY3zgJL80lb1TEq1Y%3D","the-ap-computer-science-principles-cheat-sheet",16,1789894344,{"doc_id":191,"doc_title":192,"file_type":137,"home_preview_img_url":193,"slug":194,"view_count":44,"category_name":20,"create_tm":195},502118,"CCAT - Practice Questions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229931527957/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796188799&Signature=T2SsmfQ6UJvzuszcqZUeBBXVi2U%3D","ccat-practice-questions",1791029401,{"doc_id":197,"doc_title":198,"file_type":137,"home_preview_img_url":199,"slug":200,"view_count":39,"category_name":20,"create_tm":201},685774,"UNIT 2 - Lists, Dictionaries And Sets","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000203839/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796188799&Signature=EqI34AYugLAy7Yw4IUG2UEqgqVE%3D","unit-2-lists-dictionaries-and-sets",1794018222,{"doc_id":203,"doc_title":204,"file_type":137,"home_preview_img_url":205,"slug":206,"view_count":19,"category_name":20,"create_tm":207},718150,"MULTIPLE CHOICE QUESTIONS - B.Sc.Mathematics - Sixth Semester - MTS6 B14(E04): MATHEMATICAL PROGRAMMING WITH PYTHON AND LATEX","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230018609149/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796188799&Signature=J9PikHY0MFb%2Fq4GP6TCSrvhUb3M%3D","multiple-choice-questions-bscmathematics-sixth-semester-mts6-b14e04-mathematical-programming-with-python-and-latex",1794854118,{"doc_id":209,"doc_title":210,"file_type":137,"home_preview_img_url":211,"slug":212,"view_count":213,"category_name":20,"create_tm":214},341190,"AP Computer Science Principles Unit 5 Quiz","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229910307000/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796188799&Signature=%2Bm0mgEFAIs0PyidCd0RyazZdX8E%3D","ap-computer-science-principles-unit-5-quiz",13,1790040801,{"doc_id":216,"doc_title":217,"file_type":137,"home_preview_img_url":218,"slug":219,"view_count":220,"category_name":20,"create_tm":221},313981,"AP CSP Loops, Lists, Algorithms Test - Questions and Scratch Pseudocode Output","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229907646225/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796188799&Signature=AJ1bVvp9kHoXOp9biMyxecXIg9Q%3D","ap-csp-loops-lists-algorithms-test-questions-and-scratch-pseudocode-output",12,1789899763,{"doc_id":223,"doc_title":224,"file_type":137,"home_preview_img_url":225,"slug":226,"view_count":220,"category_name":20,"create_tm":227},670586,"CSE1305 Algorithms & Data Structures Resit Analysis Exam - 05 April 2022","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988344110/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796188799&Signature=RTbb2ObQzq7RffzsC8RfRV3BrMA%3D","cse1305-algorithms-data-structures-resit-analysis-exam-05-april-2022",1793570149]