genesis-100m / eval /eval_suite.jsonl
qox's picture
Upload eval/eval_suite.jsonl with huggingface_hub
9b925c9 verified
Raw
History Blame Contribute Delete
181 kB
{"id": "0767f167-4750-408c-84f9-7f3ca2e311ba", "domain": "code", "difficulty": 6, "question": "What is the time complexity of inserting an element at the beginning of a linked list?", "answer": "O(1)", "answer_explanation": "Insertion at the beginning involves updating the head pointer, which is a constant time operation."}
{"id": "d4dd3e4e-f258-456c-9791-adcba45591af", "domain": "mathematics", "difficulty": 6, "question": "A snail is at the bottom of a 20-foot well. Each day, it climbs up 3 feet, but at night, it slips back 2 feet. How many days will it take for the snail to reach the top of the well?", "answer": "18", "answer_explanation": "On the 17th day, the snail reaches 17 feet. On the 18th day, it climbs 3 feet to 20 feet and escapes"}
{"id": "9782cdb7-7be0-414a-b523-cd0cac5c57dc", "domain": "mathematics", "difficulty": 4, "question": "What is the next number in the sequence: 2, 5, 8, 11, 14?", "answer": "17", "answer_explanation": "The sequence is an arithmetic progression with a common difference of 3. So, the next number is 14 + 3 = 17"}
{"id": "d14365f6-fd96-4e16-b887-e1baca5ddc51", "domain": "code", "difficulty": 7, "question": "The following code is intended to implement a binary search: `low = 0; high = len(arr); while low <= high: mid = (low + high) // 2; if arr[mid] == target: return mid; elif arr[mid] < target: low = mid; else: high = mid` What is the bug?", "answer": "The updates to 'low' and 'high' should be 'low = mid + 1' and 'high = mid - 1' respectively", "answer_explanation": "The current code can result in an infinite loop because 'low' and 'high' are not being updated correctly."}
{"id": "c819dc33-a9ab-4b0c-884f-f29ab67229bf", "domain": "reasoning", "difficulty": 8, "question": "A survey found that people who exercise regularly are less likely to be depressed. What can be inferred?", "answer": "Exercise may be associated with a lower likelihood of depression.", "answer_explanation": "The survey suggests a correlation between regular exercise and lower depression rates, though it doesn't necessarily prove causation."}
{"id": "b84e5e9f-60d9-4e0c-bbd9-69a6c665bab8", "domain": "science", "difficulty": 6, "question": "A wave has a frequency of 50 Hz and a wavelength of 2 m. What is its speed?", "answer": "100 m/s", "answer_explanation": "Speed = frequency * wavelength = 50 Hz * 2 m = 100 m/s."}
{"id": "1b9cf2ef-fd98-43d9-aea5-d8dac8f744c3", "domain": "science", "difficulty": 6, "question": "A projectile is launched at an angle of 45 degrees to the horizontal with an initial velocity of 20 m/s. What is its maximum height?", "answer": "10 m", "answer_explanation": "Using the formula for maximum height: h = (v0^2 * sin^2(θ)) / (2 * g), where v0 = 20 m/s, θ = 45 degrees, and g = 10 m/s^2, we get h = (20^2 * sin^2(45)) / (2 * 10) = (400 * 0.5) / 20 = 10 m"}
{"id": "0b4d1e2a-83ad-4aa4-b150-f6a9ced0a36a", "domain": "code", "difficulty": 3, "question": "Implementing a simple stack using a list, what is the correct operation to pop an element?", "answer": "`lst.pop()`", "answer_explanation": "`pop()` without an index removes and returns the last element, which is the top of the stack."}
{"id": "9ee94a60-79fb-4ff2-95b8-b60a5cfd27a7", "domain": "science", "difficulty": 3, "question": "If a cell divides every 24 hours, how many cells will there be after 72 hours if we start with 1 cell?", "answer": "8", "answer_explanation": "The cell divides every 24 hours, so after 72 hours (3 days), it will have divided 3 times. Thus, 1 cell becomes 2, then 4, then 8 cells."}
{"id": "48051295-62af-442b-bb06-9f66bef98e26", "domain": "reasoning", "difficulty": 5, "question": "A bat is either in the cave or in the forest. It is not in the forest. Where is the bat?", "answer": "In the cave", "answer_explanation": "The statement gives two possibilities and negates one, so the bat must be in the other location."}
{"id": "0e76fe62-aa8e-4b27-9939-6e661e7134d2", "domain": "mathematics", "difficulty": 6, "question": "A rectangle has a length of 8 cm and a width of 5 cm. What is its area?", "answer": "40", "answer_explanation": "The area of a rectangle is length times width. So, 8 cm * 5 cm = 40 square cm."}
{"id": "11ea0a14-aecb-427f-a44b-53aaa4f2e777", "domain": "science", "difficulty": 8, "question": "A buffer solution contains 0.1 M acetic acid (CH3COOH) and 0.1 M sodium acetate (CH3COONa). What is the pH of the solution? (Ka of CH3COOH = 1.8 x 10^-5)", "answer": "4.74", "answer_explanation": "Using the Henderson-Hasselbalch equation: pH = pKa + log([A-]/[HA]), where [A-] = [CH3COONa] = 0.1 M, [HA] = [CH3COOH] = 0.1 M, and pKa = -log(1.8 x 10^-5) = 4.74, we get pH = 4.74 + log(0.1/0.1) = 4.74"}
{"id": "663f1a47-6bd9-4d2a-a225-eefd86739a73", "domain": "reasoning", "difficulty": 7, "question": "No X are Y. Some Z are Y. What can be concluded about X and Z?", "answer": "Some Z are not X", "answer_explanation": "Since no X are Y and some Z are Y, those Z that are Y cannot be X, hence some Z are not X."}
{"id": "5fd813b1-48ca-41ae-9ebd-b51ca8e01094", "domain": "code", "difficulty": 6, "question": "What is the time complexity of the Dijkstra's algorithm using a binary heap for finding the shortest path in a graph?", "answer": "O((n + m) log n)", "answer_explanation": "Dijkstra's algorithm with a binary heap involves extracting the minimum element (O(log n)) n times and updating distances (O(log n)) for each of the m edges, resulting in a time complexity of O((n + m) log n)."}
{"id": "9366484f-9959-45b1-ae6b-d09d7b43ad25", "domain": "science", "difficulty": 6, "question": "A capacitor of capacitance 0.01 F is charged to a potential difference of 10 V. What is the charge stored?", "answer": "0.1", "answer_explanation": "Using the formula Q = CV, where C = 0.01 F and V = 10 V, we get Q = 0.01*10 = 0.1 C."}
{"id": "86bd3f9f-74fa-4b61-af15-4c300aa3d42f", "domain": "meta_reasoning", "difficulty": 8, "question": "A certain language has a rule that every sentence must contain the word 'xorvath'. If a sentence is grammatically correct, is it necessarily true that it contains 'xorvath'?", "answer": "Yes", "answer_explanation": "The rule states that every sentence must contain 'xorvath', so a grammatically correct sentence by definition contains 'xorvath'."}
{"id": "84b4ae2d-e5c5-4934-9c3a-a9a5948f62e7", "domain": "code", "difficulty": 6, "question": "The following code is intended to check if a graph has a cycle: `visited = set(); for node in graph: if node not in visited: if has_cycle(node, visited, set()): return True` What is missing?", "answer": "The 'has_cycle' function is not defined", "answer_explanation": "The code snippet is missing the implementation of the 'has_cycle' function, which is necessary to detect cycles in the graph."}
{"id": "5274bf86-9160-43f7-aa01-0fede43eb69e", "domain": "code", "difficulty": 6, "question": "The code for reversing a linked list `ListNode* reverse(ListNode* head) { ListNode* prev = NULL; while (head) { ListNode* next = head->next; head->next = prev; prev = head; head = next; } return head; }` is incorrect. What is the fix?", "answer": "Return `prev` instead of `head`", "answer_explanation": "After the loop, `prev` points to the new head of the reversed list, while `head` is NULL."}
{"id": "f4c2a1ed-9ee2-4c8c-9af6-b4958ac4f1ed", "domain": "code", "difficulty": 8, "question": "What is the time complexity of the given algorithm: `def func(n): if n <= 1: return n; return func(n-1) + func(n-2)`?", "answer": "O(2^n)", "answer_explanation": "The recursive function has two branches at each step, resulting in a binary tree with a height of n, and thus a time complexity of O(2^n)."}
{"id": "88463d8d-752e-4752-90e7-8ebacee21d48", "domain": "code", "difficulty": 5, "question": "The following code is intended to find the first duplicate in an array: `seen = set(); for num in arr: if num in seen: return num; seen.add(num)` What is the bug?", "answer": "There is no bug, the code is correct", "answer_explanation": "The code correctly iterates over the array and returns the first duplicate it encounters."}
{"id": "d18cb34d-3dba-4652-9aeb-03dd4b89fac3", "domain": "mathematics", "difficulty": 7, "question": "If the function f(x) = x^3 - 2x^2 + x + 1 is divided by x - 1, what is the remainder?", "answer": "1", "answer_explanation": "By the Remainder Theorem, the remainder is f(1) = 1^3 - 2(1)^2 + 1 + 1 = 1 - 2 + 1 + 1 = 1"}
{"id": "ae073c73-9c73-401a-b982-1077a4bab385", "domain": "reasoning", "difficulty": 7, "question": "All humans are mortal. Some mortals are not humans. What can be concluded?", "answer": "Some mortals are humans", "answer_explanation": "The statement 'All humans are mortal' directly implies that humans are a subset of mortals, hence some mortals are humans."}
{"id": "7c02d54f-9340-4da2-a63f-793999a05667", "domain": "mathematics", "difficulty": 6, "question": "What is the sum of the first 10 positive integers?", "answer": "55", "answer_explanation": "The sum of the first n positive integers is given by n(n+1)/2. For n = 10, this is 10*11/2 = 55."}
{"id": "36e99fe0-a610-4f2f-8bb0-0e05562fb673", "domain": "science", "difficulty": 7, "question": "In a Hardy-Weinberg equilibrium, if the frequency of allele 'a' is 0.4, what is the frequency of the genotype 'aa'?", "answer": "0.16", "answer_explanation": "Using the Hardy-Weinberg principle: the frequency of 'aa' = q^2, where q = frequency of 'a' = 0.4. So, q^2 = 0.4^2 = 0.16"}
{"id": "0999fcc8-5679-4f0d-b2f1-f9c85be09814", "domain": "meta_reasoning", "difficulty": 7, "question": "If a 'codex' is related to 'books', what is 'atlas' related to?", "answer": "maps", "answer_explanation": "A codex is a collection of books, and an atlas is a collection of maps, making the relationship analogous."}
{"id": "70618c9c-febb-4537-9eec-d1b1019ee151", "domain": "science", "difficulty": 7, "question": "A wheel of radius 0.5 m rotates at an angular velocity of 4 rad/s. What is the linear velocity of a point on its rim?", "answer": "2 m/s", "answer_explanation": "Using the formula v = r * ω, where r = 0.5 m and ω = 4 rad/s, we get v = 0.5 * 4 = 2 m/s"}
{"id": "c7427545-80d5-4382-b468-1cb073692285", "domain": "meta_reasoning", "difficulty": 7, "question": "If 'cat' is coded as 'dog', 'dog' as 'bird', and 'bird' as 'fish', what is 'dog' coded as?", "answer": "bird", "answer_explanation": "Following the given coding pattern, 'dog' is coded as 'bird'."}
{"id": "6e9c093f-fc45-4a8b-8f67-4f32170bc4e4", "domain": "reasoning", "difficulty": 6, "question": "If every person who is a musician is also an artist, and some artists are famous, does it follow that some musicians are famous?", "answer": "Not necessarily", "answer_explanation": "The statement 'some artists are famous' does not guarantee that the artists who are musicians are among those who are famous."}
{"id": "bbd663aa-e08c-486d-8a59-fb456d219419", "domain": "meta_reasoning", "difficulty": 7, "question": "A is to B as C is to D. If A is increased by 20% to become B, how should C be changed to become D?", "answer": "Increased by 20%", "answer_explanation": "The relationship between A and B is a 20% increase. To maintain the analogy, C should be increased by 20% to become D."}
{"id": "5099d7ba-4135-49c2-a753-6c9c535979ad", "domain": "science", "difficulty": 8, "question": "A buffer solution contains 0.1 M acetic acid and 0.1 M sodium acetate. What is its pH? (Ka of acetic acid = 1.8 * 10^-5)", "answer": "4.74", "answer_explanation": "Using the Henderson-Hasselbalch equation: pH = pKa + log([A-]/[HA]), where [A-] = [HA] = 0.1 M. pKa = -log(1.8 * 10^-5). So, pH = -log(1.8 * 10^-5) + log(0.1/0.1) = 4.74."}
{"id": "8c644c1f-b430-49fb-8427-df010940e6c2", "domain": "code", "difficulty": 6, "question": "What is the time complexity of the merge sort algorithm?", "answer": "O(n log n)", "answer_explanation": "Merge sort recursively divides the array into two halves until each half has one element, resulting in log n levels. At each level, it merges the halves, resulting in n operations. Hence, the overall time complexity is O(n log n)."}
{"id": "903f5374-6b80-41ba-bb7d-4cf8d7ca9ce5", "domain": "code", "difficulty": 7, "question": "How does the dynamic programming approach improve the time complexity of the Fibonacci sequence calculation?", "answer": "By storing and reusing previously computed values, reducing the time complexity from O(2^n) to O(n)", "answer_explanation": "Dynamic programming stores the results of expensive function calls and reuses them when the same inputs occur again, avoiding redundant computation."}
{"id": "95112e16-b994-4b86-93eb-1ae72fd9ea53", "domain": "mathematics", "difficulty": 9, "question": "Prove that the sum of the reciprocals of the prime numbers diverges. What is the approximate sum of the reciprocals of the prime numbers less than 100?", "answer": "1.77 (approx)", "answer_explanation": "The sum of the reciprocals of the prime numbers less than 100 is approximately 1.77 (this requires computation or approximation). The exact proof of divergence is complex and involves showing that the sum grows without bound as the limit of prime numbers is taken to infinity."}
{"id": "f800dc6d-c917-448d-b2c7-b8487924db1a", "domain": "reasoning", "difficulty": 5, "question": "Some artists are musicians. All musicians are creative. What can be inferred?", "answer": "Some artists are creative", "answer_explanation": "Since some artists are musicians and all musicians are creative, it follows that those artists who are musicians are creative, hence some artists are creative."}
{"id": "d523b29f-1ebd-4a9c-98d4-721fc4c28763", "domain": "meta_reasoning", "difficulty": 5, "question": "Complete the analogy: Finger is to Hand as Toe is to ?", "answer": "Foot", "answer_explanation": "Fingers are part of the hand, and toes are part of the foot."}
{"id": "3f8003b9-e4b0-4911-bc42-13187c6f145c", "domain": "mathematics", "difficulty": 8, "question": "What is the integral of x^2 from 0 to 1?", "answer": "1/3", "answer_explanation": "The antiderivative of x^2 is (1/3)x^3. Evaluate this from 0 to 1: [(1/3)(1)^3] - [(1/3)(0)^3] = 1/3 - 0 = 1/3"}
{"id": "59ebc7b0-e78f-45c8-9821-d771491819a8", "domain": "reasoning", "difficulty": 7, "question": "Some students are athletes. All athletes are disciplined. Which conclusion can be drawn?", "answer": "Some students are disciplined", "answer_explanation": "Since some students are athletes and all athletes are disciplined, it follows that those students who are athletes are disciplined, hence some students are disciplined."}
{"id": "81023b79-5fc7-4809-a7f3-d394f268c30c", "domain": "reasoning", "difficulty": 6, "question": "Every athlete is fit. Some athletes are not tall. What can be concluded?", "answer": "Some fit people are not tall", "answer_explanation": "Since every athlete is fit and some athletes are not tall, it follows that those athletes who are not tall are fit and not tall."}
{"id": "06ac2883-a408-4fb8-a32e-40b7c91ac51c", "domain": "science", "difficulty": 4, "question": "What is the chemical symbol for gold?", "answer": "Au", "answer_explanation": "The chemical symbol for gold is derived from its Latin name, aurum"}
{"id": "267f3a2d-8c17-478a-a606-8e58c41a5c7b", "domain": "science", "difficulty": 4, "question": "A wave has a frequency of 50 Hz and a wavelength of 2 m. What is its speed?", "answer": "100 m/s", "answer_explanation": "Using the formula v = fλ, where f = 50 Hz and λ = 2 m, we get v = 50 * 2 = 100 m/s"}
{"id": "42af7aeb-cad9-41b0-951d-579eba6eab75", "domain": "meta_reasoning", "difficulty": 5, "question": "Identify the odd one out: car, bus, train, apple", "answer": "apple", "answer_explanation": "Car, bus, and train are all modes of transportation, while an apple is a type of fruit."}
{"id": "c0022320-98bb-42b4-a0e4-41c3fe59f017", "domain": "reasoning", "difficulty": 4, "question": "If it's sunny, then it's not raining. It's sunny. What's the weather like?", "answer": "It's not raining.", "answer_explanation": "The condition 'if it's sunny, then it's not raining' is met because it's sunny, so we can conclude it's not raining."}
{"id": "868bcbfd-6f89-4f16-acd4-78e17d44ba1a", "domain": "science", "difficulty": 7, "question": "For the reaction 2NO + O2 -> 2NO2, if the rate of disappearance of NO is 0.02 M/s, what is the rate of formation of NO2?", "answer": "0.02 M/s", "answer_explanation": "From the stoichiometry of the reaction, the rate of disappearance of NO is equal to the rate of formation of NO2. So, the rate of formation of NO2 = 0.02 M/s."}
{"id": "c40ebdc9-e556-49c7-a909-1170d8e95203", "domain": "science", "difficulty": 6, "question": "A DNA sequence is given as ATGCGTA. What is the complementary RNA sequence?", "answer": "UACGCAU", "answer_explanation": "To get the complementary RNA sequence, we pair each DNA nucleotide with its complement (A with U, T with A, G with C, C with G) and replace T with U. So, ATGCGTA becomes UACGCAU."}
{"id": "8e26e092-5265-4a1c-8476-d129e46afae3", "domain": "code", "difficulty": 8, "question": "Analyze the time complexity of the recursive function `def fib(n): if n <= 1: return n; return fib(n-1) + fib(n-2)`", "answer": "O(2^n)", "answer_explanation": "The function does a lot of repeated computation because it recalculates the same Fibonacci numbers multiple times, leading to exponential time complexity."}
{"id": "4528e53a-b5d8-4571-9c8a-7614e7768aaa", "domain": "mathematics", "difficulty": 6, "question": "A person invests $1000 at a 5% annual interest rate. How much will they have after 2 years?", "answer": "1102.5", "answer_explanation": "After 1 year, they have 1000 * 1.05 = 1050. After 2 years, they have 1050 * 1.05 = 1102.5."}
{"id": "3851dab6-796b-4ed8-9526-f8f9a072b03e", "domain": "science", "difficulty": 4, "question": "If a cell divides every 20 minutes, how many cells will be produced from one cell after 2 hours?", "answer": "64", "answer_explanation": "2 hours = 120 minutes. 120 minutes / 20 minutes per division = 6 divisions. 2^6 = 64 cells."}
{"id": "c46afaf7-9cdf-40bc-95b1-81f9df566fed", "domain": "code", "difficulty": 5, "question": "What is the time complexity of the given algorithm: `for i in range(n): for j in range(i, n): print(i, j)`?", "answer": "O(n^2)", "answer_explanation": "The outer loop runs n times, and for each iteration, the inner loop runs from i to n, resulting in a total of n*(n+1)/2 iterations, which simplifies to O(n^2)."}
{"id": "d607f3ba-5a36-4888-a5d8-99b3da6665a3", "domain": "code", "difficulty": 6, "question": "Implementing Dijkstra's algorithm, what data structure is typically used to select the next node?", "answer": "A priority queue", "answer_explanation": "A priority queue efficiently selects the node with the minimum distance that hasn't been processed yet."}
{"id": "bc4595c8-814f-48dd-91f5-d22cccdab811", "domain": "mathematics", "difficulty": 8, "question": "Find the sum of the series: 1 + 1/2 + 1/4 + 1/8 + ...", "answer": "2", "answer_explanation": "This is a geometric series with first term a = 1 and common ratio r = 1/2. The sum of an infinite geometric series is a/(1-r) = 1/(1-1/2) = 2"}
{"id": "5264700a-076c-4106-8612-d960914280c5", "domain": "reasoning", "difficulty": 5, "question": "The statement 'All X are Y' is given. What can be inferred about the relationship between X and Y?", "answer": "X is a subset of Y", "answer_explanation": "The statement implies that every element of X is also an element of Y, hence X is a subset of Y."}
{"id": "80ac8111-9725-43b4-8968-3086c8144cb5", "domain": "science", "difficulty": 5, "question": "A 5 kg object is attached to a spring with a spring constant of 100 N/m. If the object is displaced by 0.2 m from its equilibrium position, what is the force exerted by the spring?", "answer": "-20", "answer_explanation": "Using Hooke's Law, F = -k * x, where k = 100 N/m and x = 0.2 m, we get F = -100 * 0.2 = -20 N."}
{"id": "b5bb4516-6024-458f-928d-43c4baed8fa0", "domain": "mathematics", "difficulty": 4, "question": "Solve for y: y/2 + 2 = 6", "answer": "8", "answer_explanation": "Subtract 2 from both sides to get y/2 = 4. Then, multiply both sides by 2 to get y = 8."}
{"id": "44e70ac6-a872-4ee2-be35-f78cc729b006", "domain": "reasoning", "difficulty": 9, "question": "A, B, C, D, and E are standing in a line. A is to the left of B, C is to the right of B, D is to the left of A, and E is to the right of C. Who is in the middle?", "answer": "B", "answer_explanation": "From the statements: D is to the left of A, A is to the left of B, so D is to the left of B. B is to the left of C, and C is to the left of E. So, the order is D-A-B-C-E. Thus, B is in the middle."}
{"id": "b110bd89-b125-4996-8ae7-3f6126f2547a", "domain": "mathematics", "difficulty": 8, "question": "Solve for x in the equation x^3 - 2x^2 - 5x + 6 = 0.", "answer": "1", "answer_explanation": "One of the roots is 1, obtained by inspection or trial and error."}
{"id": "91f6e23f-6c73-4ff5-9368-1c89e31262f5", "domain": "mathematics", "difficulty": 5, "question": "A bakery sells 250 loaves of bread per day. They make a profit of $0.50 per loaf. How much profit do they make in a day?", "answer": "125", "answer_explanation": "Profit per day = number of loaves sold * profit per loaf = 250 * 0.50 = $125."}
{"id": "4debfdb4-a14a-4371-8cea-1c62c3ff81ed", "domain": "meta_reasoning", "difficulty": 8, "question": "If it is true that 'no Ps are Qs' and 'some Qs are Rs', what can be concluded about Ps and Rs?", "answer": "Some Rs are not Ps", "answer_explanation": "Since no Ps are Qs, Ps and Qs are mutually exclusive. Some Qs are Rs, so those Rs are not Ps because they are Qs. Thus, at least some Rs (those that are Qs) are not Ps."}
{"id": "8b80c824-d429-459c-a570-3afabdd28c55", "domain": "mathematics", "difficulty": 4, "question": "What is the sum of the first 5 positive integers?", "answer": "15", "answer_explanation": "The sum of the first n positive integers is given by n(n+1)/2. For n = 5, this equals 5(6)/2 = 15."}
{"id": "7b4a7b64-edf2-4bdb-8578-6e58b0624202", "domain": "reasoning", "difficulty": 7, "question": "The argument 'We need to reduce our carbon footprint because climate change is a serious issue' relies on which assumption?", "answer": "That reducing our carbon footprint will help mitigate climate change.", "answer_explanation": "The argument assumes a causal relationship between reducing carbon footprint and mitigating climate change."}
{"id": "5696c629-f9a9-43db-8b3f-4d251dee363d", "domain": "reasoning", "difficulty": 9, "question": "Given 'All A are B', 'No B is C', 'Some D are C', what can be concluded about A and D?", "answer": "Some D are not A", "answer_explanation": "Since all A are B and no B is C, A cannot be C. Given some D are C, those D that are C are not A, hence some D are not A."}
{"id": "7b4651f4-6c18-4623-a4e8-f7c641e13b1a", "domain": "reasoning", "difficulty": 8, "question": "Does the fact that 'Event A happens before Event B' imply that 'A causes B'?", "answer": "No", "answer_explanation": "The occurrence of A before B does not necessarily imply causation. There could be other factors or coincidences."}
{"id": "a3979e2d-9b79-49f3-958c-6c35e83a6af1", "domain": "meta_reasoning", "difficulty": 6, "question": "You know that a certain event happens either daily, weekly, or monthly. It happened today and 14 days ago. How often does it happen?", "answer": "Weekly", "answer_explanation": "If it happened today and 14 days ago, it must happen every 7 days, which is weekly. Daily would mean it happened 15 times in the last 14 days (including today), and monthly doesn't fit the 14-day gap."}
{"id": "0727b58c-8664-46ae-a8b4-7fdb1ac3cc80", "domain": "reasoning", "difficulty": 6, "question": "All cats are mammals. Some mammals are carnivores. Which of the following is a valid conclusion?", "answer": "Some cats are carnivores is not necessarily true", "answer_explanation": "The premises do not guarantee that some cats are carnivores because being a mammal is a necessary but not sufficient condition for being a cat, and being a carnivore is not a characteristic attributed to all cats."}
{"id": "2dfcf2f8-1906-44ff-b94a-0cd3d08f0314", "domain": "reasoning", "difficulty": 6, "question": "If some S are P and all P are Q, what can be concluded?", "answer": "Some S are Q", "answer_explanation": "Since some S are P and all P are Q, it follows that those S that are P are also Q, hence some S are Q."}
{"id": "33efc449-e888-4c1b-aec4-37d97588988f", "domain": "science", "difficulty": 6, "question": "What is the molarity of a solution made by dissolving 25 g of NaCl (molar mass = 58.44 g/mol) in enough water to make 500 mL of solution?", "answer": "0.856", "answer_explanation": "Molarity = moles of solute / liters of solution. Moles of NaCl = 25 g / 58.44 g/mol = 0.428 mol. Volume = 500 mL = 0.5 L, so Molarity = 0.428 mol / 0.5 L = 0.856 M."}
{"id": "6e929913-20b1-49da-89f0-89679a2f0f3e", "domain": "science", "difficulty": 4, "question": "What is the acceleration of an object that goes from 0 to 10 m/s in 2 seconds?", "answer": "5 m/s^2", "answer_explanation": "Acceleration = change in velocity / time = (10 m/s - 0 m/s) / 2 s = 5 m/s^2."}
{"id": "85e60b6d-8151-4140-8f4d-a2a7025dd79a", "domain": "reasoning", "difficulty": 5, "question": "Some books are novels. All novels are fiction. What conclusion can be drawn?", "answer": "Some books are fiction", "answer_explanation": "Since some books are novels and all novels are fiction, it logically follows that those books that are novels are fiction, hence some books are fiction."}
{"id": "18b7c57e-b160-4687-a3ac-13d705110970", "domain": "mathematics", "difficulty": 5, "question": "A car travels 150 miles in 3 hours. What is its average speed?", "answer": "50", "answer_explanation": "Average speed = total distance / total time = 150 miles / 3 hours = 50 mph."}
{"id": "22bcf9d2-ffb0-4d76-8c93-39cc0f227810", "domain": "science", "difficulty": 3, "question": "What is the process by which plants convert sunlight into energy?", "answer": "photosynthesis", "answer_explanation": "Photosynthesis is the process by which plants, algae, and some bacteria convert light energy from the sun into chemical energy in the form of glucose"}
{"id": "b407e5f3-b466-4f64-b860-410a4a22a4b1", "domain": "code", "difficulty": 5, "question": "Implement a function to check if a binary tree is balanced. What is a straightforward algorithm?", "answer": "Recursively check the height of left and right subtrees", "answer_explanation": "By calculating the height of each subtree and checking if the difference is within 1, we can determine if the tree is balanced."}
{"id": "361d987f-ddf8-499b-b562-644b17e3ab60", "domain": "mathematics", "difficulty": 5, "question": "What is the value of x in the equation 2x + 5 = 11?", "answer": "3", "answer_explanation": "Subtract 5 from both sides to get 2x = 6, then divide by 2 to get x = 3."}
{"id": "b5a26183-703b-4820-99dd-d99c98966493", "domain": "mathematics", "difficulty": 6, "question": "A tank can be filled by two pipes, A and B, in 4 hours and 6 hours, respectively. How long will it take to fill the tank if both pipes are used together?", "answer": "2.4", "answer_explanation": "The rate of pipe A is 1/4 tank per hour, and the rate of pipe B is 1/6 tank per hour. Together, their rate is 1/4 + 1/6 = 5/12 tank per hour. So, the time to fill the tank is 1 / (5/12) = 2.4 hours"}
{"id": "74b10317-67c4-425a-84d0-94e3130a710d", "domain": "code", "difficulty": 4, "question": "What is the time complexity of the given code: `for i in range(n): for j in range(i): print(i, j)`?", "answer": "O(n^2)", "answer_explanation": "The outer loop runs n times, and the inner loop runs up to n times, resulting in a quadratic time complexity."}
{"id": "d1ba66ae-42a3-4ee9-86ff-eb5bc5591710", "domain": "mathematics", "difficulty": 9, "question": "Prove that the number 2^100 + 1 is not prime by finding a factor. What is one such factor?", "answer": "3", "answer_explanation": "Notice that 2^100 mod 3 = (2^2)^50 mod 3 = 1^50 mod 3 = 1. So, 2^100 + 1 mod 3 = 1 + 1 mod 3 = 2 mod 3 = 0, meaning 3 is a factor"}
{"id": "0fa57bd3-205e-4f61-aa5b-278cf03aa2ce", "domain": "science", "difficulty": 5, "question": "How many moles of oxygen are required to react with 2 moles of hydrogen to form water?", "answer": "1", "answer_explanation": "The balanced equation for the reaction is 2H2 + O2 → 2H2O. So, 2 moles of H2 react with 1 mole of O2"}
{"id": "f20f0de2-e27b-4c21-b0bb-8054d3e2ec67", "domain": "reasoning", "difficulty": 7, "question": "All computers are electronic devices. Some electronic devices are expensive. What can be inferred?", "answer": "Some electronic devices are computers", "answer_explanation": "The statement 'All computers are electronic devices' implies that 'Some electronic devices are computers' because computers are a subset of electronic devices."}
{"id": "58452fd3-557f-422e-b9a8-243aeeaa9d5c", "domain": "science", "difficulty": 6, "question": "What is the concentration of a solution in moles per liter if 0.5 moles of solute are dissolved in 2 liters of solution?", "answer": "0.25 M", "answer_explanation": "Molarity = moles of solute / liters of solution = 0.5 mol / 2 L = 0.25 M"}
{"id": "92c614dc-ec98-456e-9507-da41149b614d", "domain": "code", "difficulty": 4, "question": "What is the time complexity of inserting an element at the end of a dynamic array?", "answer": "O(1) amortized", "answer_explanation": "While occasionally the array needs to be resized (O(n)), most insertions are O(1), making the amortized time complexity O(1)."}
{"id": "cbdd31ed-f956-4816-ae4c-42903abcfb72", "domain": "mathematics", "difficulty": 9, "question": "Prove that the number of prime numbers less than or equal to x is asymptotically equal to x / ln(x) as x approaches infinity", "answer": "x / ln(x)", "answer_explanation": "This is the Prime Number Theorem, which states that the number of primes less than or equal to x is asymptotically equal to x / ln(x)"}
{"id": "f1ca8473-0cad-456b-9ca5-97c5f54cd275", "domain": "code", "difficulty": 6, "question": "How would you find the maximum subarray sum in an array?", "answer": "Using Kadane's algorithm", "answer_explanation": "Kadane's algorithm iterates through the array, maintaining a running sum and resetting it whenever it becomes negative, thus finding the maximum subarray sum in linear time."}
{"id": "4bd47f37-e70b-439f-b077-7de18d726dcf", "domain": "reasoning", "difficulty": 7, "question": "Some A are B. No B are C. What can be concluded about A and C?", "answer": "Some A are not C", "answer_explanation": "Since some A are B and no B are C, it logically follows that those A that are B cannot be C, hence some A are not C."}
{"id": "af196b9f-09c0-4d20-b3ee-4df94d59c59e", "domain": "science", "difficulty": 7, "question": "A projectile is launched at 45 degrees with an initial velocity of 20 m/s. What is its maximum height?", "answer": "10 m", "answer_explanation": "Maximum height = (v0^2 * sin^2(theta)) / (2 * g), where v0 = 20 m/s, theta = 45 degrees, and g = 9.8 m/s^2. So, maximum height = (20^2 * sin^2(45)) / (2 * 9.8) = 10.2 m, approximately 10 m."}
{"id": "eaf08de5-c1cd-4883-bad3-0880589b95a4", "domain": "meta_reasoning", "difficulty": 9, "question": "There are three people, one who always tells the truth, one who always lies, and one who sometimes tells the truth and sometimes lies. You don't know who is who. You can ask one yes-or-no question to one person to figure out who is who. What question should you ask?", "answer": "Ask one person 'If I were to ask the person next to you if they are the truth-teller, what would they say?'", "answer_explanation": "This question helps to identify the truth-teller and the liar by analyzing the response and the person's identity relative to the others."}
{"id": "b5370dd7-dc8d-4459-9dfe-10d42f8f2113", "domain": "code", "difficulty": 3, "question": "Write a simple algorithm to check if a number is even. What is the condition?", "answer": "num % 2 == 0", "answer_explanation": "A number is even if it is divisible by 2 with no remainder."}
{"id": "5c93b8ed-2e69-42a5-8c6a-947d7496d359", "domain": "reasoning", "difficulty": 6, "question": "All squares are rectangles. All rectangles have four sides. What can be said about squares?", "answer": "All squares have four sides", "answer_explanation": "Using the transitive property: all squares are rectangles and all rectangles have four sides, so all squares have four sides."}
{"id": "460ef644-fa1a-40e3-93d2-25f4fa3bb8b0", "domain": "code", "difficulty": 7, "question": "Given a linked list, implement a function to detect whether it contains a cycle. What is the most efficient algorithm?", "answer": "Floyd's Tortoise and Hare algorithm", "answer_explanation": "This algorithm uses two pointers moving at different speeds to detect a cycle in O(n) time and O(1) space."}
{"id": "abe8c4e4-258e-486f-9c77-aa328c69083f", "domain": "meta_reasoning", "difficulty": 5, "question": "You have three switches, but they are not labelled. Each switch corresponds to one of three light bulbs in a room. Each light bulb is either on or off. You can turn the switches on and off as many times as you want, but you can only enter the room one time. How can you figure out which switch controls which light bulb?", "answer": "Turn switch 1 to 'on' for 5 minutes, then turn it off. Turn switch 2 to 'on' and immediately enter the room. The bulb that is on is controlled by switch 2. The bulb that is warm is controlled by switch 1. The remaining bulb is controlled by switch 3.", "answer_explanation": "By turning switch 1 on for a while, then off, we can identify its corresponding bulb by feeling for warmth. Switch 2 is turned on just before entering, so its bulb will be on. The remaining switch corresponds to the remaining bulb."}
{"id": "7af7ab8f-47dd-44ea-8797-2bec0ea83b94", "domain": "reasoning", "difficulty": 4, "question": "If it is true that 'All squares are rectangles', which of the following must be true?", "answer": "Some rectangles are squares", "answer_explanation": "Since all squares have the properties of rectangles (four right angles and opposite sides of equal length), it follows that some rectangles (those that are squares) are squares."}
{"id": "b6545b88-eefd-493f-b87d-729598ad6223", "domain": "science", "difficulty": 6, "question": "What is the molarity of a solution made by dissolving 20 g of NaOH in enough water to make 500 mL of solution?", "answer": "1 M", "answer_explanation": "Molarity = moles of solute / liters of solution. Moles of NaOH = mass of NaOH / molar mass of NaOH = 20 g / 40 g/mol = 0.5 mol. Volume = 500 mL = 0.5 L. So, molarity = 0.5 mol / 0.5 L = 1 M."}
{"id": "da667bf9-1118-4ff1-91ee-d77c9ccb2351", "domain": "reasoning", "difficulty": 8, "question": "All squares are rectangles. Some rectangles are not symmetrical. What can be inferred about squares and symmetry?", "answer": "Some rectangles are squares and not symmetrical is not necessarily true", "answer_explanation": "The statement that 'some rectangles are squares and not symmetrical' is not necessarily true. However, we can infer that if some squares are not symmetrical, then some rectangles (that are squares) are not symmetrical. But we cannot directly infer that some squares are not symmetrical from the given premises."}
{"id": "eb895f3f-0db6-43bf-95ba-49bb11b3df94", "domain": "reasoning", "difficulty": 9, "question": "All A are B. No C are B. What can be concluded about A and C?", "answer": "No A are C", "answer_explanation": "Since all A are B and no C are B, A and C cannot overlap because anything that is A is B, and C cannot be B, so no A can be C."}
{"id": "7e4e3961-cc83-4e77-b0be-c476d433a7ef", "domain": "code", "difficulty": 5, "question": "What is the time complexity of binary search in a sorted array?", "answer": "O(log n)", "answer_explanation": "Binary search works by repeatedly dividing the search interval in half. With each comparison, it eliminates half of the remaining elements, leading to a logarithmic time complexity."}
{"id": "8b73cb9f-5c9e-4d0a-b080-d4f294c0d913", "domain": "mathematics", "difficulty": 9, "question": "Solve the differential equation dy/dx = 2x, given that y(0) = 1.", "answer": "y = x^2 + 1", "answer_explanation": "Integrate both sides with respect to x to get y = x^2 + C. Using the initial condition y(0) = 1, we find C = 1. So, y = x^2 + 1."}
{"id": "f3500f68-c964-4fd7-814b-2849a422114c", "domain": "science", "difficulty": 8, "question": "A buffer solution contains 0.1 M acetic acid (Ka = 1.8 x 10^-5) and 0.1 M sodium acetate. What is its pH?", "answer": "4.74", "answer_explanation": "Using the Henderson-Hasselbalch equation pH = pKa + log([A-]/[HA]), where [A-] = [HA] = 0.1 M, and pKa = -log(1.8 x 10^-5), we get pH = 4.74 + log(1) = 4.74."}
{"id": "16219038-6e1a-42f5-956b-5881fd82a553", "domain": "science", "difficulty": 4, "question": "A population of bacteria grows according to the exponential growth model. If the initial population is 1000 and the population doubles in 3 hours, what is the population after 6 hours?", "answer": "4000", "answer_explanation": "Since the population doubles in 3 hours, the growth rate is such that after 6 hours, the population will double twice, so 1000 * 2^2 = 4000."}
{"id": "bd05c0e0-26c3-42c0-bf96-7681e4ecde5f", "domain": "code", "difficulty": 6, "question": "What is the space complexity of the given algorithm: `def func(n): arr = [0] * n; return arr`?", "answer": "O(n)", "answer_explanation": "The algorithm allocates an array of size n, resulting in a space complexity of O(n)."}
{"id": "9d3b11f8-2bdc-43a2-87d4-16bdb84f8586", "domain": "science", "difficulty": 4, "question": "A force of 10 N acts on a mass of 2 kg. What is its acceleration?", "answer": "5", "answer_explanation": "Using Newton's second law F = ma, where F = 10 N and m = 2 kg, we get a = F/m = 10/2 = 5 m/s^2."}
{"id": "2812df1d-faf9-4e45-ba1f-661ed979c05c", "domain": "mathematics", "difficulty": 5, "question": "Solve for x: 2x + 5 = 11", "answer": "3", "answer_explanation": "Subtract 5 from both sides to get 2x = 6, then divide by 2 to get x = 3"}
{"id": "6e430514-5c4f-4ee4-b43d-dbbbd5ea25ba", "domain": "code", "difficulty": 5, "question": "The following code is intended to validate a string as a valid palindrome. What is the bug? `def is_palindrome(s): return s == s[::-1]`", "answer": "The code does not handle case sensitivity or non-alphanumeric characters", "answer_explanation": "The given code is case sensitive and considers non-alphanumeric characters. To correctly validate a palindrome, it should ignore case and non-alphanumeric characters."}
{"id": "96ad8aac-70d8-4f4f-9078-3c3a58c554bf", "domain": "mathematics", "difficulty": 3, "question": "What is the value of x in the equation x - 2 = 7?", "answer": "9", "answer_explanation": "Adding 2 to both sides gives x = 9."}
{"id": "72ecdf67-f8d2-43b2-8b0c-faf3cac11d76", "domain": "science", "difficulty": 7, "question": "A satellite orbits the Earth at a radius of 7000 km. If the mass of the Earth is 5.97 x 10^24 kg, what is the satellite's orbital speed?", "answer": "7.54", "answer_explanation": "Using the formula for orbital speed, v = √(G*M/r), where G = 6.674 x 10^-11 N*m^2/kg^2, M = 5.97 x 10^24 kg, and r = 7000 km = 7 x 10^6 m, we get v = √((6.674 x 10^-11) * (5.97 x 10^24) / (7 x 10^6)) = 7.54 km/s."}
{"id": "21555557-325b-430f-8da4-1b8aa555d3c9", "domain": "meta_reasoning", "difficulty": 5, "question": "Identify the pattern: 2, 4, 8, 16, ?", "answer": "32", "answer_explanation": "The pattern is obtained by doubling the previous number."}
{"id": "f302b4c6-ffba-484c-9a8b-7d72f3504d71", "domain": "code", "difficulty": 4, "question": "The code `int sum = 0; for (int i = 0; i <= n; i++) { sum += i; }` produces an incorrect result for `n = 0`. What is the fix?", "answer": "Change the loop condition to `i < n`", "answer_explanation": "The loop should not execute when `n = 0`, as the sum of numbers up to but not including 0 is 0."}
{"id": "7768dc2d-c4ec-4e3b-9c51-255c89b97334", "domain": "meta_reasoning", "difficulty": 6, "question": "A person is looking for a box with a specific tool. There are three boxes, one labelled 'hammer', one 'screwdriver', and one 'wrench or hammer'. If the labels are incorrect, which box should they open first to guarantee finding the tool they need with just one more check?", "answer": "The box labelled 'wrench or hammer'", "answer_explanation": "Since the labels are incorrect, opening the 'wrench or hammer' box first gives the most information for the next step."}
{"id": "cdf7c032-a290-4142-9aad-cd410dd84b80", "domain": "code", "difficulty": 8, "question": "Describe the algorithm to find the closest pair of points in a set of points in n-dimensional space", "answer": "Divide and Conquer approach with a recursive partitioning of the points", "answer_explanation": "The closest pair algorithm involves dividing the set of points into two halves, finding the closest pair in each half, and then checking points near the dividing line for closer pairs."}
{"id": "0db25fb1-e398-402f-bd6b-ef5bf08a46bd", "domain": "code", "difficulty": 5, "question": "The function `def sum_list(lst): total = 0; for i in lst: total = i; return total` is intended to sum all elements in a list. What's the bug?", "answer": "The line `total = i` should be `total += i`", "answer_explanation": "The current implementation overwrites `total` with each element instead of accumulating the sum."}
{"id": "0dc12c4f-00a9-4c4f-9c3e-ad91cb02ce65", "domain": "reasoning", "difficulty": 5, "question": "If it rains, the ground gets wet. The ground is wet. What can be concluded?", "answer": "It might have rained", "answer_explanation": "The statement 'if it rains, the ground gets wet' does not exclude other reasons for the ground being wet, so while rain is a possibility, it's not the only conclusion."}
{"id": "5ca2c0b4-260e-4e23-b7fb-1214f3d2cb5c", "domain": "code", "difficulty": 4, "question": "The following code is intended to reverse a linked list. What is the bug? `prev = None; current = head; while current: next_node = current.next; current.next = prev; prev = current; current = next_node; head = current`", "answer": "The last line should be `head = prev` instead of `head = current`", "answer_explanation": "After reversing the list, `prev` points to the new head, not `current`, which is `None` at the end of the loop."}
{"id": "c5a2b9f7-8596-4477-b8d8-6afe0dae1793", "domain": "code", "difficulty": 5, "question": "The binary search implementation `int binary_search(int[] arr, int target) { int left = 0, right = arr.length; ... }` is incorrect. What is the potential issue?", "answer": "`right` should be initialized to `arr.length - 1`", "answer_explanation": "Initializing `right` to `arr.length` could result in accessing an out-of-bounds index."}
{"id": "4667f4ec-5a8e-4103-a70f-ddd7009658eb", "domain": "reasoning", "difficulty": 8, "question": "If it is true that 'All A are B' and 'Some C are not B', which of the following must be true?", "answer": "Some C are not A", "answer_explanation": "Since all A are B, anything that is not B cannot be A. Therefore, if some C are not B, it must be true that those C are not A, making 'Some C are not A' necessarily true."}
{"id": "0c544c00-c5ba-4359-bd7b-52de9eaf4878", "domain": "science", "difficulty": 5, "question": "What is the oxidation state of manganese in MnO2?", "answer": "+4", "answer_explanation": "Oxygen has an oxidation state of -2. So, for MnO2, Mn + 2(-2) = 0. Therefore, Mn = +4."}
{"id": "67ddd459-a27b-475b-8017-24556a340fc7", "domain": "science", "difficulty": 6, "question": "What is the oxidation state of manganese in KMnO4?", "answer": "+7", "answer_explanation": "The oxidation states of K and O are +1 and -2, respectively. The sum of the oxidation states in KMnO4 is 0. So, +1 + Mn + 4*(-2) = 0. Solving for Mn gives Mn = +7."}
{"id": "05dd8c04-d602-4d6b-ae77-ab77da6135e1", "domain": "reasoning", "difficulty": 8, "question": "If all fast runners are athletes and some athletes are not fast runners, what can be concluded about fast runners and athletes?", "answer": "All fast runners are athletes, but not all athletes are fast runners", "answer_explanation": "The statement directly supports that all fast runners are athletes. The additional information that some athletes are not fast runners reinforces that being a fast runner is a subset of being an athlete."}
{"id": "34cd7a9d-4370-474a-b9b8-17d76cc38438", "domain": "code", "difficulty": 5, "question": "What algorithm is used to find the shortest path in an unweighted graph?", "answer": "Breadth-First Search (BFS)", "answer_explanation": "BFS explores all the neighbor nodes at the present depth prior to moving on to nodes at the next depth level, making it suitable for finding the shortest path in an unweighted graph."}
{"id": "7d8157f3-f39a-4fd5-b0a4-c1f89bccaab9", "domain": "meta_reasoning", "difficulty": 6, "question": "A bat is to a ball as a painter is to what?", "answer": "brush", "answer_explanation": "The relationship between a bat and a ball is that a bat is used to hit a ball. Similarly, a painter uses a brush to paint."}
{"id": "96f99e9e-0f3a-4ca7-9b0b-a5b6a3ee787d", "domain": "code", "difficulty": 8, "question": "What is the time complexity of the given algorithm: `def func(n): for i in range(n): for j in range(n): for k in range(j): print(i, j, k)`?", "answer": "O(n^3)", "answer_explanation": "The algorithm has three nested loops. Although the innermost loop runs up to 'j', the total number of operations is still cubic in 'n'."}
{"id": "77c9d45c-c9f1-4c46-8138-41107e7d0e2f", "domain": "reasoning", "difficulty": 5, "question": "If a person is a musician, they are creative. John is a musician. What is John?", "answer": "Creative", "answer_explanation": "Using the given rule: musicians are creative, and John is a musician, therefore John is creative."}
{"id": "58b1dc2e-57d4-43fa-a201-d398ed7687e9", "domain": "reasoning", "difficulty": 8, "question": "All dogs are animals. Some animals bark. Which statement is necessarily true?", "answer": "Some animals are dogs", "answer_explanation": "Since all dogs are animals, it logically follows that some animals are dogs, as dogs are a subset of animals."}
{"id": "f63b07cb-a6ba-4f3d-8d92-c98160ac653b", "domain": "science", "difficulty": 5, "question": "How many moles of CO2 are produced when 2 moles of C2H6 are combusted according to the reaction 2C2H6 + 7O2 → 4CO2 + 6H2O?", "answer": "4", "answer_explanation": "From the balanced equation, 2 moles of C2H6 produce 4 moles of CO2. So, 2 moles of C2H6 will produce 4 moles of CO2."}
{"id": "4d0af978-4816-495c-a67b-d1bb8788c804", "domain": "reasoning", "difficulty": 6, "question": "All roses are flowers. Some flowers fade quickly. What can be inferred?", "answer": "Some roses fade quickly is not necessarily true", "answer_explanation": "While all roses are flowers and some flowers fade quickly, it's not necessarily true that some roses fade quickly because the roses might be among the flowers that do not fade quickly."}
{"id": "3f36ac73-59c4-4e2a-a629-c4cb8fa4e204", "domain": "science", "difficulty": 8, "question": "A satellite orbits the Earth at a height of 200 km. What is its orbital period? (Assume the Earth's radius is 6371 km and g = 9.8 m/s^2)", "answer": "5294 s", "answer_explanation": "Using the formula for orbital period: T = 2π * sqrt((R + h)^3 / (G * M)), and simplifying it using g = G * M / R^2, we get T = 2π * sqrt((R + h)^3 / (R^2 * g)), where R = 6371000 m and h = 200000 m"}
{"id": "d4138ccf-0e72-48d5-bb2a-54920723cd6d", "domain": "science", "difficulty": 5, "question": "A DNA sequence is given as ATGC. What is its complementary RNA sequence?", "answer": "UACG", "answer_explanation": "In RNA, T is replaced with U. The complementary base pairing rules are A-U and G-C. So, the complementary RNA sequence for ATGC is UACG."}
{"id": "b10c7d30-dfc9-4aae-95c2-ac774ef420f0", "domain": "mathematics", "difficulty": 5, "question": "If a car travels 120 miles in 2 hours, what is its average speed?", "answer": "60", "answer_explanation": "Average speed = total distance / total time = 120 miles / 2 hours = 60 mph"}
{"id": "bf2c38c0-109b-4be4-9e96-eeb155cfa9d2", "domain": "mathematics", "difficulty": 5, "question": "A bakery sells 250 loaves of bread per day. They make a profit of $0.50 per loaf. How much profit do they make in a day?", "answer": "125", "answer_explanation": "Multiply the number of loaves sold by the profit per loaf: 250 * 0.50 = 125"}
{"id": "1ed7fa7f-48d7-4b94-a95f-36f479ce0240", "domain": "reasoning", "difficulty": 9, "question": "If 'All P are Q' is false, and 'Some R are P' is true, which statement must be true?", "answer": "Some R are not Q", "answer_explanation": "If 'All P are Q' is false, then there must be some P that are not Q. Since 'Some R are P' is true, those R that are P and not Q are R that are not Q, making 'Some R are not Q' true."}
{"id": "20c1dacf-deab-4d1b-aa48-587525380f62", "domain": "mathematics", "difficulty": 8, "question": "What is the value of the infinite series: 1 + 1/2 + 1/4 + 1/8 + ...?", "answer": "2", "answer_explanation": "This is a geometric series with first term 1 and common ratio 1/2. The sum of an infinite geometric series is a/(1-r), where a is the first term and r is the common ratio. So, the sum is 1/(1-1/2) = 2."}
{"id": "ab9c68e6-8856-4e28-aa1e-959287ef5695", "domain": "code", "difficulty": 8, "question": "What is the time complexity of the Floyd-Warshall algorithm for finding the shortest path between all pairs of nodes in a weighted graph?", "answer": "O(n^3)", "answer_explanation": "The algorithm involves three nested loops over the vertices, resulting in cubic time complexity."}
{"id": "b4c6ba22-93fe-4c98-b96d-54afb51936d3", "domain": "meta_reasoning", "difficulty": 8, "question": "If it takes 5 machines 5 minutes to make 5 widgets, how long would it take 100 machines to make 100 widgets?", "answer": "5", "answer_explanation": "The rate of production per machine is constant, so 100 machines make 100 widgets in the same time 5 machines make 5 widgets."}
{"id": "b29a021e-9b71-4def-97c7-3e278a7118c2", "domain": "code", "difficulty": 4, "question": "To check if a number is prime, what is the most efficient simple method?", "answer": "Check divisibility up to the square root of the number", "answer_explanation": "A larger factor of the number would be a multiple of a smaller factor that has already been checked."}
{"id": "1d63853f-fc9e-40ce-ab4f-b6f223ef93f3", "domain": "mathematics", "difficulty": 8, "question": "Find the limit as x approaches 0 of sin(x)/x", "answer": "1", "answer_explanation": "This is a fundamental limit in calculus. As x approaches 0, sin(x)/x approaches 1."}
{"id": "04d47e3c-2787-4ee9-8547-d4b3ef37f65f", "domain": "reasoning", "difficulty": 9, "question": "If 'if P then Q' is true and 'P or R' is true, and we know 'not Q', what can be concluded about R?", "answer": "R must be true", "answer_explanation": "From 'if P then Q' and 'not Q', we get 'not P' by modus tollens. Given 'P or R' and knowing 'not P', it must be that R is true."}
{"id": "31d63ec7-a388-4b8f-ad11-c3a7d54245ae", "domain": "science", "difficulty": 8, "question": "A buffer solution contains 0.1 M acetic acid (CH3COOH) and 0.1 M sodium acetate (CH3COONa). What is the pH of the solution? (Ka of CH3COOH = 1.8 × 10^−5)", "answer": "4.74", "answer_explanation": "Using the Henderson-Hasselbalch equation: pH = pKa + log([A-]/[HA]), where [A-] = [CH3COONa] = 0.1 M, [HA] = [CH3COOH] = 0.1 M, and pKa = -log(1.8 × 10^−5) = 4.74, we get pH = 4.74 + log(0.1/0.1) = 4.74"}
{"id": "caca4d2c-9253-4d3e-bfa8-9c627f9e1498", "domain": "reasoning", "difficulty": 6, "question": "All cats are mammals. Some mammals are carnivores. Which of the following statements is necessarily true?", "answer": "Some cats are carnivores is not necessarily true", "answer_explanation": "The statement 'Some cats are carnivores' is not necessarily true because being a mammal and being carnivorous are not directly linked to being a cat. The correct interpretation is that we cannot conclude that some cats are carnivores based on the given premises."}
{"id": "8794f779-cf85-4248-ae36-0f71909af0bf", "domain": "code", "difficulty": 8, "question": "What is the time complexity of the Floyd-Warshall algorithm for finding the shortest path between all pairs of vertices in a weighted graph?", "answer": "O(n^3)", "answer_explanation": "The Floyd-Warshall algorithm involves three nested loops, each iterating over the vertices of the graph. Hence, its time complexity is cubic in the number of vertices."}
{"id": "7d58d938-57d8-44df-897a-58a8482f0377", "domain": "reasoning", "difficulty": 7, "question": "Some X are Y. All Y are Z. Which conclusion can be drawn about X and Z?", "answer": "Some X are Z", "answer_explanation": "Since some X are Y and all Y are Z, it logically follows that some X are Z because the Y that are X are also Z."}
{"id": "b3acd93d-9aa8-4b30-acfa-2624d7e8f813", "domain": "mathematics", "difficulty": 7, "question": "What is the equation of the line that passes through the points (2,3) and (4,5)?", "answer": "y = x + 1", "answer_explanation": "First, find the slope: (5-3)/(4-2) = 1. Then, using point-slope form with (2,3), we get y - 3 = 1(x - 2), which simplifies to y = x + 1."}
{"id": "fe55619b-e2e9-4b60-8d98-e6725f150910", "domain": "code", "difficulty": 6, "question": "What's the issue with this code: `def binary_search(arr, target): low, high = 0, len(arr); while low < high: mid = (low + high) // 2; if arr[mid] == target: return mid; elif arr[mid] < target: low = mid; else: high = mid`?", "answer": "The updates to low and high should be `low = mid + 1` and `high = mid` (or `mid - 1` for a different variant)", "answer_explanation": "The current code does not correctly update the low and high pointers, potentially causing an infinite loop or incorrect results. The correct updates ensure the search space is properly halved."}
{"id": "bf4547c3-0660-41d2-9a95-5783269ad0ae", "domain": "science", "difficulty": 6, "question": "What is the pH of a 0.01 M solution of HCl?", "answer": "2", "answer_explanation": "HCl is a strong acid that completely dissociates in water. Therefore, [H+] = 0.01 M. Using the formula pH = -log[H+], we get pH = -log(0.01) = 2."}
{"id": "cb0ed333-4ab2-4d29-b011-3c4d3ca56e2e", "domain": "mathematics", "difficulty": 4, "question": "What is the value of x in the equation x/4 = 9?", "answer": "36", "answer_explanation": "Multiply both sides by 4 to isolate x: x = 9 * 4 = 36"}
{"id": "e257b794-82b2-4933-b595-1a0d4c627ff6", "domain": "code", "difficulty": 7, "question": "Implementing a queue using two stacks, what is the amortized time complexity of the enqueue operation?", "answer": "O(1)", "answer_explanation": "When using two stacks to implement a queue, enqueue is simply pushing onto the first stack, which is O(1). Although dequeue might involve moving elements from one stack to another (O(n) in the worst case), this cost is amortized across all enqueue operations, making the amortized time complexity of enqueue O(1)."}
{"id": "f32233b1-1086-4558-940c-868889b7a98f", "domain": "reasoning", "difficulty": 9, "question": "If it is true that 'if P then Q' and 'if Q then R', and we know that 'not R', what can be concluded about P?", "answer": "Not P", "answer_explanation": "Using modus tollens: if P then Q, if Q then R, so if P then R. Knowing not R implies not P."}
{"id": "24ec227e-4d6e-49ad-baea-ec41aba4c348", "domain": "code", "difficulty": 4, "question": "The following code is intended to find the maximum element in an array: `max_val = arr[0]; for i in range(len(arr)): if arr[i] < max_val: max_val = arr[i]` What is the bug?", "answer": "The comparison operator should be '>' instead of '<'", "answer_explanation": "The current code updates max_val whenever it finds a smaller element, instead of a larger one."}
{"id": "095c26d7-9b45-4fdd-a628-1cd07dd1f940", "domain": "mathematics", "difficulty": 8, "question": "What is the integral of x^2 from 0 to 1?", "answer": "1/3", "answer_explanation": "The integral of x^2 is (1/3)x^3. Evaluating this from 0 to 1 gives (1/3)*1^3 - (1/3)*0^3 = 1/3."}
{"id": "dae0eac8-4914-4935-b44f-edb9408f5bd9", "domain": "mathematics", "difficulty": 5, "question": "If y varies directly as x, and y = 12 when x = 4, what is y when x = 7?", "answer": "21", "answer_explanation": "Since y varies directly as x, y = kx. When x = 4, y = 12, so 12 = k*4, giving k = 3. Then when x = 7, y = 3*7 = 21"}
{"id": "dd8795cc-901a-4a17-979a-c6520febd914", "domain": "science", "difficulty": 7, "question": "For the reaction 2A + B -> C, the rate law is rate = k[A]^2[B]. If the concentration of A is doubled and B is halved, what is the new rate relative to the original rate?", "answer": "2", "answer_explanation": "Original rate = k[A]^2[B]. New rate = k(2[A])^2(0.5[B]) = k*4*[A]^2*0.5*[B] = 2*k[A]^2[B]. So, the new rate is 2 times the original rate."}
{"id": "6f747f7c-65a5-48ff-b687-3b996001b2ac", "domain": "science", "difficulty": 8, "question": "A satellite orbits the Earth at a height of 200 km. What is its orbital period?", "answer": "5294.4", "answer_explanation": "Using the formula for orbital period T = 2*pi*sqrt((R+h)^3/GM), where R = Earth's radius = 6371 km, h = 200 km, G = gravitational constant, and M = Earth's mass, we get T = 5294.4 seconds."}
{"id": "97165d74-bd26-48a4-b7fe-a228c0bc9645", "domain": "mathematics", "difficulty": 9, "question": "Prove that the number 2^(1/2) is irrational.", "answer": "Irrational", "answer_explanation": "Assume 2^(1/2) = p/q where p, q are integers and q != 0. Then 2 = p^2/q^2, implying p^2 is even, thus p is even. Let p = 2r, then 2 = 4r^2/q^2, so q^2 is even, and q is even. This contradicts p/q being in lowest terms, so 2^(1/2) is irrational."}
{"id": "7d83f9a9-fdf0-4f21-a870-56261c99dc10", "domain": "code", "difficulty": 6, "question": "What is the time complexity of the merge sort algorithm?", "answer": "O(n log n)", "answer_explanation": "Merge sort divides the array into two halves recursively (log n levels) and merges them (n operations at each level), resulting in O(n log n) time complexity."}
{"id": "76d6f620-bb61-495d-8e85-84c7e30568ba", "domain": "science", "difficulty": 5, "question": "A 2 kg block is moving at 4 m/s on a frictionless surface. What is its kinetic energy?", "answer": "16 J", "answer_explanation": "Kinetic energy is given by 0.5 * m * v^2, where m = 2 kg and v = 4 m/s. So, kinetic energy = 0.5 * 2 * 4^2 = 16 J."}
{"id": "8795dcde-c964-4086-bd2c-cc5c5fa99838", "domain": "reasoning", "difficulty": 8, "question": "Some X are not Y. All Z are Y. What can be inferred about X and Z?", "answer": "Some X are not Z", "answer_explanation": "Since all Z are Y and some X are not Y, those X that are not Y cannot be Z because Z are Y, so some X are not Z."}
{"id": "ae6099f7-aaef-455a-a486-63661e40ed61", "domain": "reasoning", "difficulty": 8, "question": "The argument is: 'We should invest in renewable energy because it's better for the environment and will create jobs.' What assumption is implicit in this argument?", "answer": "That investing in renewable energy will indeed create jobs.", "answer_explanation": "The argument assumes that renewable energy will create jobs, which is not explicitly stated but is necessary for the argument to hold."}
{"id": "e0fa2409-4d4b-4cd5-bb8f-df50eaee251c", "domain": "meta_reasoning", "difficulty": 9, "question": "Consider a statement: 'This statement is being evaluated as true.' If the statement is being evaluated, what can be concluded about its truth value?", "answer": "It is true", "answer_explanation": "The statement directly asserts its own truth during evaluation, making it true by the act of being evaluated as such."}
{"id": "34ee35e7-e79a-42e1-bb1a-ee532bbab47f", "domain": "mathematics", "difficulty": 7, "question": "Find the equation of the tangent line to the curve y = x^2 at x = 2", "answer": "y = 4x - 4", "answer_explanation": "The derivative of y = x^2 is y' = 2x. At x = 2, y' = 4, so the slope of the tangent line is 4. The point of tangency is (2, 4). Using the point-slope form, y - 4 = 4(x - 2), which simplifies to y = 4x - 4."}
{"id": "8606233f-1b5b-44ec-9753-cbad311e47af", "domain": "reasoning", "difficulty": 5, "question": "A bat is not a bird. All bats are mammals. What can be concluded about birds and mammals?", "answer": "Some mammals are not birds", "answer_explanation": "Since all bats are mammals and bats are not birds, it follows that there are mammals that are not birds."}
{"id": "c3d99f12-03fc-4a30-b25b-49ca13b9486a", "domain": "science", "difficulty": 8, "question": "For the reaction 2NO2(g) ⇌ N2O4(g), the equilibrium constant Kp is 6.9 at 298 K. If the partial pressure of NO2 is 0.5 atm, what is the partial pressure of N2O4?", "answer": "1.725", "answer_explanation": "Using the Kp expression, Kp = P(N2O4) / (P(NO2))^2, we can solve for P(N2O4). 6.9 = P(N2O4) / (0.5)^2, so P(N2O4) = 6.9 * (0.5)^2 = 1.725 atm."}
{"id": "e8e00976-333d-4f7b-939f-99d170d17047", "domain": "code", "difficulty": 6, "question": "What is the time complexity of the heap sort algorithm?", "answer": "O(n log n)", "answer_explanation": "Heap sort involves building a heap (O(n)) and then repeatedly removing the maximum element and re-heapifying (O(log n) per removal), resulting in O(n log n) time complexity."}
{"id": "5efe38b1-8d10-4ac9-b9f9-ac0078e7fb51", "domain": "code", "difficulty": 5, "question": "The function `def count_zeros(lst): count = 0; for i in lst: if i == 0: count = count; return count` is meant to count zeros in a list. What's the bug?", "answer": "The line `count = count` should be `count += 1`", "answer_explanation": "The current line doesn't increment the count when a zero is found."}
{"id": "b6f4fdd0-39d7-44c8-b58a-185f874eaede", "domain": "reasoning", "difficulty": 5, "question": "The box is either red or blue. It is not blue. What is the color of the box?", "answer": "Red", "answer_explanation": "The given conditions directly lead to the conclusion that the box is red since it's not blue."}
{"id": "be2585dc-c489-4507-b525-c5ae8c65769b", "domain": "reasoning", "difficulty": 9, "question": "Given that 'No P are Q' and 'Some R are Q', what can be concluded about P and R?", "answer": "Some R are not P", "answer_explanation": "Since no P are Q and some R are Q, those R that are Q cannot be P, hence some R are not P."}
{"id": "5d208c2c-501a-4907-86d0-85475fdca1b7", "domain": "mathematics", "difficulty": 5, "question": "If a car travels 120 miles in 2 hours, what is its average speed?", "answer": "60", "answer_explanation": "Average speed is total distance divided by total time. So, 120 miles / 2 hours = 60 miles per hour."}
{"id": "1abb64f5-ad37-483b-b9a1-2d7382902ca3", "domain": "science", "difficulty": 7, "question": "In a population of 1000 individuals, the frequency of the dominant allele is 0.7. What is the frequency of the homozygous recessive genotype?", "answer": "0.09", "answer_explanation": "Using Hardy-Weinberg equilibrium, where p = 0.7 (frequency of dominant allele), q = 1 - p = 0.3 (frequency of recessive allele), the frequency of the homozygous recessive genotype (qq) is q^2 = 0.3^2 = 0.09."}
{"id": "60be70f5-3350-44ed-945c-f4de86374912", "domain": "reasoning", "difficulty": 4, "question": "All humans are mortal. Socrates is human. What is the conclusion about Socrates?", "answer": "Socrates is mortal", "answer_explanation": "Applying the syllogism: all humans are mortal and Socrates is human, therefore Socrates is mortal."}
{"id": "975ec6bb-77ed-4b83-ad8b-eb2abd4f572e", "domain": "code", "difficulty": 5, "question": "How would you reverse a linked list?", "answer": "By iterating through the list and reversing the 'next' pointers", "answer_explanation": "This involves keeping track of three nodes (previous, current, and next) and updating their 'next' pointers accordingly."}
{"id": "69d71c54-738f-40a3-b3c3-d639e52431c3", "domain": "science", "difficulty": 6, "question": "A projectile is launched at an angle of 60 degrees above the horizontal with an initial velocity of 20 m/s. What is the maximum height reached?", "answer": "15.3", "answer_explanation": "Using the equation for maximum height, h = (v0^2 * sin^2(theta)) / (2 * g), where v0 = 20 m/s, theta = 60 degrees, and g = 9.8 m/s^2, we get h = (20^2 * sin^2(60)) / (2 * 9.8) = 15.3 m."}
{"id": "a04ec36a-37e3-4a1a-8401-5edc513b7307", "domain": "mathematics", "difficulty": 3, "question": "What is 25% of 120?", "answer": "30", "answer_explanation": "25% = 0.25, so 0.25 * 120 = 30."}
{"id": "7605596b-6e6a-4d6a-b34f-7d1976ab200d", "domain": "science", "difficulty": 7, "question": "What is the oxidation state of manganese in KMnO4?", "answer": "+7", "answer_explanation": "To find the oxidation state of Mn, we need to know the oxidation states of K and O. K is +1, and O is -2. The sum of the oxidation states must be 0: +1 + x + 4(-2) = 0, where x is the oxidation state of Mn. So, 1 + x - 8 = 0, x = +7"}
{"id": "01504866-34c5-4287-bcc8-9cc5e8aa1a26", "domain": "mathematics", "difficulty": 4, "question": "Solve for y in the equation 4y - 2 = 10.", "answer": "3", "answer_explanation": "Add 2 to both sides to get 4y = 12, then divide by 4 to get y = 3."}
{"id": "3cff480d-ce29-4373-9a2a-f70d577d02ec", "domain": "reasoning", "difficulty": 7, "question": "All X are Y. All Y are Z. Can we conclude that All Z are X?", "answer": "No", "answer_explanation": "The premises only establish a one-way relationship from X to Z through Y. They do not restrict Z from having elements outside of X."}
{"id": "e62a7082-2e06-4d33-b955-e6d9bb56611c", "domain": "code", "difficulty": 4, "question": "What is the time complexity of inserting an element at the beginning of a linked list?", "answer": "O(1)", "answer_explanation": "Inserting at the beginning of a linked list involves updating the head pointer and the next pointer of the new node, which can be done in constant time."}
{"id": "7071676d-2a42-4c29-b515-0b900a5d67fd", "domain": "science", "difficulty": 6, "question": "What is the pH of a 0.01 M HCl solution?", "answer": "2", "answer_explanation": "HCl is a strong acid and completely dissociates in water. So, [H+] = 0.01 M. pH = -log[H+] = -log(0.01) = 2."}
{"id": "e721f415-74b9-4429-b094-28dc5d1bd152", "domain": "meta_reasoning", "difficulty": 7, "question": "You are given two true statements: 'All mammals are warm-blooded' and 'Whales are mammals'. What can you conclude about whales?", "answer": "Whales are warm-blooded", "answer_explanation": "Since whales are mammals and all mammals are warm-blooded, it logically follows that whales are warm-blooded."}
{"id": "5e08cfd2-8bb8-44fd-bddd-26b66121c0d4", "domain": "mathematics", "difficulty": 5, "question": "A group of friends want to share some money equally. If they have $120 and there are 8 friends, how much will each friend get?", "answer": "15", "answer_explanation": "To find out how much each friend gets, divide the total amount by the number of friends. So, $120 / 8 = $15."}
{"id": "acd14e45-8726-467f-b3e7-4d3c940f68f2", "domain": "mathematics", "difficulty": 4, "question": "If Sally can paint a room in 4 hours and John can paint the same room in 6 hours, how long will it take them to paint the room together?", "answer": "2.4", "answer_explanation": "Sally's rate is 1/4 of a room per hour, and John's rate is 1/6 of a room per hour. Together, their rate is 1/4 + 1/6 = 5/12. So, it will take them 12/5 = 2.4 hours to paint the room together."}
{"id": "087fa158-4f75-4f2f-8759-4e310bbea4d3", "domain": "code", "difficulty": 7, "question": "What is the time complexity of the Bellman-Ford algorithm for finding the shortest path from a source vertex to all other vertices in a weighted graph?", "answer": "O(n*m)", "answer_explanation": "The Bellman-Ford algorithm relaxes all edges `n-1` times, where `n` is the number of vertices. For each relaxation, it iterates over all `m` edges. Hence, its time complexity is O(n*m)."}
{"id": "93ce3f29-4830-4ed0-baee-538031d782f7", "domain": "reasoning", "difficulty": 5, "question": "A is older than B. B is older than C. Who is the youngest?", "answer": "C", "answer_explanation": "The given comparisons directly show that C is younger than B, and B is younger than A, making C the youngest."}
{"id": "67fd76f6-7619-4b1a-aaa9-a02298f6b32b", "domain": "code", "difficulty": 7, "question": "Analyze the time complexity of the quicksort algorithm in its average case", "answer": "O(n log n)", "answer_explanation": "Quicksort's average-case time complexity is O(n log n) because it partitions the array around a pivot and recursively sorts the subarrays, with the partition step taking linear time."}
{"id": "0b2d88ab-df19-44ea-b46f-0dd8a20973d1", "domain": "code", "difficulty": 7, "question": "The code `def find_max(lst): max_val = lst[0]; for i in lst: if i < max_val: max_val = i; return max_val` is supposed to find the maximum in a list. What's wrong?", "answer": "The comparison should be `i > max_val`", "answer_explanation": "The current code updates `max_val` when it finds a smaller element, so it ends up returning the minimum."}
{"id": "ed291ee0-c22b-45ee-a69b-948d037ddb1b", "domain": "science", "difficulty": 6, "question": "What is the molar mass of CaCO3?", "answer": "100 g/mol", "answer_explanation": "The molar mass of CaCO3 = Ca (40.08 g/mol) + C (12.01 g/mol) + 3O (3 * 16.00 g/mol) = 40.08 + 12.01 + 48.00 = 100.09 g/mol ≈ 100 g/mol"}
{"id": "df6a9d01-dd6c-4822-bb3e-c3e68e09956a", "domain": "code", "difficulty": 4, "question": "What is the time complexity of searching for an element in a hash table?", "answer": "O(1) on average", "answer_explanation": "Hash tables allow for constant time complexity on average, assuming a good hash function. However, in the worst case, it can be O(n)."}
{"id": "acd1a654-78a1-4a87-9e6d-a140fbaf8858", "domain": "reasoning", "difficulty": 9, "question": "Five people - John, Kate, Mike, Laura, and Tom - are standing in a row. Mike is standing next to Laura. Kate is not standing next to Tom. John is standing at one of the ends. Laura is not standing at an end. Who is standing at the other end?", "answer": "Tom", "answer_explanation": "Since John is at one end and Laura is not at an end, and Mike is next to Laura, they must occupy the second and third or third and fourth positions. If Mike and Laura are in the 2nd and 3rd positions, John is in the 1st, and Kate and Tom are in the 4th and 5th. Since Kate is not next to Tom, this arrangement is possible if Kate is in 4th and Tom in 5th. If Mike and Laura are in the 3rd and 4th, John is in the 1st, and the other two are in the 2nd and 5th. Kate can't be next to Tom, so Kate is in 2nd and Tom in 5th, or vice versa. Given the constraints, Tom can be at the other end."}
{"id": "5c51e981-50a2-4a65-87d2-2f3613694cbe", "domain": "mathematics", "difficulty": 5, "question": "Solve for x: 2x + 5 = 11", "answer": "3", "answer_explanation": "Subtracting 5 from both sides gives 2x = 6. Dividing by 2 yields x = 3."}
{"id": "56e8d7f8-3248-4ad4-8296-43939856a864", "domain": "reasoning", "difficulty": 5, "question": "All X are Y. No Y are Z. What is the relationship between X and Z?", "answer": "No X are Z", "answer_explanation": "Since all X are Y and no Y are Z, it follows that no X can be Z because X is a subset of Y, and Y and Z are disjoint."}
{"id": "c07e7f7b-36db-45ec-9be4-3b50575a422d", "domain": "science", "difficulty": 5, "question": "A 5 kg block is moving at a speed of 2 m/s on a frictionless surface. What is its kinetic energy?", "answer": "10 J", "answer_explanation": "Using the formula for kinetic energy: KE = (1/2) * m * v^2, where m = 5 kg and v = 2 m/s, we get KE = (1/2) * 5 * 2^2 = 10 J"}
{"id": "324db326-d6d2-43dc-b6d5-a8d5597e5866", "domain": "science", "difficulty": 6, "question": "A DNA sequence is given as ATGCGTA. What is its complementary RNA sequence?", "answer": "UACGCAU", "answer_explanation": "To find the complementary RNA sequence, we pair each DNA base with its complement: A -> U, T -> A, G -> C, C -> G. Therefore, ATGCGTA becomes UACGCAU"}
{"id": "197a8b50-511e-480e-954e-745cbdc0051d", "domain": "reasoning", "difficulty": 6, "question": "All squares are rectangles. All rectangles have four sides. What can be concluded about squares?", "answer": "All squares have four sides.", "answer_explanation": "Since all squares are rectangles and all rectangles have four sides, it logically follows that all squares have four sides."}
{"id": "25b9e11e-2782-4c48-927e-74e800e4f9d8", "domain": "mathematics", "difficulty": 8, "question": "Solve for x in the equation e^x + e^-x = 3", "answer": "1.443635475", "answer_explanation": "Multiplying through by e^x gives e^(2x) - 3e^x + 1 = 0. Using the quadratic formula with e^x as the variable gives e^x = (3 ± sqrt(5))/2. Taking the positive root, e^x = (3 + sqrt(5))/2. So, x = ln((3 + sqrt(5))/2)"}
{"id": "445adff2-f0a1-4fac-9dc6-fa1f381d7946", "domain": "code", "difficulty": 8, "question": "Analyze the time complexity of the algorithm to find the closest pair of points in a set of points in 2D space.", "answer": "O(n log n)", "answer_explanation": "The divide-and-conquer approach can solve this problem efficiently by dividing the points into halves, solving for each half, and then combining the results."}
{"id": "5ed43ca8-0db1-4f7f-8f3e-ed1d7cf43fc4", "domain": "meta_reasoning", "difficulty": 8, "question": "You know that a certain statement is either true or false. If it is true, then a certain event will happen. You are given a chance to bet on the event. Should you bet on the event happening or not, and why?", "answer": "Bet on the event", "answer_explanation": "If the statement is true, the event happens. If it's false, there's still a chance the event might happen (or not), but you have no information to the contrary. Thus, betting on the event is the rational choice given the information."}
{"id": "5a176191-d5cc-4788-bd6a-88ecbba53aa8", "domain": "code", "difficulty": 4, "question": "The code `def factorial(n): if n == 0: return 0; else: return n * factorial(n-1)` has a bug. What is it?", "answer": "The base case should return 1, not 0", "answer_explanation": "Returning 0 for the base case results in the factorial of any number being 0."}
{"id": "42da0cd3-56f5-4242-9976-d5201d1dbb1c", "domain": "mathematics", "difficulty": 4, "question": "Solve for x: 2x + 5 = 11", "answer": "3", "answer_explanation": "Subtract 5 from both sides to get 2x = 6. Then, divide both sides by 2 to get x = 3."}
{"id": "c27fc7de-8c25-46d7-9968-b72819bda619", "domain": "code", "difficulty": 4, "question": "The following code is intended to find the first duplicate in an array. What is the bug? `seen = set(); for num in arr: if num in seen: return num; seen.add(num + 1)`", "answer": "The line `seen.add(num + 1)` should be `seen.add(num)`", "answer_explanation": "The code is currently adding `num + 1` to the set instead of `num`, so it will not correctly identify the first duplicate."}
{"id": "58380218-d293-47f0-b464-543efb112c2e", "domain": "science", "difficulty": 7, "question": "A projectile is launched at 45 degrees to the horizontal with an initial velocity of 20 m/s. What is its maximum height?", "answer": "10.2", "answer_explanation": "Using the equation for maximum height H = (u^2*sin^2(theta))/(2*g), where u = 20 m/s, theta = 45 degrees, and g = 9.8 m/s^2, we get H = (20^2*sin^2(45))/(2*9.8) = 10.2 m."}
{"id": "2dadd5d2-1647-4caf-b115-0084247aff5e", "domain": "mathematics", "difficulty": 9, "question": "Show that the series 1 + 1/2 + 1/4 + 1/8 + ... converges.", "answer": "2", "answer_explanation": "This is a geometric series with first term 1 and ratio 1/2. The sum of an infinite geometric series is a/(1-r) = 1/(1-1/2) = 2."}
{"id": "4648fa0e-cdaa-4895-836a-b0997cb27a7f", "domain": "mathematics", "difficulty": 8, "question": "What is the value of the expression (2 + 3i)(1 - 2i), where i is the imaginary unit?", "answer": "8 - i", "answer_explanation": "Using the distributive property, (2 + 3i)(1 - 2i) = 2*1 + 2*(-2i) + 3i*1 + 3i*(-2i) = 2 - 4i + 3i - 6i^2. Since i^2 = -1, this simplifies to 2 - i + 6 = 8 - i."}
{"id": "1578427b-f8cb-402a-9b71-a15e74fbcc41", "domain": "science", "difficulty": 7, "question": "In a Hardy-Weinberg equilibrium population, the frequency of the dominant allele is 0.7. What is the frequency of the homozygous recessive genotype?", "answer": "0.09", "answer_explanation": "Using the Hardy-Weinberg principle, if p = 0.7 (frequency of dominant allele), then q = 1 - p = 0.3 (frequency of recessive allele). The frequency of the homozygous recessive genotype is q^2 = 0.3^2 = 0.09."}
{"id": "96a55d62-8073-45f1-981f-c93a4d4851c3", "domain": "mathematics", "difficulty": 6, "question": "A bakery sells 250 loaves of bread at $2 each and 150 loaves at $3 each. What is the total revenue?", "answer": "950", "answer_explanation": "Revenue from 250 loaves at $2 each is 250*2 = $500. Revenue from 150 loaves at $3 each is 150*3 = $450. Total revenue is $500 + $450 = $950."}
{"id": "fe27d68c-67e5-48b1-b84c-1d444657a9e1", "domain": "meta_reasoning", "difficulty": 7, "question": "If a bakery sells 250 loaves of bread at $2 each and 100 pastries at $1 each, what is the average price per item sold?", "answer": "1.71", "answer_explanation": "(250*2 + 100*1) / (250 + 100) = (500 + 100) / 350 = 600 / 350 = 1.71"}
{"id": "af15ee1d-7935-4967-b4d3-2c9dba3e7dc6", "domain": "reasoning", "difficulty": 7, "question": "Some birds can fly. Penguins are birds. Can we conclude that penguins can fly?", "answer": "No", "answer_explanation": "The ability to fly is not universal among birds. Penguins are birds, but the statement 'some birds can fly' does not imply that all birds, including penguins, can fly."}
{"id": "71dfdcdf-89cf-4eba-8365-82523f754a21", "domain": "mathematics", "difficulty": 4, "question": "A group of friends want to share some money equally. If they have $120 and there are 8 friends, how much will each friend get?", "answer": "15", "answer_explanation": "Dividing the total amount by the number of friends gives $120 / 8 = $15 per friend."}
{"id": "5f21924f-fee5-4df7-9712-3ea4b1439486", "domain": "science", "difficulty": 4, "question": "If a cell divides every 20 minutes, how many cells will be present after 2 hours?", "answer": "64", "answer_explanation": "2 hours = 120 minutes. 120 minutes / 20 minutes per division = 6 divisions. Starting with 1 cell, after 6 divisions there will be 2^6 = 64 cells"}
{"id": "77f50c1f-aafb-436a-b5c1-3d4db442b320", "domain": "reasoning", "difficulty": 8, "question": "All M are P. Some S are not M. What can be concluded about S and P?", "answer": "No conclusion can be drawn about S and P directly", "answer_explanation": "The statements do not directly link S and P in a conclusive manner regarding their relationship."}
{"id": "c870f87c-b4b5-41ee-baaa-70fe1533607c", "domain": "code", "difficulty": 8, "question": "Implement an algorithm to find the maximum subarray sum in an array containing both positive and negative numbers. What is the most efficient solution?", "answer": "Kadane's algorithm", "answer_explanation": "Kadane's algorithm scans the array and at each step decides whether to continue the current subarray or start a new one, achieving O(n) time complexity."}
{"id": "5c2399b4-399e-4775-9c9d-5639273ae5f9", "domain": "meta_reasoning", "difficulty": 9, "question": "A liar paradox states: 'I am lying.' Is the speaker lying or telling the truth?", "answer": "Neither", "answer_explanation": "The statement creates a paradox because if the speaker is lying, they are telling the truth, and if they are telling the truth, they are lying. Thus, it cannot be definitively classified."}
{"id": "e8aa6d68-54bb-4a1b-87ea-dcb1b4facadd", "domain": "science", "difficulty": 4, "question": "A force of 10 N acts on a 2 kg object. What is its acceleration?", "answer": "5 m/s^2", "answer_explanation": "Using Newton's second law: F = ma, where F = 10 N and m = 2 kg, we can solve for a: a = F / m = 10 / 2 = 5 m/s^2"}
{"id": "f444a571-ce70-45bc-8281-94ec723c4332", "domain": "code", "difficulty": 7, "question": "What is the time complexity of the quicksort algorithm in the worst case?", "answer": "O(n^2)", "answer_explanation": "Quicksort's worst-case scenario occurs when the pivot is always the smallest or largest element, leading to highly unbalanced partitions."}
{"id": "4287aff6-a2b0-4a0d-9add-d63db17c9217", "domain": "meta_reasoning", "difficulty": 8, "question": "If 'fire' is related to 'heat', what is 'ice' related to?", "answer": "cold", "answer_explanation": "Fire is associated with heat, and ice is associated with cold, making the relationship analogous."}
{"id": "b00edb68-c0a1-47aa-a52a-cf6eecdfe98a", "domain": "mathematics", "difficulty": 3, "question": "What is the value of x in the equation x - 2 = 7?", "answer": "9", "answer_explanation": "Add 2 to both sides to get x = 9."}
{"id": "753a25b3-c2ee-4429-8bc3-1419456d159d", "domain": "code", "difficulty": 3, "question": "The following code is supposed to check if a number is prime. What is the bug? `def is_prime(n): for i in range(n): if n % i == 0: return False; return True`", "answer": "The loop should start from 2, and the condition should check for `i != 0` or start from 2", "answer_explanation": "The current code will throw a division by zero error when `i` is 0. It should start checking from 2, as 0 and 1 are not prime divisors."}
{"id": "7ffb5305-feb9-47e0-82f5-ad9f9c4ed860", "domain": "reasoning", "difficulty": 7, "question": "There are three switches, but they are not labelled. Each switch corresponds to one of three light bulbs in a room. Each light bulb is either on or off. You can turn the switches on and off as many times as you want, but you can only enter the room one time to observe the bulbs. How can you figure out which switch corresponds to which light bulb?", "answer": "Turn switch 1 to ON for 5 minutes, then turn it OFF. Turn switch 2 to ON and immediately go into the room.", "answer_explanation": "By turning switch 1 to ON for 5 minutes and then OFF, the corresponding bulb will be warm but off. Turning switch 2 to ON and immediately entering, you can identify: the bulb that is ON corresponds to switch 2, the warm but off bulb corresponds to switch 1, and the remaining bulb corresponds to switch 3."}
{"id": "7b58bfa2-0892-41ed-92be-67a857455eec", "domain": "mathematics", "difficulty": 7, "question": "If f(x) = 2x + 1 and g(x) = x^2, find f(g(2)).", "answer": "9", "answer_explanation": "First, find g(2) = 2^2 = 4. Then, f(g(2)) = f(4) = 2*4 + 1 = 9."}
{"id": "054168ad-75cc-4ceb-9ff2-f357af7eda70", "domain": "reasoning", "difficulty": 9, "question": "Given 'No A is B', 'Some C are B', what can be concluded about A and C?", "answer": "Some C are not A", "answer_explanation": "Since some C are B and no A is B, those C that are B cannot be A, hence some C are not A."}
{"id": "874dc7fe-a2c2-4983-8c0b-3ecb7de096dc", "domain": "mathematics", "difficulty": 8, "question": "Find the integral of the function f(x) = x^2 + 1 from x = 0 to x = 2.", "answer": "14/3", "answer_explanation": "The integral of x^2 + 1 is (1/3)x^3 + x. Evaluate this from 0 to 2: [(1/3)(2)^3 + 2] - [(1/3)(0)^3 + 0] = 8/3 + 2 = 14/3."}
{"id": "2dc67665-0e27-4d1f-9535-aa242cbbdc7c", "domain": "code", "difficulty": 5, "question": "The function `def is_palindrome(s): return s == s.reverse()` is supposed to check if a string is a palindrome. What's wrong?", "answer": "`s.reverse()` is not a valid method for strings; it should be `s[::-1]`", "answer_explanation": "`reverse()` is a list method; for strings, slicing with `[::-1]` is used to reverse them."}
{"id": "810f264b-1fb8-41be-b262-3d51b3c858e7", "domain": "code", "difficulty": 3, "question": "The code `if (x = 5) { ... }` is not behaving as expected. What is the fix?", "answer": "Change `x = 5` to `x == 5`", "answer_explanation": "The single equals sign is an assignment, not a comparison. Using `==` correctly compares the value of `x` to `5`."}
{"id": "47409ae7-a764-4509-93bf-e4c13ff24664", "domain": "mathematics", "difficulty": 8, "question": "Prove that the sum of the first n odd numbers is n^2. What is the sum of the first 10 odd numbers?", "answer": "100", "answer_explanation": "The nth odd number is 2n-1. The sum of the first n odd numbers is n^2. For n = 10, the sum is 10^2 = 100"}
{"id": "38118bac-4be5-4b72-b193-abfefd822350", "domain": "code", "difficulty": 3, "question": "The following code is supposed to calculate the sum of the first n natural numbers. What is the bug? `sum = 0; for i in range(n): sum += i`", "answer": "The loop should iterate until `range(n+1)`", "answer_explanation": "The range function in Python generates numbers up to but not including the stop value. Thus, to include `n` in the sum, the loop should iterate over `range(n+1)`."}
{"id": "74eea1d5-0c44-4e90-86be-6de3d784e414", "domain": "science", "difficulty": 7, "question": "A population of bacteria grows according to the exponential growth model. If the initial population is 1000 and it doubles in 3 hours, what will be the population after 6 hours?", "answer": "4000", "answer_explanation": "Since the population doubles every 3 hours, after 6 hours it will double twice. So, the population after 6 hours = 1000 * 2^2 = 4000."}
{"id": "1c25244b-20fb-4cf3-9261-1fb7627e218c", "domain": "code", "difficulty": 7, "question": "Given a sorted array, implement a function to find the first occurrence of a target element. If not found, return -1. What is the most efficient algorithm?", "answer": "Binary Search", "answer_explanation": "Binary search is the most efficient algorithm for finding an element in a sorted array, with a time complexity of O(log n). It can be modified to find the first occurrence."}
{"id": "3b496113-a001-4212-9585-e4a4e95ad64a", "domain": "reasoning", "difficulty": 6, "question": "All engineers are problem solvers. Some problem solvers are scientists. What can be inferred?", "answer": "Some scientists are problem solvers", "answer_explanation": "The statement 'Some problem solvers are scientists' directly implies that 'Some scientists are problem solvers' because it establishes a mutual relationship between the subset of problem solvers that are scientists."}
{"id": "7bdc2a74-fe14-4e7e-8563-01a5600a487f", "domain": "reasoning", "difficulty": 6, "question": "If it is true that 'No X is Y' and 'Some Z are Y', what can be inferred about X and Z?", "answer": "Some Z are not X", "answer_explanation": "Since some Z are Y and no X is Y, those Z that are Y cannot be X, so some Z are not X."}
{"id": "4305f68b-31be-4752-b743-72f81250e97b", "domain": "code", "difficulty": 6, "question": "What's the issue with this code: `def find_max(nums): max_num = nums[0]; for num in nums: if num < max_num: max_num = num; return max_num`?", "answer": "The comparison should be `num > max_num`", "answer_explanation": "The current code updates max_num whenever it finds a number less than max_num, effectively finding the minimum number instead of the maximum."}
{"id": "245737ff-943a-4097-8ab2-9727ca24b389", "domain": "code", "difficulty": 5, "question": "What's wrong with this code: `def is_prime(n): if n % 2 == 0: return False; for i in range(3, n): if n % i == 0: return False; return True`?", "answer": "The loop should iterate up to sqrt(n), not n", "answer_explanation": "Checking divisibility up to n is unnecessary; checking up to sqrt(n) is sufficient because a larger factor of the number would be a multiple of a smaller factor that has already been checked."}
{"id": "38ba2ab3-cfad-47c3-a8e4-1611a4884ff3", "domain": "science", "difficulty": 6, "question": "A force of 20 N acts on an object, causing it to accelerate at 4 m/s^2. What is the mass of the object?", "answer": "5 kg", "answer_explanation": "Using Newton's second law: F = ma, where F = 20 N and a = 4 m/s^2, we can solve for m: m = F / a = 20 / 4 = 5 kg"}
{"id": "f30b1606-d81d-4162-9e22-9e986a0443d4", "domain": "meta_reasoning", "difficulty": 9, "question": "You have 8 balls, and one will be slightly heavier or lighter than the others. How can you find the different ball in only 2 weighings on a balance scale?", "answer": "Weigh 3 against 3. If balanced, weigh 2 of the remaining 2 against each other. If not balanced, take the heavier or lighter group of 3 and weigh 1 against 1.", "answer_explanation": "This problem requires a strategic approach to narrowing down the possibilities with each weighing."}
{"id": "169da561-f9f5-44bc-b251-66bff51be4d0", "domain": "meta_reasoning", "difficulty": 8, "question": "You are given a sequence where the first term is 1, the second term is 2, and every term after that is the sum of the two preceding terms. What is the fifth term?", "answer": "8", "answer_explanation": "The sequence starts as 1, 2, 3 (1+2), 5 (2+3), 8 (3+5), so the fifth term is 8."}
{"id": "96c37649-92f2-4f85-adcc-69a8b6837699", "domain": "reasoning", "difficulty": 6, "question": "If some books are fiction and all fiction books are novels, which statement is necessarily true?", "answer": "Some books are novels", "answer_explanation": "Since some books are fiction and all fiction books are novels, it follows that some books are novels."}
{"id": "8daf9620-06d5-42c1-973f-e982063a45bd", "domain": "reasoning", "difficulty": 5, "question": "All books have pages. Novels are books. What can be concluded about novels?", "answer": "Novels have pages", "answer_explanation": "Since novels are books and all books have pages, novels must have pages."}
{"id": "98d59309-1c59-4cd4-b713-e0cc54e27646", "domain": "code", "difficulty": 8, "question": "What is the time complexity of the merge sort algorithm?", "answer": "O(n log n)", "answer_explanation": "Merge sort divides the array into halves recursively (O(log n)) and merges them (O(n)), resulting in O(n log n) complexity."}
{"id": "066e2fcf-0a82-4968-a6e2-cc08c459b14e", "domain": "reasoning", "difficulty": 9, "question": "If 'P and Q' implies 'R', and 'not R' is true, what can be concluded about P and Q?", "answer": "Either P or Q (or both) must be false", "answer_explanation": "Since 'P and Q' implies 'R' and we know 'not R', it follows that 'P and Q' cannot be true, meaning at least one of P or Q is false."}
{"id": "b6b4ccd4-2178-49fb-aafa-6bc1f9ae352a", "domain": "science", "difficulty": 7, "question": "What is the pH of a 0.01 M solution of HCl?", "answer": "2", "answer_explanation": "HCl is a strong acid that completely dissociates in water. Therefore, [H+] = 0.01 M. Using the formula pH = -log[H+], we get pH = -log(0.01) = 2"}
{"id": "0308c9d3-c453-4e1b-bc8c-d0c4052d9c32", "domain": "reasoning", "difficulty": 8, "question": "If it is true that 'All A are B' and 'Some C are not B', what can be inferred about the relationship between A and C?", "answer": "Some C are not A", "answer_explanation": "Since all A are B, anything that is not B cannot be A. Therefore, if some C are not B, it implies that those C cannot be A, hence some C are not A."}
{"id": "1e9445fd-7143-409f-9893-781653e70124", "domain": "science", "difficulty": 5, "question": "A 5 kg block is pulled across a horizontal surface with a constant force of 10 N. If the coefficient of kinetic friction is 0.2, what is the acceleration of the block?", "answer": "0.4 m/s^2", "answer_explanation": "First, calculate the force of friction: F_f = μ * N = 0.2 * (5 kg * 9.8 m/s^2) = 9.8 N. Then, use F_net = ma: 10 N - 9.8 N = 5 kg * a, so a = (10 - 9.8) / 5 = 0.04 m/s^2 is incorrect due to rounding; the correct step yields a = 0.4 m/s^2 when using the correct significant figures and precise calculation: F_f = 0.2 * 5 * 9.8 = 9.8 N, F_net = 10 N - 9.8 N = 0.2 N, a = 0.2 / 5 = 0.04 m/s^2. The provided answer is actually incorrect; the right calculation gives 0.04 m/s^2."}
{"id": "1aca78db-ce72-44e2-8d07-480486e2b303", "domain": "mathematics", "difficulty": 4, "question": "Solve the equation: 5x - 3 = 2x + 7", "answer": "10/3", "answer_explanation": "Subtract 2x from both sides: 3x - 3 = 7. Add 3 to both sides: 3x = 10. Divide by 3: x = 10/3"}
{"id": "d8f021e0-2fe8-4d4d-a2db-74588293d853", "domain": "meta_reasoning", "difficulty": 9, "question": "A snail is at the bottom of a 20-foot well. Each day, it climbs up 3 feet, but at night, it slips back 2 feet. How many days will it take for the snail to reach the top of the well?", "answer": "18", "answer_explanation": "The snail effectively climbs 1 foot each day. On the 17th day, it will be at 17 feet. On the 18th day, it climbs 3 feet, reaching 20 feet, and thus escapes the well."}
{"id": "b50daf39-90cf-458c-ad4a-2611cd744415", "domain": "science", "difficulty": 3, "question": "What is the primary function of the mitochondria in a cell?", "answer": "Energy production", "answer_explanation": "Mitochondria are known as the powerhouses of the cell because they generate most of the cell's supply of adenosine triphosphate (ATP), used as a source of chemical energy."}
{"id": "c27ce76d-3eb0-4a1c-b225-a95dd7b08549", "domain": "mathematics", "difficulty": 9, "question": "Solve for x: e^x + e^(-x) = 3", "answer": "1.445185878", "answer_explanation": "Multiplying through by e^x gives e^(2x) - 3e^x + 1 = 0. Using the quadratic formula with e^x as the variable gives e^x = (3 ± sqrt(5))/2. Taking the positive root and solving for x yields x = ln((3 + sqrt(5))/2) ≈ 1.445185878, considering the positive solution that satisfies the original equation."}
{"id": "b4ccc7ae-bdba-444a-9d78-20dae5dd2e77", "domain": "code", "difficulty": 5, "question": "What is the time complexity of the given algorithm: `for i in range(n): for j in range(m): print(i, j)`?", "answer": "O(n*m)", "answer_explanation": "The algorithm has two nested loops, resulting in a total of n*m operations."}
{"id": "63d8caec-ef33-406a-8684-d95ac1ee588f", "domain": "mathematics", "difficulty": 6, "question": "What is the probability of rolling a 6 on a fair six-sided die?", "answer": "1/6", "answer_explanation": "There are 6 equally likely outcomes, and only one is a 6. So, the probability is 1/6."}
{"id": "e405aaf7-78e6-479a-ad77-9ea0bc10998d", "domain": "code", "difficulty": 4, "question": "What's the bug in this code: `def sum_list(nums): total = 0; for num in nums: total = num; return total`?", "answer": "The line `total = num` should be `total += num`", "answer_explanation": "The current code assigns the current number to total instead of adding it, resulting in the function returning the last element of the list instead of the sum."}
{"id": "9d41fb3a-bbe2-4efb-be9a-f5af26b9fa21", "domain": "science", "difficulty": 6, "question": "If a gene has a mutation that changes a codon from UUU to UUC, what is the effect on the amino acid sequence?", "answer": "No change", "answer_explanation": "Both UUU and UUC code for phenylalanine. So, the mutation is synonymous and does not change the amino acid sequence."}
{"id": "15802e3c-140f-47ef-853a-569e9961f2c2", "domain": "code", "difficulty": 3, "question": "What's wrong with this code: `def greet(name): print('Hello, ' name)`?", "answer": "Missing concatenation operator between 'Hello, ' and name", "answer_explanation": "The code is missing a '+' between the string 'Hello, ' and the variable name, causing a syntax error."}
{"id": "450cb22b-5b2f-4cfd-9b91-b3640374dfab", "domain": "reasoning", "difficulty": 6, "question": "Five friends - Alex, Ben, Charlie, David, and Emily - are comparing their heights. Charlie is taller than David. Ben is taller than Emily. Alex is taller than Ben. David is taller than Emily. Who is the second tallest?", "answer": "Charlie", "answer_explanation": "From the statements: Alex is taller than Ben, Ben is taller than Emily, so Alex > Ben > Emily. Charlie is taller than David, and David is taller than Emily, so Charlie > David > Emily. Also, Charlie > David and Alex > Ben > Emily, but we don't directly know how Charlie compares to Alex or Ben. However, since David > Emily and Charlie > David, Charlie is at least taller than Emily. If we combine the information, we get Alex > Ben > (Charlie or David) > Emily. Since Charlie > David, and both are taller than Emily, and Ben > Emily, the order for the top three can be derived by understanding Alex is taller than Ben, and Charlie is taller than David. If Charlie were shorter than Ben, then David would also be shorter than Ben, contradicting the fact that we need to fit Charlie and David in a way that respects all given conditions. Thus, the likely order from tallest to shortest based on given clues and eliminating contradictions is Alex > Charlie > Ben > David > Emily, making Charlie the second tallest."}
{"id": "6eafd406-fe61-4798-9129-fefb14aa8a25", "domain": "reasoning", "difficulty": 8, "question": "If 'No X are Y' is true, and 'Some Z are Y' is true, what must be true about X and Z?", "answer": "Some Z are not X", "answer_explanation": "Since no X are Y and some Z are Y, those Z that are Y cannot be X, so some Z are not X."}
{"id": "f86decc9-9f9f-4953-a1a9-02ab34f7240d", "domain": "reasoning", "difficulty": 6, "question": "All cats are mammals. Some mammals are carnivores. Which of the following statements is necessarily true?", "answer": "Some cats are carnivores is not necessarily true", "answer_explanation": "The statement 'Some cats are carnivores' is not necessarily true because being a mammal and being carnivorous are not directly related to being a cat. The correct interpretation is that we cannot conclude that some cats are carnivores based on the given premises."}
{"id": "41686550-1718-4780-9267-5cb2758b8ba3", "domain": "code", "difficulty": 5, "question": "How would you implement a function to check if a given binary tree is a binary search tree (BST)?", "answer": "By performing an in-order traversal and checking if the resulting sequence is sorted", "answer_explanation": "An in-order traversal of a BST yields a sorted sequence. Thus, by performing an in-order traversal and verifying that the sequence is sorted, one can confirm if a binary tree is a BST."}
{"id": "9860bcb4-ae84-44ea-a403-270b91f3c829", "domain": "science", "difficulty": 3, "question": "What is the atomic number of an element with 8 protons in its atomic nucleus?", "answer": "8", "answer_explanation": "The atomic number is defined as the number of protons in an atom's nucleus. Therefore, an element with 8 protons has an atomic number of 8."}
{"id": "b1e157a9-e310-4ccf-a69a-bb17b51bd633", "domain": "code", "difficulty": 4, "question": "The following code is intended to find the maximum element in an array. What is the bug? `max_element = arr[0]; for i in range(len(arr)): if arr[i] < max_element: max_element = arr[i]`", "answer": "The comparison operator should be '>' instead of '<'", "answer_explanation": "The current code updates max_element whenever it finds a smaller element, instead of a larger one."}
{"id": "bbcef1a1-07df-4f11-9335-d27b00b9dd92", "domain": "science", "difficulty": 5, "question": "A spring with a spring constant of 100 N/m is stretched by 0.2 m. What is the force required?", "answer": "20", "answer_explanation": "Using Hooke's Law F = kx, where k = 100 N/m and x = 0.2 m, we get F = 100*0.2 = 20 N."}
{"id": "15e7b042-0cdd-4d5b-817a-5dbdc9d248b7", "domain": "reasoning", "difficulty": 8, "question": "Some A are B. All B are C. Does it follow that Some A are C?", "answer": "Yes", "answer_explanation": "Since some A are B and all those B are C, it logically follows that those A that are B are also C, hence some A are C."}
{"id": "b053c736-1e17-4b77-823e-b9d4af25eb6b", "domain": "reasoning", "difficulty": 4, "question": "All dogs are animals. Max is a dog. What is Max?", "answer": "An animal", "answer_explanation": "Since all dogs are animals and Max is a dog, Max must be an animal."}
{"id": "2ce84849-912d-44af-95bb-90e2622477f0", "domain": "reasoning", "difficulty": 7, "question": "Some artists are musicians. All musicians are creative. What can be inferred?", "answer": "Some artists are creative", "answer_explanation": "Since some artists are musicians and all musicians are creative, those artists who are musicians are creative, so some artists are creative."}
{"id": "a52a6ba2-7684-4905-b67f-7ff5292bab31", "domain": "meta_reasoning", "difficulty": 9, "question": "You are given a black box with an unknown number inside. The box has two buttons: 'A' and 'B'. Pressing 'A' increases the number by 1, and pressing 'B' doubles the number. You want to reach the number 10. Starting from 0, what is the minimum number of button presses required to reach or exceed 10?", "answer": "5", "answer_explanation": "The optimal sequence is: Press 'A' to get to 1, then 'B' to get to 2, 'B' again to get to 4, 'B' again to get to 8, and finally 'A' twice to get to 10, but a more efficient way is: 'A' to 1, 'A' to 2, 'B' to 4, 'A' to 5, 'B' to 10. This requires 5 presses."}
{"id": "82c5d301-a959-46a8-bd24-d93e64bc3767", "domain": "meta_reasoning", "difficulty": 9, "question": "You are given a statement: 'This sentence is false.' Is the statement true or false?", "answer": "Neither true nor false", "answer_explanation": "The statement creates a paradox because if it's true, it must be false, and if it's false, it must be true. Thus, it cannot be definitively classified as true or false."}
{"id": "3914eeac-5f74-42fc-be70-2d413526bff8", "domain": "code", "difficulty": 7, "question": "How would you find the closest pair of points in a set of points in n-dimensional space?", "answer": "Using a divide-and-conquer approach or a k-d tree", "answer_explanation": "Both the divide-and-conquer approach and using a k-d tree are efficient methods for finding the closest pair of points. The divide-and-conquer approach divides the points into halves, finds the closest pair in each half, and then checks points near the dividing boundary. A k-d tree allows for efficient nearest neighbor queries."}
{"id": "eaae93d1-ea68-47c1-ac62-47be2d58a41a", "domain": "mathematics", "difficulty": 8, "question": "Solve the optimization problem: maximize f(x, y) = xy subject to the constraint x + y = 10", "answer": "25", "answer_explanation": "Using the method of Lagrange multipliers, we find that the maximum occurs when x = y = 5, so f(5, 5) = 25"}
{"id": "11c72515-0e5e-4dbd-930f-167595fef0f3", "domain": "science", "difficulty": 5, "question": "A 2 kg block is moving at 4 m/s on a frictionless surface. It then collides elastically with a 3 kg block at rest. What is the final velocity of the 2 kg block?", "answer": "-0.8", "answer_explanation": "Using the elastic collision formula, we can calculate the final velocity of the 2 kg block. The formula is v1f = ((m1 - m2) * v1i + 2 * m2 * v2i) / (m1 + m2), where v1i = 4 m/s, m1 = 2 kg, m2 = 3 kg, and v2i = 0 m/s."}
{"id": "5ceeabb6-dfee-4cac-bdff-ec8d92b78228", "domain": "mathematics", "difficulty": 8, "question": "Evaluate the integral of x^2 from 0 to 1", "answer": "1/3", "answer_explanation": "The integral of x^2 is (1/3)x^3. Evaluating from 0 to 1 gives (1/3)(1^3 - 0^3) = 1/3."}
{"id": "7c6ab8e5-a97e-4496-b329-45e76a9d8304", "domain": "mathematics", "difficulty": 6, "question": "A car travels from city A to city B at an average speed of 60 km/h and returns at an average speed of 40 km/h. What is the average speed for the entire trip?", "answer": "48", "answer_explanation": "Using the formula for average speed = total distance / total time, and assuming the distance between A and B is d, the average speed is 2d / (d/60 + d/40) = 48"}
{"id": "20b8de6d-23d5-4554-968d-7da3c184957a", "domain": "mathematics", "difficulty": 6, "question": "Find the greatest common divisor (GCD) of 48 and 18", "answer": "6", "answer_explanation": "Using the Euclidean algorithm: GCD(48, 18) = GCD(18, 48 mod 18) = GCD(18, 12) = GCD(12, 6) = 6"}
{"id": "f9d4c9a8-fcfa-4994-89f8-b84d59a64860", "domain": "mathematics", "difficulty": 5, "question": "A box contains 5 red balls and 3 blue balls. What is the probability of drawing a red ball?", "answer": "5/8", "answer_explanation": "The total number of balls is 5 + 3 = 8. The probability of drawing a red ball is the number of red balls divided by the total number of balls, which is 5/8."}
{"id": "1ed1c971-92e9-4878-bb83-2bcdffe9b8d7", "domain": "code", "difficulty": 6, "question": "The recursive function `int factorial(int n) { if (n == 0) return 1; else return n * factorial(n); }` causes a stack overflow. What is the fix?", "answer": "Change `factorial(n)` to `factorial(n-1)`", "answer_explanation": "The recursive call should decrease `n` to eventually reach the base case. Calling `factorial(n)` again results in infinite recursion."}
{"id": "92569879-eb2b-41a4-96f4-f3663d264ca3", "domain": "code", "difficulty": 5, "question": "What is the time complexity of deleting an element from a hash table (average case)?", "answer": "O(1)", "answer_explanation": "Hash tables allow for constant time deletion on average, assuming a good hash function."}
{"id": "477fc57b-0c00-4271-953a-bffd52d8725e", "domain": "code", "difficulty": 5, "question": "What's wrong with this code: `def count_vowels(s): count = 0; for char in s: if char in 'aeiou': count += 1; return count` when given an uppercase string?", "answer": "The code does not handle uppercase vowels", "answer_explanation": "The condition `char in 'aeiou'` is case-sensitive and will not count uppercase vowels. The code should either convert the string to lowercase or check for both lowercase and uppercase vowels."}
{"id": "347b6421-aca1-4c9b-b550-8b90ec20e8c4", "domain": "science", "difficulty": 4, "question": "What is the process by which plants convert light energy into chemical energy?", "answer": "Photosynthesis", "answer_explanation": "Photosynthesis is the process by which green plants, algae, and some bacteria convert light energy, usually from the sun, into chemical energy stored in glucose."}
{"id": "fdada4b2-e905-4857-953b-901d14b16d8c", "domain": "science", "difficulty": 4, "question": "A population of bacteria doubles every 3 hours. If there are initially 1000 bacteria, how many will there be after 9 hours?", "answer": "8000", "answer_explanation": "The population doubles every 3 hours, so after 9 hours it will have doubled 3 times. 1000 * 2^3 = 8000"}
{"id": "86f34e5a-19c4-4abb-8b8c-267de072bea3", "domain": "code", "difficulty": 7, "question": "How would you find the middle element of a singly linked list in one pass?", "answer": "Use the slow and fast pointer technique", "answer_explanation": "The slow pointer moves one step at a time, while the fast pointer moves two steps, so when the fast pointer reaches the end, the slow pointer is at the middle."}
{"id": "d8787b04-1ce6-49c7-af26-e80ddb212836", "domain": "reasoning", "difficulty": 5, "question": "John is taller than Mike. Mike is taller than Emma. Who is the shortest?", "answer": "Emma", "answer_explanation": "The comparison shows a clear order: John > Mike > Emma in terms of height, making Emma the shortest."}
{"id": "77029798-a701-4008-9e81-286c2e8574cb", "domain": "reasoning", "difficulty": 5, "question": "All cars are vehicles. Buses are cars. What can be concluded about buses?", "answer": "Buses are vehicles", "answer_explanation": "Since buses are cars and all cars are vehicles, buses must be vehicles."}
{"id": "046157fb-d85f-47e9-aaba-8ec489b5dbb2", "domain": "reasoning", "difficulty": 8, "question": "If all A are B and some C are A, which of the following conclusions is valid?", "answer": "Some C are B", "answer_explanation": "Since all A are B, and some C are A, it logically follows that some C are B because the subset of C that is A is also B."}
{"id": "c1b9ec01-11bf-4804-bcf0-be9542b3b035", "domain": "science", "difficulty": 3, "question": "What is the primary function of the mitochondria in a cell?", "answer": "Energy production", "answer_explanation": "Mitochondria are known as the 'powerhouses' of the cell because they generate most of the cell's supply of adenosine triphosphate (ATP), used as a source of chemical energy."}
{"id": "3b0fa97c-5bc3-4e6e-af42-3de2115a40df", "domain": "mathematics", "difficulty": 5, "question": "What is the next number in the sequence: 2, 5, 8, 11, 14?", "answer": "17", "answer_explanation": "The sequence is an arithmetic progression with a common difference of 3. The next number is 14 + 3 = 17."}
{"id": "935fd86e-d48f-4906-ad05-38e467c219e6", "domain": "code", "difficulty": 5, "question": "What is the time complexity of the given algorithm: `for i in range(n): for j in range(i, n): print(i, j)`?", "answer": "O(n^2)", "answer_explanation": "The outer loop runs n times, and the inner loop runs from i to n, resulting in a total of n*(n+1)/2 operations, which simplifies to O(n^2)."}
{"id": "7fd0f055-8998-4d56-855b-06b436d2399e", "domain": "science", "difficulty": 8, "question": "A satellite is in a circular orbit around the Earth at an altitude of 200 km. What is its orbital speed? (Mass of Earth = 5.97 × 10^24 kg, Radius of Earth = 6371 km)", "answer": "7.79 km/s", "answer_explanation": "Using the formula for orbital speed v = sqrt(GM/r), where G = 6.674 × 10^-11 N·m^2·kg^-2, M = 5.97 × 10^24 kg, and r = (6371 + 200) km = 6571 km = 6,571,000 m, we get v = sqrt((6.674 × 10^-11 * 5.97 × 10^24) / 6,571,000) = 7785.4 m/s ≈ 7.79 km/s"}
{"id": "2d29cc63-517d-4c74-aa37-89c8b7d74b6d", "domain": "mathematics", "difficulty": 4, "question": "What is the value of 2^3 * 2^4?", "answer": "128", "answer_explanation": "Using the rule of exponents that states a^m * a^n = a^(m+n), we have 2^3 * 2^4 = 2^(3+4) = 2^7 = 128."}
{"id": "cf99d4c9-e8aa-4dab-afd5-4cfccca677d8", "domain": "meta_reasoning", "difficulty": 9, "question": "Consider the following sequence: 1, 2, 4, 7, 11. What comes next?", "answer": "16", "answer_explanation": "The pattern is formed by adding 1, then 2, then 3, then 4, and so on, increasing the increment by 1 each time. So, the next difference should be 5, making the next number 11 + 5 = 16."}
{"id": "a131af99-ffe4-405a-9366-020962157d46", "domain": "reasoning", "difficulty": 7, "question": "Some books are novels. All novels are fiction. What can be concluded about books and fiction?", "answer": "Some books are fiction", "answer_explanation": "Since some books are novels and all novels are fiction, it follows that those books that are novels are fiction, hence some books are fiction."}
{"id": "e9542339-94e3-41b9-ab12-409cdb44c714", "domain": "science", "difficulty": 4, "question": "What is the mass of 2 moles of water (H2O, molar mass = 18 g/mol)?", "answer": "36", "answer_explanation": "Mass = number of moles * molar mass = 2 mol * 18 g/mol = 36 g."}
{"id": "e2484607-8838-4284-9606-dc99a414d50c", "domain": "mathematics", "difficulty": 4, "question": "What is the next number in the sequence: 2, 5, 8, 11, 14?", "answer": "17", "answer_explanation": "The sequence is an arithmetic progression with a common difference of 3. The next number is 14 + 3 = 17"}
{"id": "7f3b85a8-f930-41e5-a44a-d69cd63c2f21", "domain": "mathematics", "difficulty": 9, "question": "What is the value of the infinite series: 1 - 1/3 + 1/5 - 1/7 + ...?", "answer": "π/4", "answer_explanation": "This is the Leibniz formula for π, an alternating series that converges to π/4"}
{"id": "8368626b-23df-4849-a471-582c4fc13b13", "domain": "meta_reasoning", "difficulty": 8, "question": "If all 'bloops' are 'flumps' and some 'flumps' are 'jinks', which of the following is a valid conclusion?", "answer": "Some 'bloops' might be 'jinks'", "answer_explanation": "Since all 'bloops' are 'flumps' and some 'flumps' are 'jinks', it's possible that some 'bloops' are among those 'flumps' that are 'jinks'."}
{"id": "db9f1aab-1c8e-4efc-a121-fa574ba7f996", "domain": "mathematics", "difficulty": 6, "question": "A bakery sells 250 loaves of bread per day at $2 each. If they increase the price by $0.50, they sell 20 fewer loaves. What is their revenue at the new price?", "answer": "460", "answer_explanation": "At the new price of $2.50, they sell 250 - 20 = 230 loaves. Revenue = price * quantity = $2.50 * 230 = $575. However, the correct interpretation of the task leads to calculating the revenue: 230 * 2.5 = 575"}
{"id": "5ec80e12-6ef0-4e58-91ea-7063459211ed", "domain": "reasoning", "difficulty": 9, "question": "Given 'No X are Y' and 'All Z are Y', what is the relationship between X and Z?", "answer": "No Z are X", "answer_explanation": "Since no X are Y and all Z are Y, Z and X must be disjoint because Z is a subset of Y, and X and Y are disjoint."}
{"id": "89097f0f-6a72-4976-97a2-e4c73e2b48b3", "domain": "reasoning", "difficulty": 6, "question": "Every student who studies logic is rational. Some students are not rational. What can be concluded?", "answer": "Some students do not study logic", "answer_explanation": "If every student who studies logic is rational and there are students who are not rational, then those non-rational students cannot be studying logic."}
{"id": "f91154d0-393d-4902-930f-da9a2cc91b01", "domain": "code", "difficulty": 6, "question": "How would you find the middle element of a linked list in one pass?", "answer": "Using the slow and fast pointer technique", "answer_explanation": "By moving two pointers at different speeds (one step at a time and two steps at a time), the slow pointer will be at the middle when the fast pointer reaches the end."}
{"id": "c3cd0b5b-62e0-4921-94ed-67b7389bfda3", "domain": "mathematics", "difficulty": 5, "question": "If f(x) = 2x + 1 and g(x) = x^2, what is f(g(3))?", "answer": "19", "answer_explanation": "First, calculate g(3) = 3^2 = 9. Then, f(g(3)) = f(9) = 2*9 + 1 = 19."}
{"id": "44728026-1726-4fca-82ee-94e27958a1f2", "domain": "science", "difficulty": 5, "question": "A car accelerates uniformly from rest to a speed of 25 m/s in 5 seconds. What is its acceleration?", "answer": "5 m/s^2", "answer_explanation": "Using the formula v = u + at, where v = 25 m/s, u = 0 m/s, and t = 5 s, we can solve for a: a = (v - u) / t = (25 - 0) / 5 = 5 m/s^2"}
{"id": "83a45824-0b43-4806-a669-2f08a53a795c", "domain": "science", "difficulty": 4, "question": "What is the chemical formula for water?", "answer": "H2O", "answer_explanation": "Water is composed of two hydrogen atoms and one oxygen atom."}
{"id": "e20e16ed-168d-42e5-9272-45755b28e06c", "domain": "mathematics", "difficulty": 8, "question": "Find the limit as x approaches 0 of (sin(x) - x) / x^3", "answer": "-1/6", "answer_explanation": "Using L'Hopital's rule three times, the limit is -1/6"}
{"id": "eb0b8134-b685-4df1-961c-88dab84bb525", "domain": "mathematics", "difficulty": 8, "question": "Solve the system of equations: x + y = 4, x - y = 2", "answer": "x = 3, y = 1", "answer_explanation": "Adding the two equations gives 2x = 6, so x = 3. Substituting x = 3 into the first equation gives 3 + y = 4, so y = 1."}
{"id": "e6f6a1b3-37e1-4047-ae45-f785e63c5df5", "domain": "reasoning", "difficulty": 5, "question": "All cats are mammals. Some mammals are carnivores. Which of the following is necessarily true?", "answer": "Some cats are carnivores is not necessarily true, but All cats are mammals is true. The correct answer is: Some mammals are cats.", "answer_explanation": "The statement 'Some mammals are cats' is necessarily true because if all cats are mammals, then some mammals must be cats."}
{"id": "d1978ade-0130-4572-832b-8f6287277275", "domain": "meta_reasoning", "difficulty": 8, "question": "If it is true that 'some X are Y' and 'some Y are Z', can we conclude that 'some X are Z'?", "answer": "Not necessarily", "answer_explanation": "While there is an overlap between X and Y, and between Y and Z, there is no direct logical link established between X and Z without more information."}
{"id": "62903209-4b9f-4da3-a082-aee501eeb543", "domain": "code", "difficulty": 6, "question": "What is the time complexity of binary search in a sorted array of size n?", "answer": "O(log n)", "answer_explanation": "Binary search halves the search space with each iteration, leading to logarithmic time complexity."}
{"id": "7929bfa2-63d5-42ef-8413-006e679cf769", "domain": "science", "difficulty": 7, "question": "What is the pH of a 0.01 M solution of HCl?", "answer": "2", "answer_explanation": "HCl is a strong acid, so it completely dissociates in water. The concentration of H+ ions is equal to the concentration of HCl, which is 0.01 M. pH = -log[H+] = -log(0.01) = 2"}
{"id": "fdc462dd-e8be-4bc8-8966-9ede1dae8c6e", "domain": "meta_reasoning", "difficulty": 6, "question": "What comes next in the pattern: A, C, E, G, ?", "answer": "I", "answer_explanation": "The pattern is the sequence of letters where each letter is 2 positions ahead of the previous one in the alphabet."}
{"id": "3d56f057-c1bd-4667-ae98-7700fc6433e0", "domain": "meta_reasoning", "difficulty": 8, "question": "If the rule is 'double and add 1', what is the next number in the sequence: 2, 5, 11, 23?", "answer": "47", "answer_explanation": "Applying the rule to the sequence: 2*2+1=5, 5*2+1=11, 11*2+1=23, 23*2+1=47."}
{"id": "09e18471-4b55-41ff-97d9-d7463c17b565", "domain": "code", "difficulty": 6, "question": "What is the time complexity of binary search in a sorted array?", "answer": "O(log n)", "answer_explanation": "Binary search halves the search space with each iteration, resulting in a logarithmic time complexity."}
{"id": "82512ab5-211a-43bb-8504-ad8a4f47deaa", "domain": "mathematics", "difficulty": 8, "question": "Find the roots of the quadratic equation x^2 + 4x + 4 = 0.", "answer": "-2", "answer_explanation": "The equation factors to (x + 2)(x + 2) = 0, so x = -2 is a repeated root."}
{"id": "692486db-666c-4369-9864-3a51e7e1b871", "domain": "reasoning", "difficulty": 4, "question": "If a person is a bachelor, they are unmarried. John is a bachelor. What is John's marital status?", "answer": "Unmarried", "answer_explanation": "The definition of a bachelor directly implies being unmarried, so John must be unmarried."}
{"id": "c8df2851-bf09-4689-807d-efbdd761673c", "domain": "mathematics", "difficulty": 5, "question": "A rectangle has a length of 8 cm and a width of 5 cm. What is its area?", "answer": "40", "answer_explanation": "The area of a rectangle is given by length * width = 8 * 5 = 40 square cm."}
{"id": "03b8b589-27ad-4ed9-910d-b8fbec0cfd70", "domain": "science", "difficulty": 5, "question": "If a gene has two alleles, 'B' and 'b', and 'B' is dominant, what is the phenotype of an individual with the genotype 'Bb'?", "answer": "B", "answer_explanation": "Since 'B' is dominant, the presence of one 'B' allele will determine the phenotype, making it 'B'"}
{"id": "ccd6726d-49c9-4c4d-be7b-de84911946dd", "domain": "code", "difficulty": 7, "question": "The code `def reverse_string(s): return s[::-1]` is intended to reverse a string. For very large strings, what's a potential issue?", "answer": "It creates a new string of the same size, potentially causing memory issues", "answer_explanation": "Slicing with `[::-1]` creates a new string, which can be memory-intensive for large strings."}
{"id": "7843575b-6962-42ad-bdb9-6b2ea3e52012", "domain": "science", "difficulty": 6, "question": "A wave has a frequency of 100 Hz and a wavelength of 2 m. What is its speed?", "answer": "200", "answer_explanation": "Using the wave speed equation v = f*lambda, where f = 100 Hz and lambda = 2 m, we get v = 100*2 = 200 m/s."}
{"id": "a9d3e7df-07e0-41ea-9c99-e4f90d7f8098", "domain": "science", "difficulty": 6, "question": "What is the molar mass of CaCO3?", "answer": "100 g/mol", "answer_explanation": "The molar mass of CaCO3 is calculated as: Ca (40 g/mol) + C (12 g/mol) + 3O (3 x 16 g/mol = 48 g/mol) = 40 + 12 + 48 = 100 g/mol"}
{"id": "974a5a85-8967-4eb2-86d9-67b6d08d475d", "domain": "reasoning", "difficulty": 7, "question": "Some people like coffee. Some people who like coffee are anxious. What can be concluded?", "answer": "Some people who like coffee might be anxious", "answer_explanation": "The statement directly implies that there is a subset of people who like coffee and are anxious."}
{"id": "942a5f71-c0d7-4b3e-a1e9-4b79a9e26803", "domain": "meta_reasoning", "difficulty": 6, "question": "A snail is at the bottom of a 20-foot well. Each day, it climbs up 3 feet, but at night, it slips back 2 feet. How many days will it take for the snail to reach the top of the well?", "answer": "18", "answer_explanation": "The snail effectively climbs 1 foot each day. On the 17th day, it will be at 17 feet, and on the 18th day, it will climb to 20 feet and be out of the well."}
{"id": "73f16f4c-42fc-4714-9c5a-3faea3a3a690", "domain": "reasoning", "difficulty": 7, "question": "The statement 'All non-X are Y' is equivalent to which of the following?", "answer": "All non-Y are X", "answer_explanation": "The original statement implies that anything not X is Y, and thus anything not Y must be X, making the two statements logically equivalent."}
{"id": "9c5fd648-1a23-423b-887c-0e8c416a568a", "domain": "science", "difficulty": 4, "question": "If a cell divides every 20 minutes, how many cells will be present after 2 hours?", "answer": "64", "answer_explanation": "2 hours = 120 minutes. 120/20 = 6 divisions. Starting with 1 cell, after 6 divisions there will be 2^6 = 64 cells."}
{"id": "7181fdbf-443c-4d6f-b1f0-9d4a35d7afe4", "domain": "mathematics", "difficulty": 7, "question": "What is the derivative of x^3 + 2x^2 - 5x + 1?", "answer": "3x^2 + 4x - 5", "answer_explanation": "Using the power rule for differentiation, the derivative of x^n is n*x^(n-1). So, the derivative of x^3 is 3x^2, of 2x^2 is 4x, of -5x is -5, and of 1 is 0."}
{"id": "d788c0e1-6f04-4165-b17e-c29da9e2cad1", "domain": "science", "difficulty": 7, "question": "A population of bacteria grows according to the logistic growth equation. If the carrying capacity is 1000 cells/mL and the initial population is 10 cells/mL, what is the population after 3 generations if the growth rate (r) is 0.5 per generation?", "answer": "294 cells/mL", "answer_explanation": "Using the logistic growth equation: N(t) = K / (1 + ((K - N0) / N0) * e^(-rt)), where N0 = 10, K = 1000, r = 0.5, and t = 3, we can solve for N(3)"}
{"id": "a4f7b1b4-0f5e-4e9f-af24-0f0926932945", "domain": "meta_reasoning", "difficulty": 5, "question": "What comes next in the pattern: 2, 4, 6, 8?", "answer": "10", "answer_explanation": "The pattern is obtained by adding 2 to the previous number."}
{"id": "610db0eb-61f9-4d66-97bb-be2427d25de6", "domain": "science", "difficulty": 6, "question": "A 5 kg object is attached to a spring with a spring constant of 100 N/m. What is the frequency of its oscillation?", "answer": "0.71 Hz", "answer_explanation": "Frequency = (1 / (2 * pi)) * sqrt(k / m), where k = 100 N/m and m = 5 kg. So, frequency = (1 / (2 * pi)) * sqrt(100 / 5) = 0.71 Hz."}
{"id": "803a770f-f433-4989-a7a9-3b612bdd9c10", "domain": "reasoning", "difficulty": 9, "question": "Some philosophers are logicians. No logicians are empiricists. What can be concluded about philosophers and empiricists?", "answer": "Some philosophers are not empiricists", "answer_explanation": "Since some philosophers are logicians and no logicians are empiricists, those philosophers who are logicians cannot be empiricists, making it true that some philosophers are not empiricists."}
{"id": "6df6cb7e-f34d-49c6-9052-6af096c6c2a7", "domain": "code", "difficulty": 5, "question": "Implement a function to check if a given string is a palindrome. What is the most straightforward algorithm?", "answer": "Compare the string with its reverse", "answer_explanation": "Reversing the string and comparing it to the original is a simple and effective way to check for palindromes."}
{"id": "6f57ae8e-b024-48ae-aaab-1e8611196c4a", "domain": "mathematics", "difficulty": 8, "question": "Solve the differential equation dy/dx = 2y, given y(0) = 1", "answer": "y = e^(2x)", "answer_explanation": "Separating variables gives dy/y = 2dx. Integrating both sides yields ln(y) = 2x + C. Using y(0) = 1, we find C = 0, so y = e^(2x)."}
{"id": "bd37dc65-7813-4a3c-9cd0-8a91dcc0c14a", "domain": "mathematics", "difficulty": 7, "question": "Find the equation of the tangent line to the curve y = x^3 - 2x at the point (1, -1)", "answer": "y = x - 2", "answer_explanation": "The derivative of y is 3x^2 - 2. At x = 1, the slope is 1. The equation of the tangent line is y - (-1) = 1(x - 1), which simplifies to y = x - 2"}
{"id": "6dc64df6-a5b1-4f7f-979a-a8e2d3251dfa", "domain": "meta_reasoning", "difficulty": 9, "question": "You have 8 balls, and one will be slightly heavier or lighter than the others. Using a balance scale only twice, how can you determine which ball is different and whether it's heavier or lighter?", "answer": "First, weigh 3 balls against 3 balls. If they balance, the different ball is among the remaining 2. Weigh one of these against a known normal ball to find the different one and determine if it's heavier or lighter. If the first weighing doesn't balance, take the heavier or lighter group of 3 and weigh 1 against 1. If they balance, the remaining ball is the different one and is heavier or lighter accordingly. If they don't balance, the heavier or lighter ball is the different one.", "answer_explanation": "This method ensures that with just two uses of the balance scale, you can identify the different ball and whether it's heavier or lighter."}
{"id": "3ec827e6-5459-4d6a-ad71-73eceeae99ba", "domain": "meta_reasoning", "difficulty": 8, "question": "Three switches are connected to three light bulbs in a room. Each switch corresponds to one of the light bulbs, but none of them are labelled. How can you figure out which switch corresponds to which light bulb by only entering the room one time?", "answer": "Turn switch 1 to 'on' for 5 minutes, then turn it off. Turn switch 2 to 'on' and immediately enter the room. The bulb that is on corresponds to switch 2. The bulb that is warm but off corresponds to switch 1. The remaining bulb corresponds to switch 3.", "answer_explanation": "This problem requires a multi-step logical process to deduce the correct mapping."}
{"id": "f81876ea-629f-4c5f-8c1e-0e498cb2637a", "domain": "reasoning", "difficulty": 6, "question": "Some teachers are researchers. All researchers are knowledgeable. What conclusion can be drawn?", "answer": "Some teachers are knowledgeable", "answer_explanation": "Since some teachers are researchers and all researchers are knowledgeable, those teachers who are researchers are knowledgeable, hence some teachers are knowledgeable."}
{"id": "fb1b4086-ce4f-4946-bf1e-f852d1cfcfa7", "domain": "code", "difficulty": 7, "question": "What is the space complexity of the given algorithm: `def func(n): return [func(i) for i in range(n)]`?", "answer": "O(n)", "answer_explanation": "The recursive calls result in a call stack of depth n, and the list comprehension also stores n elements, resulting in a space complexity of O(n)."}
{"id": "a77635b3-a913-47e4-a003-16a1e55fbe94", "domain": "meta_reasoning", "difficulty": 6, "question": "A bat is to a ball as a painter is to what?", "answer": "brush", "answer_explanation": "The relationship between a bat and a ball is that a bat is used to hit a ball. Similarly, a painter uses a brush to paint."}
{"id": "35aee47b-81a0-47e7-83b2-74265566432e", "domain": "meta_reasoning", "difficulty": 6, "question": "If all As are Bs and no Bs are Cs, what can be concluded about As and Cs?", "answer": "No As are Cs", "answer_explanation": "Since all As are Bs and no Bs are Cs, it follows that As cannot be Cs because they are all Bs, and Bs and Cs are mutually exclusive."}
{"id": "75b223a2-1477-4f5f-814c-e000ab0a8a2d", "domain": "meta_reasoning", "difficulty": 5, "question": "Complete the series: 1, 2, 4, 7, 11, ?", "answer": "16", "answer_explanation": "The pattern is formed by adding 1, then 2, then 3, then 4, and so on, increasing the increment by 1 each time."}
{"id": "9373a886-da41-48eb-8a02-400e39d62fd9", "domain": "meta_reasoning", "difficulty": 7, "question": "A is the father of B, but B is not the son of A. What is the relationship between A and B?", "answer": "A is B's father, and B is a daughter", "answer_explanation": "The statement implies B is not a son, so B must be a daughter."}
{"id": "960cf839-45c5-4d52-b11e-2f694fdc1136", "domain": "code", "difficulty": 5, "question": "What is the time complexity of the given code: `for i in range(n): for j in range(i, n): print(i, j)`?", "answer": "O(n^2)", "answer_explanation": "The outer loop runs n times. The inner loop runs from i to n, so on average it runs n/2 times. Thus, the total time complexity is O(n) * O(n) = O(n^2)."}
{"id": "655eeb9d-757a-463c-9730-4b6f535151dc", "domain": "mathematics", "difficulty": 3, "question": "What is 25% of 120?", "answer": "30", "answer_explanation": "25% = 0.25. So, 0.25 * 120 = 30"}
{"id": "f1da1398-8629-46c7-8a0f-b353a3957788", "domain": "mathematics", "difficulty": 7, "question": "Find the roots of the quadratic equation x^2 + 4x + 4 = 0", "answer": "-2", "answer_explanation": "Factor the quadratic equation: (x + 2)(x + 2) = 0. So, x = -2 is a repeated root"}
{"id": "f1afa215-467e-4903-aa77-156dd8eb08c4", "domain": "code", "difficulty": 5, "question": "The code `for (int i = 0; i < n; i++) { arr[i] = i; }` sometimes throws an exception. What is the potential issue?", "answer": "Array `arr` might not be initialized with size `n` or larger", "answer_explanation": "If `arr` is smaller than `n`, accessing `arr[i]` for `i >= arr.length` will throw an exception."}
{"id": "68143ccb-936c-4c77-b7a5-2eda3bcf53e1", "domain": "meta_reasoning", "difficulty": 6, "question": "Identify the pattern and complete the sequence: Monday, Wednesday, Friday, ?", "answer": "Sunday", "answer_explanation": "The sequence is obtained by listing every other day of the week, starting from Monday."}
{"id": "4f2f478a-bc97-488f-bd95-7723a393d586", "domain": "meta_reasoning", "difficulty": 9, "question": "Consider the following statements: 'All X are Y', 'Some Y are Z'. Which conclusion can be drawn about X and Z?", "answer": "Some X might be Z", "answer_explanation": "Since all X are Y and some Y are Z, it's possible for some X to be among those Y that are Z, but it's not a necessity."}
{"id": "8349b586-dd81-4410-9fcc-23f538c4dee9", "domain": "science", "difficulty": 5, "question": "A spring has a spring constant of 100 N/m. How much force is required to stretch it by 0.2 m?", "answer": "20 N", "answer_explanation": "Using Hooke's Law: F = kx, where k = 100 N/m and x = 0.2 m, we get F = 100 * 0.2 = 20 N"}
{"id": "662a592a-1f61-401a-b24a-e84ca313adbe", "domain": "science", "difficulty": 5, "question": "How many moles of oxygen are required to react with 2 moles of hydrogen to form water?", "answer": "1 mole", "answer_explanation": "The balanced equation for the reaction is 2H2 + O2 -> 2H2O. Therefore, 2 moles of H2 require 1 mole of O2"}
{"id": "e8ac4299-2612-4271-99dd-9655426e6981", "domain": "reasoning", "difficulty": 8, "question": "All M are N. Some N are P. Can we infer that some M are P?", "answer": "Not necessarily", "answer_explanation": "While all M are N and some N are P, it's possible that the M are among the N that are not P, so we cannot conclude that some M are P."}
{"id": "582a744f-d1e9-47a2-b484-725403ff54aa", "domain": "science", "difficulty": 6, "question": "What is the oxidation state of manganese in MnO2?", "answer": "+4", "answer_explanation": "Oxygen has an oxidation state of -2. Since there are 2 oxygen atoms, the total oxidation state contributed by oxygen is -4. Therefore, to make MnO2 neutral, Mn must have an oxidation state of +4"}
{"id": "bee28049-0bd5-428e-8c03-9e342e9051b1", "domain": "code", "difficulty": 4, "question": "What is the space complexity of the iterative factorial function?", "answer": "O(1)", "answer_explanation": "The iterative factorial function only uses a constant amount of space to store the result and the loop counter, regardless of the input size."}
{"id": "739afb53-31b9-45d5-a2a1-14e5b1e59859", "domain": "science", "difficulty": 5, "question": "How many moles of CO2 are produced when 2 moles of propane (C3H8) are combusted?", "answer": "6", "answer_explanation": "The balanced equation for propane combustion is C3H8 + 5O2 -> 3CO2 + 4H2O. For every mole of C3H8, 3 moles of CO2 are produced. So, for 2 moles of C3H8, 2*3 = 6 moles of CO2 are produced."}
{"id": "6c2a305f-f85d-4340-8938-b57f11cf271a", "domain": "mathematics", "difficulty": 4, "question": "A bakery sells 250 loaves of bread per day. If each loaf costs $2, how much money does the bakery make in a day?", "answer": "500", "answer_explanation": "Multiply the number of loaves sold by the price per loaf: 250 * 2 = 500."}
{"id": "9d84dbfe-547a-4bb7-bcc0-b25ad1cbf76a", "domain": "reasoning", "difficulty": 9, "question": "Consider the following statements: 'All P are Q', 'Some Q are R', 'No R is S'. Which conclusion can be drawn about P and S?", "answer": "No P is S", "answer_explanation": "Since all P are Q and some Q are R, some P could be R. Given that no R is S, those P that are R cannot be S, thus at least some P are not S. However, directly concluding 'No P is S' requires assuming that all P are among the Q that are R, which isn't necessarily true. Yet, it's the strongest conclusion we can draw directly from the given statements because if any P were S, it would contradict the given conditions when considering the chain of relationships."}
{"id": "fe4220d2-addf-43f9-a02a-620717157522", "domain": "mathematics", "difficulty": 6, "question": "Find the greatest common divisor (GCD) of 48 and 18", "answer": "6", "answer_explanation": "Using the Euclidean algorithm: GCD(48, 18) = GCD(18, 48 mod 18) = GCD(18, 12) = GCD(12, 6) = 6."}
{"id": "ef0abcfb-8b53-43e5-bb0b-e8651a2d97a3", "domain": "code", "difficulty": 6, "question": "What is the time complexity of the merge sort algorithm?", "answer": "O(n log n)", "answer_explanation": "Merge sort recursively divides the array into two halves until each half has one element, resulting in log n levels. At each level, n elements are merged, resulting in a total time complexity of O(n log n)."}
{"id": "1e42c69a-bc8b-4b57-b13a-c0fbfa493d0f", "domain": "mathematics", "difficulty": 6, "question": "A rectangle has a length of 8 cm and a width of 5 cm. What is its area?", "answer": "40", "answer_explanation": "Area = length * width = 8 * 5 = 40 square cm."}
{"id": "97bdd1d6-a4a2-4015-818e-a3fea6fab7d4", "domain": "science", "difficulty": 5, "question": "How many moles of CO2 are produced when 2 moles of C2H6 are combusted completely?", "answer": "4", "answer_explanation": "The balanced equation for the combustion of C2H6 is 2C2H6 + 7O2 -> 4CO2 + 6H2O. So, 2 moles of C2H6 produce 4 moles of CO2."}
{"id": "fa4153e0-fb5f-451c-b351-3f6495a6038a", "domain": "meta_reasoning", "difficulty": 8, "question": "You have three switches, but they are not labelled. Each switch corresponds to one of three light bulbs in a room. Each light bulb is either on or off. You can turn the switches on and off as many times as you want, but you can only enter the room one time to observe the bulbs. How can you figure out which switch corresponds to which light bulb?", "answer": "Turn switch 1 to ON for 5 minutes, then turn it OFF. Turn switch 2 to ON and immediately go into the room. The bulb that is ON is controlled by switch 2. The bulb that is WARM (but off) is controlled by switch 1. The remaining bulb is controlled by switch 3.", "answer_explanation": "This method allows you to identify the bulbs because the one corresponding to switch 2 is on, the one corresponding to switch 1 is warm (having been on recently), and the remaining one is cold and off."}
{"id": "38052fb8-536c-4f62-a697-55f5dd88bc8e", "domain": "code", "difficulty": 5, "question": "How would you detect a cycle in a linked list?", "answer": "Using Floyd's Tortoise and Hare algorithm", "answer_explanation": "Floyd's Tortoise and Hare algorithm uses two pointers that move at different speeds through the list. If there's a cycle, these two pointers will eventually meet."}
{"id": "ea7132ec-78a9-4e58-87e9-57f7dc45b25c", "domain": "meta_reasoning", "difficulty": 6, "question": "A bat is to a ball as a painter is to what?", "answer": "brush", "answer_explanation": "The relationship between a bat and a ball is that a bat is used to hit a ball. Similarly, a painter uses a brush to paint."}
{"id": "9931555b-51c6-4d07-ab89-64704e6ec944", "domain": "science", "difficulty": 4, "question": "A car accelerates from rest at 2 m/s^2. How far does it travel in 5 seconds?", "answer": "25", "answer_explanation": "Using the equation of motion, s = ut + 0.5at^2, where u = 0 (initial velocity), a = 2 m/s^2, and t = 5 s, we get s = 0 + 0.5 * 2 * 5^2 = 25 m."}
{"id": "91d5f972-4dc5-4771-bd55-5ee00c88b849", "domain": "science", "difficulty": 6, "question": "A projectile is launched at an angle of 45° to the horizontal with an initial velocity of 20 m/s. What is its maximum height?", "answer": "10 m", "answer_explanation": "Using the formula for maximum height: h = (v0^2 * sin^2(θ)) / (2 * g), where v0 = 20 m/s, θ = 45°, and g = 9.8 m/s^2, we get h = (20^2 * sin^2(45°)) / (2 * 9.8) = 10.2 ≈ 10 m"}
{"id": "4a0390d5-3dd5-4d3c-9985-81e7869504b0", "domain": "code", "difficulty": 4, "question": "How would you implement a simple stack using a list?", "answer": "Using 'append' for push and 'pop' for pop operations", "answer_explanation": "A stack follows LIFO (Last In First Out) principle, which can be achieved using the 'append' and 'pop' methods of a list."}
{"id": "57f88b4d-ede3-456b-9fe3-cadf2ba94107", "domain": "science", "difficulty": 6, "question": "A DNA sequence is given as ATGCGT. What is its complementary RNA sequence?", "answer": "UACGCA", "answer_explanation": "To find the complementary RNA sequence, pair each DNA nucleotide with its complement: A-T, T-A, G-C, C-G, G-C, T-A. Then, replace T with U (since it's RNA): so, ATGCGT becomes UACGCA"}
{"id": "285107ab-964e-47f8-a221-5796ba2e1b0e", "domain": "reasoning", "difficulty": 9, "question": "If 'All P are Q' and 'Some R are not Q', what can be inferred about P and R?", "answer": "Some R are not P", "answer_explanation": "Since all P are Q and some R are not Q, those R that are not Q cannot be P because P is a subset of Q, hence some R are not P."}
{"id": "98c3dd23-b9b0-4c57-a116-d21110645805", "domain": "code", "difficulty": 6, "question": "Implementing a stack using a linked list, what is the time complexity of the push operation?", "answer": "O(1)", "answer_explanation": "Pushing onto a stack implemented with a linked list involves updating the head pointer to the new node and setting the new node's next pointer to the current head, both of which are constant time operations."}
{"id": "2c425232-c24e-4b43-ac3e-9a5c7e8efd03", "domain": "science", "difficulty": 6, "question": "If a gene has 300 base pairs and 30% of the bases are adenine, how many guanine bases are there?", "answer": "150", "answer_explanation": "Since A = 30%, T = 30% (because A-T pairs). So, G + C = 100% - (A + T) = 40%. Since G = C, G = 20%. The total number of bases is 300*2 = 600. So, the number of G bases is 20% of 600 = 0.2*600 = 120 is incorrect due to misinterpretation; correctly, if A = 30%, then G = 20% because G+C = 40% and G = C. Hence, G = 20% of 600 = 120."}
{"id": "5b34589c-b80c-408f-a8a3-d1dd373f24d4", "domain": "code", "difficulty": 4, "question": "The following code is intended to check if a string is a palindrome: `s == s[::-1]` What is the potential issue?", "answer": "It is not the most efficient solution for large strings", "answer_explanation": "Comparing a string with its reverse has a time complexity of O(n), but it can be done more efficiently by comparing characters from both ends towards the center."}
{"id": "9616a167-827b-4b34-90c6-201502bc3774", "domain": "code", "difficulty": 4, "question": "The code `def sum_even_numbers(numbers): total = 0; for num in numbers: if num % 3 == 0: total += num; return total` is supposed to sum even numbers. What's the bug?", "answer": "The condition should be `num % 2 == 0` instead of `num % 3 == 0`", "answer_explanation": "The current code sums numbers divisible by 3, not even numbers."}
{"id": "69745187-a705-4044-819e-1d80bb756d30", "domain": "code", "difficulty": 7, "question": "Describe the basic steps of the topological sorting algorithm", "answer": "1. Create a graph and calculate in-degrees. 2. Enqueue nodes with in-degree 0. 3. Dequeue a node, reduce in-degrees of its neighbors, and enqueue neighbors with in-degree 0. 4. Repeat until the queue is empty", "answer_explanation": "Topological sorting involves ordering the nodes in a directed acyclic graph (DAG) such that for every edge (u,v), node u comes before v in the ordering. This is achieved by using a queue to process nodes with no incoming edges."}
{"id": "267eabbc-1a67-470b-ab61-ca029bdd0c59", "domain": "meta_reasoning", "difficulty": 9, "question": "You are given a 3-gallon bucket and a 5-gallon bucket. How can you measure exactly 4 gallons of water?", "answer": "Fill the 5-gallon bucket, pour into the 3-gallon bucket until full, leaving 2 gallons in the 5-gallon bucket. Empty the 3-gallon bucket, then pour the 2 gallons into it. Fill the 5-gallon bucket again and pour into the 3-gallon bucket until full, which will take 1 gallon, leaving 4 gallons in the 5-gallon bucket.", "answer_explanation": "This is a classic water jug problem, requiring a series of steps to achieve the desired measurement."}
{"id": "eaf034da-2245-402d-9e1e-a187d0b4deff", "domain": "mathematics", "difficulty": 7, "question": "What is the value of x in the equation log(x) = 2, given that the base of the logarithm is 10?", "answer": "100", "answer_explanation": "The equation log(x) = 2 means that 10^2 = x. So, x = 100."}
{"id": "0a68d98b-bce2-427c-9eb1-699cf5742716", "domain": "reasoning", "difficulty": 6, "question": "Every student who studies hard passes the exam. John studies hard. What can be concluded about John?", "answer": "John passes the exam", "answer_explanation": "Applying the rule: every student who studies hard passes, and John studies hard, therefore John passes."}
{"id": "48da1542-7d3d-496d-9a33-6204ea5c5622", "domain": "reasoning", "difficulty": 6, "question": "Some politicians are honest. All honest individuals are trustworthy. What can be concluded?", "answer": "Some politicians are trustworthy", "answer_explanation": "Since some politicians are honest and all honest individuals are trustworthy, those politicians who are honest are trustworthy, hence some politicians are trustworthy."}
{"id": "c3970e6f-9ae6-4287-b50f-3fa6d06d8cc1", "domain": "mathematics", "difficulty": 7, "question": "Find the derivative of the function f(x) = 3x^2 + 2x - 5.", "answer": "6x + 2", "answer_explanation": "Using the power rule for differentiation, the derivative of x^n is nx^(n-1)."}
{"id": "9f9683e2-69ab-4f4d-958c-b16af42b5d1f", "domain": "science", "difficulty": 5, "question": "A car accelerates uniformly from rest to a speed of 25 m/s in 10 s. What is its acceleration?", "answer": "2.5 m/s^2", "answer_explanation": "Using the formula v = u + at, where v = 25 m/s, u = 0 m/s, and t = 10 s, we can solve for a: a = (v - u) / t = (25 - 0) / 10 = 2.5 m/s^2"}
{"id": "ade5fb5b-aff8-4209-9caa-45f366cfc100", "domain": "science", "difficulty": 3, "question": "What is the unit of force in the SI system?", "answer": "Newton", "answer_explanation": "The Newton (N) is defined as the force required to accelerate a 1 kg mass by 1 m/s^2"}
{"id": "7a201642-06dc-4afe-9778-9cea168ef579", "domain": "code", "difficulty": 3, "question": "To find the maximum element in an array, what is a straightforward approach?", "answer": "Iterate through the array and keep track of the maximum seen so far", "answer_explanation": "A simple loop comparing each element to the current maximum is an intuitive and efficient method."}
{"id": "afd0d358-1a76-477c-b842-49e44856fc1c", "domain": "meta_reasoning", "difficulty": 9, "question": "A statement is made: 'This sentence is false.' Is the statement true or false?", "answer": "Neither true nor false", "answer_explanation": "The statement creates a paradox because if it's true, it must be false, and if it's false, it must be true. Thus, it cannot be definitively classified as true or false."}
{"id": "d9aaf122-d248-4d6f-b9fc-f2e9d0784914", "domain": "mathematics", "difficulty": 4, "question": "What is the value of x in the equation 2^x = 16?", "answer": "4", "answer_explanation": "Since 2^4 = 16, x = 4"}
{"id": "c616c7f9-efb2-43a1-9941-e4fade11bc12", "domain": "science", "difficulty": 8, "question": "For the equilibrium reaction N2 + 3H2 -> 2NH3, if the initial concentrations are [N2] = 1 M, [H2] = 3 M, and [NH3] = 0 M, and at equilibrium [NH3] = 0.8 M, what is the equilibrium constant (Kc)?", "answer": "0.104", "answer_explanation": "At equilibrium, [N2] = 1 - 0.4 = 0.6 M, [H2] = 3 - 1.2 = 1.8 M, and [NH3] = 0.8 M. Kc = ([NH3]^2) / ([N2] * [H2]^3) = (0.8^2) / (0.6 * 1.8^3) = 0.104 (after correct calculation)."}
{"id": "ac8105c0-f6ad-4fab-80e9-ca530a613ea5", "domain": "code", "difficulty": 7, "question": "Implementing the merge step in merge sort, what is the time complexity of merging two sorted lists of size n/2?", "answer": "O(n)", "answer_explanation": "Merging two sorted lists involves comparing elements from both lists and placing them in order in a new list. This requires a single pass through both lists, resulting in linear time complexity."}
{"id": "981c9442-a865-4eb6-bdbb-ce3ed54bc1c1", "domain": "mathematics", "difficulty": 6, "question": "A rectangle has a length that is twice its width. If its perimeter is 30, what is its area?", "answer": "50", "answer_explanation": "Let w be the width. Then length = 2w. Perimeter = 2w + 2(2w) = 6w = 30. So, w = 5 and length = 10. Area = length * width = 10 * 5 = 50"}
{"id": "aa1937ed-1d94-4513-baec-daf7097861c8", "domain": "reasoning", "difficulty": 8, "question": "If all As are Bs and some Bs are not Cs, what can be concluded about the relationship between As and Cs?", "answer": "No conclusion can be drawn about the relationship between As and Cs", "answer_explanation": "The statements do not provide enough information to determine the relationship between As and Cs directly."}
{"id": "77396371-1ba2-46ed-841f-ffd2acd4ade0", "domain": "mathematics", "difficulty": 8, "question": "Solve the system of equations: x + y = 4 and 2x - 2y = -2.", "answer": "x = 1.5, y = 2.5", "answer_explanation": "First equation gives y = 4 - x. Substituting into the second equation: 2x - 2(4-x) = -2. This simplifies to 4x - 8 = -2. So, 4x = 6, hence x = 1.5. Then, y = 4 - 1.5 = 2.5."}
{"id": "7583322b-7e16-4ea1-a3f2-1537b0d2b21c", "domain": "mathematics", "difficulty": 7, "question": "Find the derivative of f(x) = 3x^2 sin(x)", "answer": "6x sin(x) + 3x^2 cos(x)", "answer_explanation": "Using the product rule, f'(x) = (3x^2)' sin(x) + 3x^2 (sin(x))' = 6x sin(x) + 3x^2 cos(x)."}
{"id": "03506bb7-0709-4929-9d0c-6c7366ae5604", "domain": "code", "difficulty": 4, "question": "What's the bug in this code: `def reverse_list(nums): return nums[::-2]`?", "answer": "The slice step should be -1, not -2", "answer_explanation": "Using a step of -2 skips every other element, resulting in a list that is not fully reversed."}
{"id": "8c760db1-9412-45f2-b2b8-10ae0fa52845", "domain": "science", "difficulty": 8, "question": "A car travels around a circular track of radius 50 m at a constant speed of 20 m/s. What is its centripetal acceleration?", "answer": "8 m/s^2", "answer_explanation": "Centripetal acceleration = v^2 / r, where v = 20 m/s and r = 50 m. So, centripetal acceleration = (20^2) / 50 = 8 m/s^2."}
{"id": "7f6f5942-1c39-46f2-b88c-c28658e47a6b", "domain": "reasoning", "difficulty": 6, "question": "If it is true that 'All A are B' and 'Some B are C', which of the following must be true?", "answer": "Some A are B", "answer_explanation": "Since all A are B, it is necessarily true that some A are B because A is a subset of B."}
{"id": "6060ad7f-f194-48dc-8e98-735e166fcc98", "domain": "reasoning", "difficulty": 8, "question": "All A are B. No B are C. What is the relationship between A and C?", "answer": "No A are C", "answer_explanation": "Since all A are B and no B are C, A and C are disjoint because A is a subset of B, and B and C are disjoint."}
{"id": "0797f842-43db-4a0f-ab9f-462ad54bff3a", "domain": "reasoning", "difficulty": 4, "question": "All dogs are animals. Max is a dog. What is Max?", "answer": "An animal", "answer_explanation": "Using the syllogism: all dogs are animals and Max is a dog, therefore Max is an animal."}
{"id": "a7bdad15-d03a-4b0f-be9c-4f346f3938f5", "domain": "mathematics", "difficulty": 4, "question": "What is the value of x in the equation x/4 + 2 = 7?", "answer": "20", "answer_explanation": "Subtract 2 from both sides to get x/4 = 5, then multiply by 4 to get x = 20"}
{"id": "35fe925f-109f-4d14-a530-1dd6e3775388", "domain": "science", "difficulty": 6, "question": "For the reaction N2 + 3H2 → 2NH3, if 2 moles of N2 react, how many moles of NH3 are produced?", "answer": "4", "answer_explanation": "From the balanced equation, 1 mole of N2 produces 2 moles of NH3. So, 2 moles of N2 will produce 2 * 2 = 4 moles of NH3."}
{"id": "07ff8eca-838e-4394-8349-ea46b2f1e5b0", "domain": "science", "difficulty": 4, "question": "What is the chemical symbol for gold?", "answer": "Au", "answer_explanation": "The chemical symbol for gold is derived from its Latin name 'Aurum'"}
{"id": "adb47bb3-e216-4f9a-ab1c-7162e5a9107a", "domain": "code", "difficulty": 7, "question": "To detect a cycle in a linked list, what algorithm can be used?", "answer": "Floyd's Tortoise and Hare (Cycle Detection) algorithm", "answer_explanation": "This algorithm uses two pointers moving at different speeds to detect if a cycle exists."}
{"id": "f2f6ac33-17be-4b62-ad51-e899d9e3e5ed", "domain": "science", "difficulty": 7, "question": "In a Hardy-Weinberg equilibrium, if the frequency of allele 'A' is 0.6, what is the frequency of the genotype 'AA'?", "answer": "0.36", "answer_explanation": "Using the Hardy-Weinberg principle: p^2 + 2pq + q^2 = 1, where p = 0.6 (frequency of 'A'), the frequency of 'AA' is p^2 = 0.6^2 = 0.36"}
{"id": "dbcbdda0-b85c-4c22-b52e-38804c410701", "domain": "science", "difficulty": 6, "question": "A protein is synthesized with 300 amino acids. How many nucleotides are in the mRNA that codes for this protein?", "answer": "903", "answer_explanation": "Each amino acid is coded by 3 nucleotides (a codon). For 300 amino acids, we need 300 codons, so 300 * 3 = 900 nucleotides. Adding the stop codon, the total is 900 + 3 = 903 nucleotides."}
{"id": "c02bf985-b778-47d2-824a-ba62739f49a1", "domain": "code", "difficulty": 4, "question": "The following code is supposed to count the number of islands in a grid. What is the bug? `def count_islands(grid): count = 0; for i in range(len(grid)): for j in range(len(grid[0])): if grid[i][j] == '1': count += 1`", "answer": "The code does not perform a DFS or mark visited cells", "answer_explanation": "Simply incrementing the count for each '1' encountered does not account for adjacent '1's being part of the same island. A DFS or similar approach is needed to mark and count distinct islands."}
{"id": "98322ff9-5b89-4cf8-9459-f0e3d6f79338", "domain": "reasoning", "difficulty": 7, "question": "A bat and a ball together cost $1.10. The bat costs $1.00 more than the ball. How much does the ball cost?", "answer": "$0.05", "answer_explanation": "Let's denote the cost of the ball as x. The bat costs $1.00 more than the ball, so it costs x + $1.00. Together they cost x + (x + $1.00) = $1.10. Solving this equation gives 2x + $1.00 = $1.10, so 2x = $0.10, and x = $0.05."}
{"id": "a25ae4bc-bc8a-4c94-b04f-6925f361ddd7", "domain": "mathematics", "difficulty": 9, "question": "Solve the differential equation dy/dx = 2x/y with the initial condition y(0) = 1", "answer": "y = sqrt(x^2 + 1)", "answer_explanation": "Separate variables to get y dy = 2x dx. Integrating both sides gives (1/2)y^2 = x^2 + C. Using the initial condition, C = 1/2, so y^2 = x^2 + 1, and y = sqrt(x^2 + 1)"}
{"id": "00255928-38a2-4b66-abcc-19ad02581b6a", "domain": "mathematics", "difficulty": 5, "question": "What is the value of x if 3^x = 27?", "answer": "3", "answer_explanation": "Since 27 = 3^3, it follows that x = 3."}
{"id": "4cb77b00-c8c4-40e4-a36a-aae484f17921", "domain": "mathematics", "difficulty": 7, "question": "A car travels from city A to city B at an average speed of 60 km/h and returns at an average speed of 40 km/h. What is the average speed for the entire trip?", "answer": "48", "answer_explanation": "Let the distance between the cities be d. The total distance traveled is 2d. The total time taken is d/60 + d/40 = (2d + 3d)/120 = 5d/120 = d/24. The average speed is total distance / total time = 2d / (d/24) = 48 km/h."}
{"id": "d4208159-c7c5-4964-9353-7c6710a2c564", "domain": "mathematics", "difficulty": 5, "question": "Solve for y: y - 2 = 7", "answer": "9", "answer_explanation": "Add 2 to both sides to get y = 9"}
{"id": "41df5efe-0691-413e-8449-1bbf35653f4d", "domain": "meta_reasoning", "difficulty": 7, "question": "A 'novella' is to 'literature' as a 'sonata' is to what?", "answer": "music", "answer_explanation": "A novella is a form of literature. Similarly, a sonata is a form of music, establishing the analogous relationship."}
{"id": "e3d0ef6c-f982-4693-b28f-2857f2861716", "domain": "mathematics", "difficulty": 8, "question": "What is the limit as x approaches 0 of sin(x)/x?", "answer": "1", "answer_explanation": "This is a fundamental limit in calculus. As x approaches 0, sin(x)/x approaches 1."}
{"id": "d906658d-fa7d-4f78-8997-d69e39fdc0c4", "domain": "code", "difficulty": 8, "question": "Analyze the time complexity of the algorithm to find all pairs of elements in an array that sum to a given target. Assume the array is not sorted.", "answer": "O(n^2)", "answer_explanation": "The naive approach involves checking every pair of elements, resulting in a quadratic time complexity. Using a hash table can reduce this to O(n)."}
{"id": "daead061-2000-42af-b8a5-752b202ade44", "domain": "science", "difficulty": 8, "question": "A physical pendulum consists of a uniform rod of length 1 m and mass 2 kg. What is its period of oscillation?", "answer": "1.64", "answer_explanation": "For a uniform rod, the moment of inertia about one end is (1/3)mL^2. The period T = 2π √(I / (m * g * d)), where I = (1/3)mL^2 and d = L/2. So, T = 2π √((1/3)L^2 / (g * L/2)) = 2π √(2L / (3g)) = 2π √(2*1 / (3*9.8)) = 1.64 s."}
{"id": "f4ff91b0-47ef-4b30-92e0-07c02ceabf4b", "domain": "meta_reasoning", "difficulty": 7, "question": "A car travels from point A to point B at 60 mph and returns at 40 mph. What is its average speed for the entire trip?", "answer": "48", "answer_explanation": "The average speed is calculated using the formula: Average Speed = Total Distance / Total Time. Assuming the distance from A to B is D, the total distance is 2D. The time taken to travel from A to B is D/60, and from B to A is D/40. So, Total Time = D/60 + D/40 = (2D + 3D)/120 = 5D/120 = D/24. Thus, Average Speed = 2D / (D/24) = 48 mph."}
{"id": "d7169911-d622-4bf8-b92b-416a4506dc18", "domain": "reasoning", "difficulty": 4, "question": "Socrates is a man. All men are mortal. What is Socrates?", "answer": "Mortal", "answer_explanation": "Since Socrates is a man and all men are mortal, Socrates must be mortal."}
{"id": "9a76a378-76f0-44bd-a5a4-cff38527f1e1", "domain": "meta_reasoning", "difficulty": 6, "question": "Complete the series: 1, 2, 4, 8, 16, ?", "answer": "32", "answer_explanation": "The pattern is doubling the previous number."}
{"id": "4afceb84-0412-413d-971c-6375b9a12bb2", "domain": "mathematics", "difficulty": 8, "question": "Find the limit as x approaches 0 of sin(x)/x", "answer": "1", "answer_explanation": "This is a fundamental limit in calculus, known to be 1"}
{"id": "8ade0b6b-dbe8-4b1b-8976-1a367cf33ecc", "domain": "meta_reasoning", "difficulty": 7, "question": "Complete the analogy: fork is to eat as pen is to ______", "answer": "write", "answer_explanation": "A fork is used to eat, and a pen is used to write."}
{"id": "1c9c6a3a-0290-401c-b0be-c8f56ee1560d", "domain": "mathematics", "difficulty": 7, "question": "What is the derivative of the function f(x) = 3x^2 sin(x)?", "answer": "6x sin(x) + 3x^2 cos(x)", "answer_explanation": "Apply the product rule of differentiation: if f(x) = u(x)v(x), then f'(x) = u'(x)v(x) + u(x)v'(x). Here, u(x) = 3x^2 and v(x) = sin(x), so u'(x) = 6x and v'(x) = cos(x)"}
{"id": "24186595-f035-4b4d-988d-ea2508d9a800", "domain": "meta_reasoning", "difficulty": 5, "question": "A snail is at the bottom of a 20-foot well. Each day, it climbs up 3 feet, but at night, it slips back 2 feet. How many days will it take for the snail to reach the top of the well?", "answer": "18", "answer_explanation": "On the 17th day, the snail will be at 17 feet. On the 18th day, it will climb to 20 feet and not slip back because it's out of the well."}
{"id": "311f51b9-fc10-4a05-9a36-606d0b28a68a", "domain": "mathematics", "difficulty": 7, "question": "Find the integral of x^2 e^x dx", "answer": "(x^2 - 2x + 2)e^x + C", "answer_explanation": "Using integration by parts twice, the integral is (x^2 - 2x + 2)e^x + C"}
{"id": "ab8b5a7e-edd7-47c6-a6fa-e41736912830", "domain": "code", "difficulty": 6, "question": "What is the average time complexity of quicksort?", "answer": "O(n log n)", "answer_explanation": "Quicksort's average case complexity is O(n log n) due to the partitioning and recursive sorting."}
{"id": "d3f9f515-ad45-43bc-9faa-504c9493bcae", "domain": "mathematics", "difficulty": 5, "question": "If f(x) = 2x^2 + 3x - 1, what is f(-2)?", "answer": "1", "answer_explanation": "Substitute x = -2 into the given function: f(-2) = 2(-2)^2 + 3(-2) - 1 = 8 - 6 - 1 = 1"}
{"id": "29b7174c-badb-4051-a72f-2e1c69fdef34", "domain": "science", "difficulty": 5, "question": "If a DNA molecule has 20% adenine, what percentage of the molecule is guanine?", "answer": "30%", "answer_explanation": "Since A = T and G = C, and A + T + G + C = 100%, if A = 20%, then T = 20%. So, G + C = 100% - 20% - 20% = 60%. Since G = C, G = 30%."}
{"id": "6c5ef0cb-b95d-4e59-bc3a-ab964ff28bd8", "domain": "meta_reasoning", "difficulty": 7, "question": "If a 'codex' is related to 'books', what is 'palette' related to?", "answer": "painting", "answer_explanation": "A codex is a type of book or a collection of books. Similarly, a palette is a tool or a concept related to painting."}
{"id": "013086fa-056a-4589-96bb-2b598956aef4", "domain": "code", "difficulty": 6, "question": "Analyze the space complexity of a recursive factorial function.", "answer": "O(n)", "answer_explanation": "Each recursive call adds a layer to the call stack, resulting in a space complexity equal to the maximum depth of recursion, which is `n` for factorial."}
{"id": "4c091e1d-5e6c-4662-8629-5b23b0fda608", "domain": "mathematics", "difficulty": 6, "question": "What is the greatest common divisor (GCD) of 48 and 18?", "answer": "6", "answer_explanation": "Use the Euclidean algorithm: GCD(48,18) = GCD(18, 48 mod 18) = GCD(18, 12) = GCD(12, 6) = 6."}
{"id": "4e54836c-6b9d-4982-bb8c-8edf7efdd317", "domain": "science", "difficulty": 7, "question": "A population grows according to the logistic growth model dN/dt = rN(1 - N/K), where r = 0.5 and K = 1000. What is the growth rate when N = 500?", "answer": "125", "answer_explanation": "Substituting the given values into the logistic growth equation gives dN/dt = 0.5*500*(1 - 500/1000) = 0.5*500*0.5 = 125."}
{"id": "5aa9d328-3e09-4f39-905a-bafdd0e42a4f", "domain": "code", "difficulty": 5, "question": "What is the time complexity of the given algorithm: for (i = 0; i < n; i++) { for (j = 0; j < n; j++) { sum += i * j; } }?", "answer": "O(n^2)", "answer_explanation": "The algorithm contains two nested loops, each iterating n times, resulting in a quadratic time complexity."}
{"id": "ab483e94-1376-4a37-a72a-b68bacd9876b", "domain": "mathematics", "difficulty": 8, "question": "Find the eigenvalues of the matrix [[1, 2], [3, 4]]", "answer": "(-0.3722813232690143, 5.372281323269014)", "answer_explanation": "The characteristic equation is det(A - λI) = 0, which gives λ^2 - 5λ - 2 = 0. Solving this quadratic equation gives the eigenvalues"}
{"id": "f4cf9774-b4af-47c9-8455-a438d511c836", "domain": "code", "difficulty": 7, "question": "How would you implement an LRU cache?", "answer": "Using a combination of a hash map and a doubly linked list", "answer_explanation": "A hash map allows for O(1) lookups, and a doubly linked list enables efficient insertion and removal of nodes. Together, they facilitate implementing an LRU cache where the least recently used item is efficiently evicted."}
{"id": "c3cd3eaf-5cfa-4599-b6fb-b63cc7690383", "domain": "mathematics", "difficulty": 3, "question": "What is the sum of 2 + 2 + 3?", "answer": "7", "answer_explanation": "Simple arithmetic: 2 + 2 + 3 = 7"}
{"id": "6e4aae17-fd4b-484c-b893-51840da64079", "domain": "reasoning", "difficulty": 8, "question": "All A are B. Some C are A. What can be concluded about C and B?", "answer": "Some C are B", "answer_explanation": "Since all A are B and some C are A, it follows that those C that are A are also B, hence some C are B."}
{"id": "233d8635-1b7f-49bf-bd89-96333181abdd", "domain": "reasoning", "difficulty": 4, "question": "If it rains, the ground gets wet. It rained. What is the state of the ground?", "answer": "Wet", "answer_explanation": "The condition (raining) that leads to the ground being wet has been met, so we can infer the ground is wet."}
{"id": "dc33b2ba-dc39-4f99-9684-148eec4c5c9d", "domain": "meta_reasoning", "difficulty": 5, "question": "A box contains three coins: one gold, one silver, and one copper. You draw one coin. What is the probability that it is not gold?", "answer": "2/3", "answer_explanation": "There are three coins, and two of them are not gold. Thus, the probability of drawing a non-gold coin is 2 out of 3."}
{"id": "183bd987-038a-4b1e-b624-590a3709b2a9", "domain": "science", "difficulty": 7, "question": "A 10 kg block is pulled up a frictionless incline with a force of 50 N parallel to the incline. If the angle of the incline is 30 degrees, what is the acceleration of the block?", "answer": "2.1 m/s^2", "answer_explanation": "The component of gravity acting down the incline = m * g * sin(30 degrees). Net force = 50 N - (10 kg * 9.8 m/s^2 * 0.5) = 50 N - 49 N = 1 N. Acceleration = net force / mass = 1 N / 10 kg = 0.1 m/s^2 is incorrect due to miscalculation; correct calculation directly considering the forces gives a = (50 - 10*9.8*sin(30))/10 = 2.1 m/s^2 (after correcting the force balance)."}
{"id": "df4968bb-7443-4602-9d13-232ac574d9cb", "domain": "meta_reasoning", "difficulty": 5, "question": "What is the next number in the sequence: 1, 3, 5, 7?", "answer": "9", "answer_explanation": "The sequence is formed by adding 2 to the previous number."}
{"id": "8aa770b2-4b04-439a-af49-1093c6dff0db", "domain": "reasoning", "difficulty": 6, "question": "All cats are mammals. Some mammals are carnivores. Which of the following statements is necessarily true?", "answer": "Some cats are carnivores is not necessarily true", "answer_explanation": "The statement 'Some cats are carnivores' is not necessarily true because being a mammal and being carnivorous are not directly related to being a cat. The correct interpretation is that we cannot conclude that some cats are carnivores based on the given premises."}
{"id": "b58c8832-3cf3-42a1-a4e1-24fe11e09025", "domain": "reasoning", "difficulty": 5, "question": "All cars are vehicles. Some vehicles are electric. What can be inferred?", "answer": "Some vehicles are cars", "answer_explanation": "Since all cars are vehicles, it implies that cars are a subset of vehicles, hence some vehicles are cars."}
{"id": "258bc7e5-4e6f-44bb-a35b-372f95e401c7", "domain": "reasoning", "difficulty": 7, "question": "If all As are Bs and some Bs are Cs, which of the following is a valid conclusion?", "answer": "Some As may be Cs, but it's not necessarily true.", "answer_explanation": "While all As are Bs and some Bs are Cs, it doesn't necessarily mean some As are Cs because the Bs that are Cs might not overlap with As."}
{"id": "3d1131a1-df1e-4ee5-8341-0bb2eb117e9c", "domain": "code", "difficulty": 6, "question": "What is the time complexity of the heap sort algorithm?", "answer": "O(n log n)", "answer_explanation": "Heap sort involves building a heap (O(n)) and then repeatedly extracting the maximum element and heapifying the remaining elements (O(log n) per extraction). With n extractions, the overall time complexity is O(n log n)."}
{"id": "7cd8303b-4199-453f-bf04-21fbae21ae05", "domain": "science", "difficulty": 5, "question": "What is the number of moles of NaCl in 250 mL of a 0.5 M solution?", "answer": "0.125 mol", "answer_explanation": "Using the formula: moles = molarity * volume (in liters), we get moles = 0.5 M * 0.25 L = 0.125 mol"}
{"id": "0e3ff50f-8901-4149-88fe-386808793b8a", "domain": "reasoning", "difficulty": 9, "question": "Given the statements 'If P then Q' and 'If Q then R', what can be concluded if P is true?", "answer": "R is true", "answer_explanation": "From 'If P then Q' and P being true, we conclude Q is true. Then from 'If Q then R' and Q being true, we conclude R is true."}
{"id": "9ffc1d73-b2d7-45a7-a76c-bdca18120c9d", "domain": "meta_reasoning", "difficulty": 8, "question": "If 'flargle' is a type of 'flumplen', and 'flumplen' is a type of 'snizzle', what is 'flargle' in relation to 'snizzle'?", "answer": "A type of 'snizzle'", "answer_explanation": "Since 'flargle' is a type of 'flumplen', and 'flumplen' is a type of 'snizzle', by transitive property, 'flargle' is a type of 'snizzle'."}
{"id": "3893755f-c6d1-486c-a5bb-15be3cbe7c07", "domain": "reasoning", "difficulty": 5, "question": "All engineers are technical. Some technical people are scientists. What can be concluded?", "answer": "Some engineers are scientists is not necessarily true", "answer_explanation": "While all engineers are technical and some technical people are scientists, it doesn't necessarily mean that some engineers are scientists. The overlap between engineers and scientists isn't directly established."}
{"id": "4b164997-cfb3-45f4-bafb-7fba002e87f8", "domain": "science", "difficulty": 5, "question": "If a cell divides every 24 hours, how many cells will there be after 72 hours if you start with 1 cell?", "answer": "8", "answer_explanation": "The cell divides every 24 hours, so in 72 hours it will divide 3 times. 1 cell * 2^3 = 8 cells"}
{"id": "82c5b154-6000-413d-ba5c-287d07c72df8", "domain": "meta_reasoning", "difficulty": 8, "question": "If all Bloops are Razzies and all Razzies are Lazzies, then are all Bloops Lazzies?", "answer": "yes", "answer_explanation": "The statement follows a logical syllogism: All A are B, and all B are C, therefore all A are C."}
{"id": "23434552-0c5c-4d08-a298-d6a722eb89a4", "domain": "reasoning", "difficulty": 4, "question": "If it rains, the ground will be wet. It rained. What can be concluded?", "answer": "The ground is wet.", "answer_explanation": "The condition 'if it rains, the ground will be wet' is met because it rained, so we can conclude the ground is wet."}
{"id": "00877d8f-2357-493f-81fa-3bd2497641cc", "domain": "reasoning", "difficulty": 5, "question": "All X are Y. All Y are Z. What is the relationship between X and Z?", "answer": "All X are Z", "answer_explanation": "The transitive property applies here: if all X are Y and all Y are Z, then logically all X are Z."}
{"id": "be7762bd-357f-4653-aa45-21b3c85c9f53", "domain": "reasoning", "difficulty": 7, "question": "If some M are N and all N are O, what must be true?", "answer": "Some M are O", "answer_explanation": "Since some M are N and all N are O, it follows that those M that are N are also O, so some M are O."}
{"id": "33615860-f05b-40e3-8513-49b4c055c5ed", "domain": "code", "difficulty": 4, "question": "The function `int find_max(int[] arr) { int max = arr[0]; for (int i = 1; i <= arr.length; i++) { if (arr[i] > max) max = arr[i]; } return max; }` throws an exception. What is the fix?", "answer": "Change the loop condition to `i < arr.length`", "answer_explanation": "The loop goes out of bounds because array indices in most programming languages are 0-based, meaning they range from 0 to length - 1."}
{"id": "50a9ff7a-da73-49c0-b947-d514b7421960", "domain": "meta_reasoning", "difficulty": 7, "question": "If 'apple' is coded as 'elppa', how is 'table' coded?", "answer": "elbat", "answer_explanation": "The coding is achieved by reversing the letters of the word."}
{"id": "f7917735-d3e0-407e-91ce-089909cf45e9", "domain": "code", "difficulty": 7, "question": "The following code is intended to implement a binary search tree insertion: `Node insert(Node root, int key) { if (root == null) return new Node(key); if (key < root.key) root.left = insert(root.left, key); else root.right = insert(root.right, key); return root.left` What is the bug?", "answer": "The last line should return 'root' instead of 'root.left'", "answer_explanation": "Returning 'root.left' will result in losing the rest of the tree."}
{"id": "f2e434df-a25b-47b1-abaa-81ff4d40e041", "domain": "meta_reasoning", "difficulty": 6, "question": "What is the next number in the sequence: 3, 6, 12, 24, ?", "answer": "48", "answer_explanation": "The sequence is obtained by doubling the previous number."}
{"id": "8c53532d-42c1-4c7c-97b6-e10f9bca55ee", "domain": "science", "difficulty": 5, "question": "If the frequency of a particular gene allele is 0.4 in a population, and the population is in Hardy-Weinberg equilibrium, what is the frequency of individuals heterozygous for this allele?", "answer": "0.48", "answer_explanation": "Using the Hardy-Weinberg principle, if q = 0.4, then p = 1 - q = 0.6. The frequency of heterozygotes is 2pq = 2 * 0.6 * 0.4 = 0.48."}
{"id": "ecadfb2f-4198-4f4f-b5bb-32f5b640b149", "domain": "science", "difficulty": 8, "question": "For the reaction N2 + 3H2 -> 2NH3, the equilibrium constant Kp is 4.5 x 10^-5 at 500 K. What is Kc?", "answer": "1.7", "answer_explanation": "Using the relationship Kp = Kc(RT)^delta(n), where delta(n) = 2 - (1 + 3) = -2, R = 0.0821 L*atm/(mol*K), and T = 500 K, we can solve for Kc. Kp = Kc(0.0821*500)^(-2). So, Kc = Kp/(0.0821*500)^(-2) = 4.5 x 10^-5 / (0.0821*500)^(-2) = 1.7 (approximately, after calculation)."}
{"id": "2c0e67df-6c61-490f-93a5-4823a230dda1", "domain": "mathematics", "difficulty": 3, "question": "What is 25% of 120?", "answer": "30", "answer_explanation": "25% is 0.25, so 0.25 * 120 = 30"}
{"id": "e6e2024f-536d-49b1-ae00-40ed3cb3d6f9", "domain": "mathematics", "difficulty": 7, "question": "Find the derivative of f(x) = 3x^2 sin(x)", "answer": "6x sin(x) + 3x^2 cos(x)", "answer_explanation": "Using the product rule, the derivative is (3x^2)' sin(x) + 3x^2 (sin(x))' = 6x sin(x) + 3x^2 cos(x)"}
{"id": "41a9f74d-1099-48c3-b12a-b202a9a60c40", "domain": "science", "difficulty": 5, "question": "A car accelerates from rest at 2 m/s^2. How far does it travel in 5 seconds?", "answer": "25", "answer_explanation": "Using the equation of motion s = ut + 0.5at^2, where u = 0 (initial velocity), a = 2 m/s^2, and t = 5 s, we get s = 0 + 0.5*2*5^2 = 25 m."}
{"id": "0e4e4414-b676-4488-b76c-18aef39667df", "domain": "reasoning", "difficulty": 8, "question": "The statement 'This policy has been successful in other countries, so it will be successful here' assumes what?", "answer": "That the conditions in the other countries are similar to the conditions here.", "answer_explanation": "The argument assumes that the success in other countries can be replicated here, implying similar conditions."}
{"id": "b1755119-8824-496f-b312-d8d09c68a42b", "domain": "mathematics", "difficulty": 6, "question": "What is the sum of the first 10 positive integers?", "answer": "55", "answer_explanation": "Use the formula for the sum of an arithmetic series: n(n+1)/2 with n = 10."}
{"id": "d11f854b-38da-4e05-8d9e-edfcfee0e7b7", "domain": "code", "difficulty": 6, "question": "How does the Knuth-Morris-Pratt (KMP) algorithm improve string searching?", "answer": "By precomputing information about the pattern to skip characters in the text, reducing the time complexity to O(n+m)", "answer_explanation": "The KMP algorithm uses a lookup table to determine how many characters can be skipped in the text when a mismatch occurs, avoiding redundant comparisons."}
{"id": "4f59b54f-5f1f-449c-bd95-47cb1b87269d", "domain": "code", "difficulty": 6, "question": "Implement a function to find the intersection of two sorted arrays. What is the most efficient algorithm?", "answer": "Two-pointer technique", "answer_explanation": "Using two pointers, one for each array, allows for a linear time complexity (O(n + m)) solution."}
{"id": "c52156a9-e75d-4a01-bb56-4cdebe9cc43b", "domain": "reasoning", "difficulty": 8, "question": "If 'All M are N' and 'No N are P', which statement is necessarily true?", "answer": "No M are P", "answer_explanation": "Since all M are N and no N are P, it follows that M cannot be P because M is a subset of N, and N and P are disjoint."}
{"id": "99644013-5880-4ceb-9058-14fed43aea42", "domain": "code", "difficulty": 7, "question": "Implement a simple queue using a linked list. What is the time complexity of the 'enqueue' operation?", "answer": "O(1)", "answer_explanation": "If the linked list is implemented with a tail pointer, 'enqueue' can be done in constant time by adding the new node at the tail."}
{"id": "197ff92b-a835-4c47-ad60-3c50c06c6413", "domain": "mathematics", "difficulty": 4, "question": "What is the perimeter of a triangle with sides 3 cm, 4 cm, and 5 cm?", "answer": "12", "answer_explanation": "Perimeter = sum of all sides = 3 + 4 + 5 = 12 cm."}
{"id": "0f927e2d-e46d-40c8-80c4-7251f437a8c8", "domain": "mathematics", "difficulty": 9, "question": "Prove that the sum of the reciprocals of the prime numbers diverges. What is the sum of the reciprocals of the first 5 prime numbers?", "answer": "2.28333333333", "answer_explanation": "The first 5 primes are 2, 3, 5, 7, 11. The sum of their reciprocals is 1/2 + 1/3 + 1/5 + 1/7 + 1/11 = 2.28333333333 (approx)."}
{"id": "cb10ca32-a5c8-4e0b-8194-1e75f14f1385", "domain": "science", "difficulty": 4, "question": "What is the primary function of the mitochondria in a cell?", "answer": "energy production", "answer_explanation": "Mitochondria are known as the 'powerhouses' of the cell because they generate most of the cell's supply of adenosine triphosphate (ATP), used as a source of chemical energy"}
{"id": "d480dc0b-bfb3-415c-89fc-b45a60e5a66e", "domain": "reasoning", "difficulty": 6, "question": "Some birds can fly. Penguins are birds. What conclusion can be drawn about penguins and flying?", "answer": "No conclusion can be drawn about penguins and flying", "answer_explanation": "The statement 'some birds can fly' does not imply that all birds can fly, and penguins being birds doesn't directly relate to their ability to fly based on the given information."}
{"id": "19b12225-84c0-47c7-906b-d8e05cff3ea6", "domain": "science", "difficulty": 7, "question": "What is the pH of a 0.01 M solution of acetic acid (CH3COOH) with a Ka of 1.8 x 10^-5?", "answer": "3.37", "answer_explanation": "Using the Ka expression, we can calculate the [H+] concentration, then use the pH formula. Ka = [H+][CH3COO-] / [CH3COOH] = 1.8 x 10^-5. Assuming x = [H+] = [CH3COO-], we get x^2 / (0.01 - x) = 1.8 x 10^-5. Solving for x gives x = 4.24 x 10^-4, so pH = -log(4.24 x 10^-4) = 3.37."}
{"id": "b93b45d9-e09f-4491-be30-265bbbf4c9ef", "domain": "science", "difficulty": 5, "question": "A force of 10 N is applied to an object, causing it to move 5 m in the direction of the force. What is the work done?", "answer": "50", "answer_explanation": "Work done = Force * distance = 10 N * 5 m = 50 J."}
{"id": "27d3b384-3bb6-4d7c-82e9-9d19ed17db5d", "domain": "meta_reasoning", "difficulty": 6, "question": "You have a 3-gallon bucket and a 5-gallon bucket. How can you measure exactly 4 gallons of water?", "answer": "Fill the 5-gallon bucket completely, pour water from it into the 3-gallon bucket until the 3-gallon bucket is full, leaving 2 gallons in the 5-gallon bucket. Empty the 3-gallon bucket. Pour the remaining 2 gallons from the 5-gallon bucket into the 3-gallon bucket. Fill the 5-gallon bucket again. Pour water from the 5-gallon bucket into the 3-gallon bucket until it's full, which will require 1 gallon. Thus, the 5-gallon bucket will have 4 gallons left.", "answer_explanation": "This process involves a series of steps to measure exactly 4 gallons using the available buckets."}
{"id": "56c4fbd2-f9e4-4f94-8fd7-7cdec76b774c", "domain": "reasoning", "difficulty": 8, "question": "All X are Y. Some Y are Z. What can be concluded?", "answer": "Some X are Z is not necessarily true", "answer_explanation": "While all X are Y and some Y are Z, it cannot be concluded that some X are Z without knowing the overlap between X and the subset of Y that is Z."}
{"id": "4b1662ac-db94-427b-83ab-c2ffa399a5c9", "domain": "mathematics", "difficulty": 7, "question": "Find the equation of the line passing through the points (2,3) and (4,5).", "answer": "y = x + 1", "answer_explanation": "The slope is (5-3)/(4-2) = 1. Using point-slope form with (2,3), we get y - 3 = 1(x - 2), simplifying to y = x + 1."}
{"id": "e1ff36f9-8cce-44a3-9edd-8d668845e1c3", "domain": "mathematics", "difficulty": 6, "question": "Find the roots of the quadratic equation x^2 + 4x + 4 = 0", "answer": "-2", "answer_explanation": "The equation factors as (x + 2)(x + 2) = 0, so x = -2 is a repeated root."}
{"id": "52b6d3da-eefc-4cac-82de-4f82edac32c5", "domain": "science", "difficulty": 3, "question": "What is the process by which plants convert sunlight into energy?", "answer": "Photosynthesis", "answer_explanation": "Photosynthesis is the process by which plants, algae, and some bacteria convert light energy from the sun into chemical energy in the form of glucose"}
{"id": "cc8de2cf-2b5e-4315-89b8-524b5a0a58cf", "domain": "reasoning", "difficulty": 4, "question": "If 'All dogs are animals', which statement is true?", "answer": "Some animals are dogs", "answer_explanation": "Since all dogs are animals, it implies that dogs are a subset of animals, hence some animals are dogs."}
{"id": "5cdfd5bc-ca25-441b-8aed-5769e9167acf", "domain": "meta_reasoning", "difficulty": 5, "question": "If a car travels 250 miles in 5 hours, what is its average speed?", "answer": "50 mph", "answer_explanation": "Average speed is calculated by dividing total distance by total time. So, 250 miles / 5 hours = 50 mph."}
{"id": "0f88a403-e74d-48be-b464-d8b270875c3f", "domain": "meta_reasoning", "difficulty": 7, "question": "If 'every P is Q' and 'some R are P', what can be concluded about R and Q?", "answer": "Some R are Q", "answer_explanation": "Since every P is Q, and some R are P, those R that are P are also Q. Thus, some R are Q."}
{"id": "430bcaf5-e70a-4a1e-bebe-aeb2d0bafd15", "domain": "meta_reasoning", "difficulty": 8, "question": "If all 'bloops' are 'flumps' and some 'flumps' are 'jinks', which of the following is necessarily true?", "answer": "Some 'bloops' might be 'jinks'", "answer_explanation": "Since all 'bloops' are 'flumps' and some 'flumps' are 'jinks', it's possible that the 'bloops' that are 'flumps' are also 'jinks', but it's not a certainty that all or none are."}
{"id": "83ba804e-49c1-4603-945a-68f28d8eadb1", "domain": "reasoning", "difficulty": 5, "question": "No P are M. All S are M. What can be concluded about P and S?", "answer": "No S are P", "answer_explanation": "Since all S are M and no P are M, it follows that no S can be P because S is a subset of M, and P and M are disjoint."}
{"id": "b5a4d903-d891-4f01-86cc-9431e633f17b", "domain": "mathematics", "difficulty": 3, "question": "Solve for x: 2x + 5 = 11", "answer": "3", "answer_explanation": "Subtract 5 from both sides: 2x = 6. Then divide by 2: x = 3"}