[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-291252-105":59,"doc-detail-291252-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","handout-46-practice-final-examination","Handout - 46 - Practice Final Examination","","Practice Final Examination handout for CS106A (December 5, 2007) that prepares students for the final exam. It provides scheduled exam times and locations, and specifies allowed resources: open book and open notes with a closed computer. The document states coverage across textbook Chapters 1–13, clarifies excluded material, and gives general answering instructions, grading-point guidance, and notes about omitted blank solution pages. It includes problem statements covering short-answer reasoning, array manipulation with a mystery method, graphics interactivity with buttons and red path lines, and a word-ladder string-checking task.",{"@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/handout-46-practice-final-examination/291252/",{"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/handout-46-practice-final-examination/291252.png","ImageObject",300,407,{"name":92,"@type":93},"Tawan","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-01","2026-09-17",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",13,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"What exam access rules and tools are allowed for the practice final?","Question",{"text":113,"@type":114},"The exam is open book and open notes, and you may use course materials and notes from class. Computers are not allowed in any form during the exam, while other handouts and printouts may be used.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"Which parts of the course textbook are covered, and what is excluded?",{"text":118,"@type":114},"The final exam covers material across the class excluding Karel material, making students responsible for Chapters 1 through 13 of The Art and Science of Java. It excludes advanced Threads material covered on November 28th and standard Java material covered on November 30th.",{"name":120,"@type":111,"acceptedAnswer":121},"How should answers be written and how are points allocated?",{"text":122,"@type":114},"All questions must be answered directly on the examination paper, including any work needed for partial credit. Each problem lists point values, and the total points are 180, intended to be roughly comparable to the minutes spent per problem.","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},291252,1791045572,{"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":44,"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":144,"read_time":145},2336475104042,"https://ap-avatar.wpscdn.com/avatar/22000c4c32af1715be0?x-image-process=image/resize,m_fixed,w_180,h_180&k=1786537525561427321","Mehran Sahami CS106A  \nHandout \\#46 December 5, 2007  \nPractice Final Examination  \nRegular Final Exam: Thursday, Dec. 13th, 12:15–3:15P.M. in Kresge Aud. Alternate Final Exam: Wednesday, Dec. 12th, 3:30–6:30P.M. in Kresge Aud.  \nPortions ofthis handout by Eric Roberts  \nThis handout is intended to give you practice solving problems that are comparable in format and difficulty to those which will appear on the final exam. You may take the exam at either of the two scheduled times and need not give advance notice of which exam you plan to take.  \nExam is open book, open notes, closed computer  \nThe examination is open-book (specifically the course textbook The Art and Science of Java and the Karel the Robot coursereader, although the Karel material will not be covered on the exam) and you may make use of any handouts, course notes/slides, printouts of your programs or other notes you've taken in the class. You may not, however, use a computer of any kind (i.e., you cannot use laptops on the exam) .  \nCoverage  \nThe final exam covers the material presented throughout the class (with the exception of the Karel material), which means that you are responsible for Chapters 1 through 13 of the class textbook The Art and Science of Java. You will not be responsible for the advanced material on Threads covered on November 28th nor the standard Java material covered on November 30th.  \nGeneral instructions  \nAnswer each of the questions included in the exam. Write all of your answers directly on the examination paper, including any work that you wish to be considered for partial credit.  \nEach question is marked with the number of points assigned to that problem. The total number of points is 180. We intend for the number of points to be roughly comparable to the number of minutes you should spend on that problem.  \nIn all questions, you may include methods or definitions that have been developed in the course, either by writing the import line for the appropriate package or by giving the name of the method and the handout or chapter number in which that definition appears.  \nUnless otherwise indicated as part of the instructions for a specific problem, comments will not be required on the exam. Uncommented code that gets the job done will be sufficient for full credit on the problem. On the other hand, comments may help you to get partial credit if they help us determine what you were trying to do.  \nBlank pages for solutions omitted in practice exam  \nIn an effort to save trees, the blank pages that would be provided in a regular exam for writing your solutions have been omitted from this practice exam. In the real exam, we would certainly provide the blank pages for you to write your solutions.  \n– 2 –  \nProblem 1: Short answer (15 points)  \n1a. We learned that when you pass an object as a parameter into a method, changes that are made to the object persist after the method completes execution. However, if you pass inan int as a parameter and change the value of that parameter in a method, the original int variable that was passed in remains unchanged. Explain why that is.  \nAnswer for 1a:  \n1b. Suppose that the integer array list has been declared and initialized as follows:  \nprivate int[] list = { 10, 20, 30, 40, 50 };  \nThis statement sets up an array of five elements with the initial values shown below:  \nlist  \n\n| 10 | 20 | 30 | 40 | 50 |\n| --- | --- | --- | --- | --- |\n\nGiven this array, what is the effect of calling the method mystery(list);  \nif mystery is defined as:  \npublic void mystery(int[] array) { int tmp = array[array .length - 1];  \nfor (int i = 1; i \u003C array .length; i++) { array[i] = array[i - 1];  \n}  \narray[0] = tmp;}  \nWork through the method carefully and indicate your answer by filling in the boxes below to show the final contents of list:  \nAnswer to 1b:  \nlist  \n\n|  |  |  |  |  |\n| --- | --- | --- | --- | --- |\n\n– 3 –  \nProblem 2: Graphics and Interactivity (35 points)  \nWrite a GraphicsProgram that does the","cbCaitSUnOLppuB1","https://ap.wps.com/l/cbCaitSUnOLppuB1","pdf",229281,"English","# Problem 1: Short answer\n## 1a\n## 1b\n# Problem 2: Graphics and Interactivity\n# Problem 3: Strings","[{\"question\":\"What exam access rules and tools are allowed for the practice final?\",\"answer\":\"The exam is open book and open notes, and you may use course materials and notes from class. Computers are not allowed in any form during the exam, while other handouts and printouts may be used.\"},{\"question\":\"Which parts of the course textbook are covered, and what is excluded?\",\"answer\":\"The final exam covers material across the class excluding Karel material, making students responsible for Chapters 1 through 13 of The Art and Science of Java. It excludes advanced Threads material covered on November 28th and standard Java material covered on November 30th.\"},{\"question\":\"How should answers be written and how are points allocated?\",\"answer\":\"All questions must be answered directly on the examination paper, including any work needed for partial credit. Each problem lists point values, and the total points are 180, intended to be roughly comparable to the minutes spent per problem.\"}]","Handout - 46 - Practice Final Examination | PDF",1789643900,23]