{
 "set": "59_AP-Computer-Science-A_G10-12_Unit-Test-plus-FRQ",
 "date": "261125",
 "note": "Attach this file next time so new sets avoid every question listed here.",
 "questions": [
  {
   "id": "q01",
   "unit": "Unit 1 · Using Objects & Methods",
   "fingerprint": "99583283526e",
   "stem": "Which of the following statements compiles without error?",
   "code_first_line": ""
  },
  {
   "id": "q02",
   "unit": "Unit 2 · Selection & Iteration",
   "fingerprint": "05695961069b",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "boolean a = true;"
  },
  {
   "id": "q03",
   "unit": "Unit 3 · Class Creation",
   "fingerprint": "8dc496dc7ec4",
   "stem": "Why are the instance variables of a class usually declared private?",
   "code_first_line": ""
  },
  {
   "id": "q04",
   "unit": "Unit 4 · Data Collections",
   "fingerprint": "b920a04c09ab",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "int[] a = {4, 8, 15, 16};"
  },
  {
   "id": "q05",
   "unit": "Unit 1 · Using Objects & Methods",
   "fingerprint": "810d0fdc1800",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "String s = \"computer\";"
  },
  {
   "id": "q06",
   "unit": "Unit 2 · Selection & Iteration",
   "fingerprint": "a601a3049e66",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "int sum = 0;"
  },
  {
   "id": "q07",
   "unit": "Unit 3 · Class Creation",
   "fingerprint": "0acc90418e1a",
   "stem": "Which statement about constructors is true?",
   "code_first_line": ""
  },
  {
   "id": "q08",
   "unit": "Unit 4 · Data Collections",
   "fingerprint": "53334644ef2d",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "ArrayList<String> list = new ArrayList<String>();"
  },
  {
   "id": "q09",
   "unit": "Unit 1 · Using Objects & Methods",
   "fingerprint": "7fb60b44fd57",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "System.out.println(Math.pow(2, 3) + Math.abs(-4));"
  },
  {
   "id": "q10",
   "unit": "Unit 2 · Selection & Iteration",
   "fingerprint": "d739e572ba7a",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "int score = 85;"
  },
  {
   "id": "q11",
   "unit": "Unit 1 · Using Objects & Methods",
   "fingerprint": "31253ca7927b",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "double avg = (double) (7 + 8) / 2;"
  },
  {
   "id": "q12",
   "unit": "Unit 2 · Selection & Iteration",
   "fingerprint": "fe7b75d7f3b8",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "int d = 0;"
  },
  {
   "id": "q13",
   "unit": "Unit 3 · Class Creation",
   "fingerprint": "4c8b39f96e12",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "class Counter {"
  },
  {
   "id": "q14",
   "unit": "Unit 4 · Data Collections",
   "fingerprint": "a043f30345c2",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "int[] arr = {3, 8, 6, 5, 12, 7};"
  },
  {
   "id": "q15",
   "unit": "Unit 2 · Selection & Iteration",
   "fingerprint": "5f21898693f7",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "for (int r = 1; r <= 3; r++) {"
  },
  {
   "id": "q16",
   "unit": "Unit 1 · Using Objects & Methods",
   "fingerprint": "8e27b297380c",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "String s = \"programming\";"
  },
  {
   "id": "q17",
   "unit": "Unit 3 · Class Creation",
   "fingerprint": "c560c12fc74f",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "class Animal {"
  },
  {
   "id": "q18",
   "unit": "Unit 4 · Data Collections",
   "fingerprint": "05072b093113",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "ArrayList<Integer> nums = new ArrayList<Integer>();"
  },
  {
   "id": "q19",
   "unit": "Unit 2 · Selection & Iteration",
   "fingerprint": "91a710ffb2a7",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "int n = 2748;"
  },
  {
   "id": "q20",
   "unit": "Unit 1 · Using Objects & Methods",
   "fingerprint": "f2ee779c2dae",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "String a = \"hello\";"
  },
  {
   "id": "q21",
   "unit": "Unit 3 · Class Creation",
   "fingerprint": "2bb80b72f11b",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "class Calc {"
  },
  {
   "id": "q22",
   "unit": "Unit 4 · Data Collections",
   "fingerprint": "4b85f793abe8",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "int[][] g = { {1, 2, 3}, {4, 5, 6}, {7, 8, 10} };"
  },
  {
   "id": "q23",
   "unit": "Unit 2 · Selection & Iteration",
   "fingerprint": "90ded89485ca",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "String word = \"bookkeeper\";"
  },
  {
   "id": "q24",
   "unit": "Unit 3 · Class Creation",
   "fingerprint": "0fc3c8a8eb23",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "class Account {"
  },
  {
   "id": "q25",
   "unit": "Unit 4 · Data Collections",
   "fingerprint": "af924b90aa15",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "public static int mystery(int[] a) {"
  },
  {
   "id": "q26",
   "unit": "Unit 4 · Data Collections",
   "fingerprint": "70c7ed0ee221",
   "stem": "The method countGreater(int[] a, int k) should return how many elements of a are greater than k. Which impleme",
   "code_first_line": ""
  },
  {
   "id": "q27",
   "unit": "Unit 2 · Selection & Iteration",
   "fingerprint": "505d52f9bf96",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "int i = 10;"
  },
  {
   "id": "q28",
   "unit": "Unit 1 · Using Objects & Methods",
   "fingerprint": "30e6124ecd86",
   "stem": "Which expression produces a random integer from 5 to 14, inclusive, with every value possible?",
   "code_first_line": ""
  },
  {
   "id": "q29",
   "unit": "Unit 3 · Class Creation",
   "fingerprint": "4d78b008a5c4",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "class Vehicle {"
  },
  {
   "id": "q30",
   "unit": "Unit 4 · Data Collections",
   "fingerprint": "fd570cddcfe5",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "public static int f(int n) {"
  },
  {
   "id": "q31",
   "unit": "Unit 2 · Selection & Iteration",
   "fingerprint": "1890c0702c1f",
   "stem": "Which expression is equivalent to !(x > 5 || y <= 2)?",
   "code_first_line": ""
  },
  {
   "id": "q32",
   "unit": "Unit 1 · Using Objects & Methods",
   "fingerprint": "8a3d57553fb0",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "public static void change(String s, int[] arr, int n) {"
  },
  {
   "id": "q33",
   "unit": "Unit 3 · Class Creation",
   "fingerprint": "046cf23197bc",
   "stem": "Consider the Student class below. Which statement is true?",
   "code_first_line": "class Student {"
  },
  {
   "id": "q34",
   "unit": "Unit 4 · Data Collections",
   "fingerprint": "d26aa8e6fc66",
   "stem": "What is printed as a result of executing the code segment? (The array is printed right after the second pass, ",
   "code_first_line": "int[] a = {4, 9, 3, 1, 7};"
  },
  {
   "id": "q35",
   "unit": "Unit 1 · Using Objects & Methods",
   "fingerprint": "e1d3032c7671",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "int a = 7;"
  },
  {
   "id": "q36",
   "unit": "Unit 2 · Selection & Iteration",
   "fingerprint": "dcc9049c390c",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "String s = \"programming\";"
  },
  {
   "id": "q37",
   "unit": "Unit 3 · Class Creation",
   "fingerprint": "be22be9e3ab5",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "class Employee {"
  },
  {
   "id": "q38",
   "unit": "Unit 4 · Data Collections",
   "fingerprint": "67bd69c7b1de",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "ArrayList<Integer> list = new ArrayList<Integer>();"
  },
  {
   "id": "q39",
   "unit": "Unit 2 · Selection & Iteration",
   "fingerprint": "634699abd866",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "int a = 20;"
  },
  {
   "id": "q40",
   "unit": "Unit 3 · Class Creation",
   "fingerprint": "e360ae5391ae",
   "stem": "The Book class below has no accessor methods. Which body correctly completes isLongerThan, which returns true ",
   "code_first_line": "public class Book {"
  },
  {
   "id": "q41",
   "unit": "Unit 4 · Data Collections",
   "fingerprint": "49d330c12635",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "public static int pick(int[][] m) {"
  },
  {
   "id": "q42",
   "unit": "Unit 3 · Class Creation",
   "fingerprint": "710a13e7fcfe",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "class Box {"
  },
  {
   "id": "q43",
   "unit": "Unit 1 · Using Objects & Methods",
   "fingerprint": "3c22d9aa9489",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "String s = \"AP\";"
  },
  {
   "id": "q44",
   "unit": "Unit 2 · Selection & Iteration",
   "fingerprint": "a15b252edcf7",
   "stem": "How many times is calls++ executed as a result of running the code segment?",
   "code_first_line": "int calls = 0;"
  },
  {
   "id": "q45",
   "unit": "Unit 4 · Data Collections",
   "fingerprint": "3461af63ff4a",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "public static String mystery(String s) {"
  },
  {
   "id": "q46",
   "unit": "Unit 3 · Class Creation",
   "fingerprint": "1832105496ed",
   "stem": "Which lines of the code segment cause a compile-time error?",
   "code_first_line": "class Shape { }"
  },
  {
   "id": "q47",
   "unit": "Unit 4 · Data Collections",
   "fingerprint": "d1e879c0c158",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "public static int search(int[] a, int target) {"
  },
  {
   "id": "q48",
   "unit": "Unit 4 · Data Collections",
   "fingerprint": "66a915de7631",
   "stem": "The method rowSums(int[][] m) should return an array holding the sum of each row of m. Which implementation is",
   "code_first_line": ""
  },
  {
   "id": "q49",
   "unit": "Unit 1 · Using Objects & Methods",
   "fingerprint": "b4e966a64934",
   "stem": "What is printed as a result of executing the code segment?",
   "code_first_line": "class Pet {"
  },
  {
   "id": "q50",
   "unit": "Unit 2 · Selection & Iteration",
   "fingerprint": "046537716745",
   "stem": "The method isPrime(int n) should return true exactly when n (n >= 2) is prime. Which implementation is correct",
   "code_first_line": ""
  }
 ]
}