Bộ bài tập tự sinh (10 câu · Suy luận logic, Thứ tự & Tập hợp)
Mã đề: 99753681 · Khớp 29 mẫu bài trong thư viện.
Question 1
Trung bình · +20 điểm
Two piles have $10$ and $15$ stones. In each turn, a player removes any positive number of stones from one pile, and the player taking the last stone wins. How many stones should the first player remove from the larger pile to guarantee a win?
Xem đáp án và lời giải
Đáp án: $5$
Cần làm hai đống bằng nhau ($10$ và $10$) để luôn đối xứng lại nước đi của đối thủ, nên lấy đi $15 - 10 = 5$ viên.
Question 2
Trung bình · +20 điểm
$1$ melon weighs as much as $2$ apples, and $1$ apple weighs as much as $4$ strawberries. If $1$ strawberry weighs $6\text{ g}$, how many grams does $1$ melon weigh?
Xem đáp án và lời giải
Đáp án: $48$
$1$ quả dưa nặng bằng $2 \times 4 = 8$ quả dâu, tức là $8 \times 6 = 48\text{ g}$.
Question 3
Trung bình · +20 điểm
One-way roads connect towns with travel times: $A\to B$ ($5$ min), $B\to C$ ($4$ min), $A\to C$ ($11$ min), $B\to D$ ($6$ min), and $C\to D$ ($4$ min). What is the shortest time (in minutes) to go from $A$ to $D$?
Xem đáp án và lời giải
Đáp án: $11$
So sánh $3$ lộ trình từ $A$ đến $D$:
- $A\to B\to C\to D$: $13$
- $A\to B\to D$: $11$
- $A\to C\to D$: $15$
Đường ngắn nhất mất $11$ phút.
In a $4 \times 4$ mini-Sudoku (using digits $1, 2, 3, 4$ once per row, column, and $2 \times 2$ box), row $1$ already has $4, 2$ and column $4$ already has $1$ outside row $1$. What digit MUST go in row $1$, column $4$?
Xem đáp án và lời giải
Đáp án: $3$
Hàng $1$ đã có $4, 2$ và cột $4$ đã có $1$, nên ô giao nhau chỉ có thể là chữ số còn lại là $3$.
Question 5
Trung bình · +20 điểm
Given binary inputs $A = 1, B = 1, C = 1, D = 0$, evaluate the four logic gates:
- $G_1 = A \text{ AND } B$
- $G_2 = C \text{ OR } D$
- $G_3 = A \text{ XOR } C$
- $G_4 = B \text{ XOR } D$
How many of these four gates output $1$?
Xem đáp án và lời giải
Đáp án: $3$
Tính từng cổng: $G_1 = 1, G_2 = 1, G_3 = 0, G_4 = 1$. Tổng số cổng có đầu ra $1$ là $3$.
An apple weighs $139\text{ g}$. A pear is $32\text{ g}$ heavier than the apple, and a mango is $16\text{ g}$ lighter than the pear. How much does the mango weigh (in grams)?
Xem đáp án và lời giải
Đáp án: $155$
Quả lê nặng $139 + 32 = 171\text{ g}$, nên quả xoài nặng $171 - 16 = 155\text{ g}$.
Question 7
Trung bình · +20 điểm
A row of $5$ lamps encodes a number in binary, where ● means $1$ (ON) and ○ means $0$ (OFF), from left (highest place value) to right ($1$). What number does ○ ● ○ ● ○ represent?
Xem đáp án và lời giải
Đáp án: $10$
Dãy đèn tương ứng số nhị phân $01010_2 = 0 \cdot 2^{4} + 1 \cdot 2^{3} + 0 \cdot 2^{2} + 1 \cdot 2^{1} + 0 \cdot 2^{0} = 8 + 2 = 10$.
Question 8
Trung bình · +20 điểm
Letters $A$–$Z$ are numbered $1$–$26$ ($A=1, \dots, Z=26$). A Caesar cipher shifts every letter forward by $7$ positions, wrapping around after $26$ back to $1$. What position number does letter #23 shift to?
Xem đáp án và lời giải
Đáp án: $4$
Ta có $23 + 7 = 30$. Vì vượt quá $26$, quay vòng trừ đi $26$ được $4$.
Four dominoes are placed in a chain so touching halves have equal dots: $[2|\,6]$–$[6|\,x]$–$[x|\,3]$–$[3|\,3]$. If the total number of dots on all four dominoes is $27$, what is $x$?
Xem đáp án và lời giải
Đáp án: $2$
Tổng các chấm đã biết là $2 + 2(6) + 2(3) + 3 = 23$, nên $2x = 4 \Rightarrow x = 2$.
Question 10
Khó · +30 điểm
In a survey of students who play at least one sport: $16$ play Soccer, $15$ play Basketball, $13$ play Tennis; $7$ play Soccer & Basketball, $5$ play Basketball & Tennis, $6$ play Soccer & Tennis, and $3$ play all three. How many students are in the survey in total?
Xem đáp án và lời giải
Đáp án: $29$
Theo công thức bù trừ $3$ tập hợp: $16 + 15 + 13 - (7 + 5 + 6) + 3 = 29$.