[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-314864-105":59,"doc-detail-314864-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-computer-science-unit-1-quiz-mc-portion","AP Computer Science - Unit 1 Quiz - MC Portion","","AP Computer Science Unit 1 multiple-choice quiz covering Java syntax, arithmetic expression correctness, integer division and operator precedence, casting behavior, modulo and expression evaluation, and Math/Math.abs/Math.sqrt/Math.pow usage. The quiz also tests compiler-detected errors, program output from given statements, and questions about correct and incorrect usage of a provided Student class constructor and related methods (e.g., getAverage, setScore, setName, getScore).",{"@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-computer-science-unit-1-quiz-mc-portion/314864/",{"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-unit-1-quiz-mc-portion/314864.png","ImageObject",300,407,{"name":92,"@type":93},"\tCallum ","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-04","2026-09-20",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",14,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"Which arithmetic expression is NOT correct in the quiz?","Question",{"text":113,"@type":114},"The quiz asks which option is not a correct arithmetic expression, including several forms that place operators and decimals incorrectly.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"What determines the program output for the cost-per-item question?",{"text":118,"@type":114},"The output depends on Java integer division behavior for totalCost/items and how the expression is evaluated, producing one of the listed numeric/string formats.",{"name":120,"@type":111,"acceptedAnswer":121},"Which statements about the Student class would be caught as syntax or usage errors?",{"text":122,"@type":114},"The quiz includes separate questions for correct constructor usage and for syntax errors given a Student instance declaration, such as calling methods with the correct parameter types and indexes.","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},314864,1790082946,{"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":14,"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":24,"preview_page_count":4},137451211410,"https://ap-avatar.wpscdn.com/avatar/2000bb0a9246f588df?x-image-process=image/resize,m_fixed,w_180,h_180&k=1786362646172706240","AP Computer Science – Unit 1 Quiz MC NAME    \n1. Which one of the following is NOT a correct arithmetic expression?  \na) alpha  \nb) (alpha / momentum) - 12.4  \nc) alpha ( / momentum - 12.4 )  \nd) ((alpha / momentum) - 12 .4)  \n2. What does the following program output?  \nint totalCost = 6;  \nint items = 12;  \nSystem.out.println(\"cost per item: \" + totalCost/items );  \na) cost per item: .5  \nb) cost per item: 0  \nc) cost per item: 1  \nd) cost per item: +6/12  \n3. Which of the following statements contains an error that will be caught by the compiler?  \na) int x, y = 7 z = -1;  \nb) z = x % y;  \nc) final int nums = 13;  \nd) char letter = ‘D’;  \ne) String word = “Hello”;  \n4. What is the output of the following statement? (a “b” denotes a blank space)  \nSystem.out.println(EasyFormat.format(5 .37, 5, 1));  \na) 5.4 b) b5.3 c) b5.4 d) bb5.3 e) bb5.4  \nUse the following variable declarations for \\#5:  \nint a=1, b=2, c=3, d;  \ndouble x, y;  \n5. What is the value of the variable d after the following assignment statement?  \nd = 2 - (b + c) % c * 8 / (a + 3);  \na) 0 b) 1 c) -1 d) 2 e) -2  \n6. Which of the following evaluate to the same result?  \nI. d = 2 + 4;  \nII. d = (int)(2 .3 + 4 . 6);  \nIII. d = (int)(2 .5 + 4 . 6);  \na) I and II only b) I and III only c) II and III only d) I, II and III e) None  \n7. Which of the following expressions evaluates to 3?  \na) c % b b) 6 % c + b c) c / b + b d) a + c e) b + c  \n8. What is the numerical value of the following expression?  \nMath .abs(Math.sqrt(16) -Math.pow(3,2))  \na) 5 b) -5 c) 4 d) -4 e) 0  \n9. Which of the following assignments does NOT leave x with a value of 0.7?  \na) x = 7.0 / 10;  \nb) x = (double)7 / 10;  \nc) x = (double)(7 / 10);  \nd) x = 7 / 10 .0;  \ne) x = 7.0 / 10 .0;  \nThe following questions refer to the Student class as defined on the accompanying paper.  \n10. Which of the following shows a correct use of the Student class constructor?  \nI. Student s = new Student(32, 67, 81);  \nII. Student s = new Student(32, 67, 81, “Elaine”);  \nIII. Student s = new Student(“Sara”, 32, 67, 81);  \na) I only b) II only c) III only d) I and II e) II and III  \n11. Which of the following contains a syntax error using the Student class? Assume the following declaration:  \nStudent s = new Student();  \na) double avg = s.getAverage(2);  \nb) s.setScore(3, 85);  \nc) s.setName(“Amy”);  \nd) System.out.println(s);  \ne) int score = s.getScore(1);","cbCaikEsXwiZtufF","https://ap.wps.com/l/cbCaikEsXwiZtufF","pdf",231791,"English","# Questions\n## Multiple-choice problems\n## Student class constructor and method usage","[{\"question\":\"Which arithmetic expression is NOT correct in the quiz?\",\"answer\":\"The quiz asks which option is not a correct arithmetic expression, including several forms that place operators and decimals incorrectly.\"},{\"question\":\"What determines the program output for the cost-per-item question?\",\"answer\":\"The output depends on Java integer division behavior for totalCost/items and how the expression is evaluated, producing one of the listed numeric/string formats.\"},{\"question\":\"Which statements about the Student class would be caught as syntax or usage errors?\",\"answer\":\"The quiz includes separate questions for correct constructor usage and for syntax errors given a Student instance declaration, such as calling methods with the correct parameter types and indexes.\"}]","AP Computer Science - Unit 1 Quiz - MC Portion | PDF",1789901979]