{"examId":"ap-computer-science-principles","trial":[{"id":"ap-computer-science-principles-b01-013","subject":"Big Idea 2: Data","topic":"2.1 Binary Numbers","style":"Single answer (4 options)","difficulty":"基礎","q":"How many different values can be represented with 4 bits?","options":["16","4","8","15"],"answer":0,"explanation":{"summary":"Each bit has 2 possible values, so 4 bits give 2 × 2 × 2 × 2 = 16 different patterns.","choices":["Correct. A bit is a binary digit with value 0 or 1, so n bits give 2^n patterns; 2^4 = 16.","Incorrect. Four is the number of bits, but each additional bit doubles the number of patterns.","Incorrect. Eight patterns come from 3 bits (2^3), so this answer is one bit short.","Incorrect. Fifteen is the largest unsigned value 4 bits can hold, but counting 0 gives 16 values."],"law":"AP Computer Science Principles CED, Big Idea 2 (scope only)"},"factIds":[],"evidence":[{"title":"NIST FIPS 180-3 Secure Hash Standard, Glossary: bit","url":"https://csrc.nist.gov/files/pubs/fips/180-3/final/docs/fips180-3_final.pdf","locator":"Definition: a binary digit having a value of 0 or 1"}],"hints":["Each bit can be 0 or 1.","Adding one bit doubles the number of patterns.","Compute 2 raised to the number of bits."],"tier":"standard","sections":[]},{"id":"ap-computer-science-principles-b01-042","subject":"Big Idea 3: Algorithms and Programming","topic":"3.8 Iteration","style":"Single answer (4 options)","difficulty":"標準","q":"REPEAT UNTIL (condition) runs its block repeatedly, checking the condition before each pass and stopping once it is true.\nn ← 1\nsteps ← 0\nREPEAT UNTIL (n > 20)\n{\n  n ← n * 2\n  steps ← steps + 1\n}\nDISPLAY(steps)\nWhat is displayed?","options":["4","6","32","5"],"answer":3,"explanation":{"summary":"n doubles 1, 2, 4, 8, 16, 32; it first exceeds 20 after 5 passes.","choices":["Incorrect. After 4 passes n is 16, which is not greater than 20, so the loop runs once more.","Incorrect. Six would require another pass after n reached 32, but the condition already stops the loop.","Incorrect. Thirty-two is the final value of n, while the code displays the count stored in steps.","Correct. After passes 1 through 5, n is 2, 4, 8, 16, 32; at 32 the condition n > 20 is true, so steps is 5."],"law":"AP Computer Science Principles CED, Big Idea 3 (scope only)"},"factIds":[],"evidence":[{"title":"OpenStax, Introduction to Python Programming, 5.1 While loop","url":"https://openstax.org/books/introduction-python-programming/pages/5-1-while-loop","locator":"A while loop repeats while the loop expression is true; the condition is checked again after each pass"}],"hints":["List the value of n after each pass.","Stop as soon as n > 20.","Count the passes, not n."],"tier":"standard","sections":[]},{"id":"ap-computer-science-principles-b01-044","subject":"Big Idea 3: Algorithms and Programming","topic":"3.8 Iteration","style":"Single answer (4 options)","difficulty":"応用","q":"REPEAT n TIMES runs its block exactly n times.\ncount ← 0\nREPEAT 3 TIMES\n{\n  REPEAT 4 TIMES\n  {\n    count ← count + 1\n  }\n  count ← count + 10\n}\nDISPLAY(count)\nWhat is displayed?","options":["14","22","42","120"],"answer":2,"explanation":{"summary":"Each outer pass adds 4 (inner loop) plus 10, so three passes give 3 × 14 = 42.","choices":["Incorrect. Fourteen is the amount added in one outer pass, but the outer loop runs three times.","Incorrect. Twenty-two counts all 12 inner additions but adds 10 only once instead of once per outer pass.","Correct. The inner loop runs fully for each outer pass, adding 4; then 10 is added; 3 × (4 + 10) = 42.","Incorrect. One hundred twenty multiplies 3, 4, and 10, which treats separate additions as a product."],"law":"AP Computer Science Principles CED, Big Idea 3 (scope only)"},"factIds":[],"evidence":[{"title":"OpenStax, Introduction to Python Programming, 5.3 Nested loops","url":"https://openstax.org/books/introduction-python-programming/pages/5-3-nested-loops","locator":"The outer loop controls the number of the inner loop's full execution"}],"hints":["How much does one outer pass add?","The inner loop runs completely each time.","Multiply the amount per outer pass by 3."],"tier":"standard","sections":[]}],"notes":{"chapters":[],"free":null},"figure":null,"trialType":"school","purposes":[{"purpose":{"ja":"米国の大学での単位認定","en":"College credit in the US"},"level":{"ja":"スコア 3 以上（最終的な扱いは大学ごと）","en":"a score of 3 or higher (each college decides its own policy)"},"source":{"ja":"College Board の推奨","en":"College Board recommendation"}}],"paceSec":90,"ownWeights":[{"subject":"Big Idea 3: Algorithms and Programming","pct":32},{"subject":"Big Idea 5: Impact of Computing","pct":23},{"subject":"Big Idea 2: Data","pct":20},{"subject":"Big Idea 4: Computer Systems and Networks","pct":13},{"subject":"Big Idea 1: Creative Development","pct":12}],"counts":{"total":100,"byTier":{"standard":100,"pro":100,"premium":100},"chapters":0,"figures":0,"onboard":{"subjects":[{"subject":"Big Idea 1: Creative Development","n":12,"std":12},{"subject":"Big Idea 2: Data","n":15,"std":20},{"subject":"Big Idea 3: Algorithms and Programming","n":15,"std":32},{"subject":"Big Idea 4: Computer Systems and Networks","n":13,"std":13},{"subject":"Big Idea 5: Impact of Computing","n":15,"std":23}]}},"plansPending":true}