Ngân hàng đề / Luyện thi phong cách Bebras

Bebras Practice · Cấp độ 2 / Level 2 (Song ngữ Anh–Việt · Lớp 3–4 · 15 câu)

Điểm: 0/15

Question 1

Dễ · +10 điểm

[Part A · Easy] Four marbles (P, Q, R, S) roll down the four vertical pipes simultaneously. Every time a marble meets an orange horizontal tube, it must cross to the neighboring vertical pipe and continue downward. Which marble lands in Slot 2 at the bottom?

Hình minh họa câu 1
Chọn đáp án

Xem đáp án và lời giải

Đáp án: Marble Q

Answer / Đáp án: Marble Q (Bi Q)

Step-by-step (EN): Trace backwards from Slot 2 going up: bottom bridge (1,2) sends lane $2 \to$ lane $1$; middle bridges (2,3) and (3,4) do not touch lane $1$; top bridge (1,2) sends lane $1 \to$ lane $2$, which starts at Marble Q.

Giải chi tiết (VI): Truy ngược từ ô số 2 đi lên trên: Bi Q xuất phát ở cột 2, qua cầu ngang đầu tiên sang cột 1, đi thẳng qua hai cầu giữa (không chạm cột 1), đến cầu cuối cùng rẽ từ cột 1 sang cột 2 $\to$ rơi đúng vào ô số 2.

Computational Thinking / Tư duy Máy tính: Bidirectional Tracing / Working Backwards (Truy vết ngược trong mạng hoán vị).

Question 2

Dễ · +10 điểm

[Part A · Easy] A smart locker shows a 4-light binary code. Each lit bulb (1) adds its weight ($8, 4, 2, 1$ from left to right), and each unlit bulb (0) adds $0$. What number does 1011 represent?

Hình minh họa câu 2
Chọn đáp án

Xem đáp án và lời giải

Đáp án: $11$

Answer / Đáp án: 11

Step-by-step (EN): Add the weights where the bit is 1: $8 \times 1 + 4 \times 0 + 2 \times 1 + 1 \times 1 = 8 + 2 + 1 = 11$.

Giải chi tiết (VI): Cộng trọng số tại các bóng mang số 1: $8 + 0 + 2 + 1 = 11$.

Computational Thinking / Tư duy Máy tính: 4-bit Binary Number System (Hệ đếm nhị phân 4-bit).

Question 3

Dễ · +10 điểm

[Part A · Easy] Balls with numbers are sorted into four boxes (W, X, Y, Z) using the decision tree shown. Into which box does ball 9 fall?

Hình minh họa câu 3
Chọn đáp án

Xem đáp án và lời giải

Đáp án: Box Y

Answer / Đáp án: Box Y

Step-by-step (EN): Test $9$ at root: Is $9 > 10$? No $\to$ go right to Divisible by 3?. Since $9 \div 3 = 3$ with no remainder, answer Yes $\to$ go left to Box Y.

Giải chi tiết (VI): Kiểm tra số $9$ tại gốc: $9 > 10$ là Sai (No) $\to$ rẽ phải sang nút Divisible by 3?. Vì $9 \vdots 3$ nên trả lời Đúng (Yes) $\to$ rẽ trái vào Box Y.

Computational Thinking / Tư duy Máy tính: Nested Conditional Logic (Cấu trúc rẽ nhánh lồng nhau).

Question 4

Dễ · +10 điểm

[Part A · Easy] The blue rover starts at (row 3, column 2) facing North (up), where rows are numbered $1$ to $4$ from top to bottom and columns $1$ to $4$ from left to right. Commands:

  • F: move 1 cell forward
  • R: turn $90^\circ$ clockwise (right) in place
  • L: turn $90^\circ$ counter-clockwise (left) in place

Where does the rover end up after running F, R, F, F, L, F?

Hình minh họa câu 4
Chọn đáp án

Xem đáp án và lời giải

Đáp án: Row $1$, Column $4$

Answer / Đáp án: Row 1, Column 4 (Hàng 1, Cột 4)

Step-by-step (EN): Start (3, 2, N) $\xrightarrow{F}$ (2, 2, N) $\xrightarrow{R}$ (2, 2, E) $\xrightarrow{F, F}$ (2, 4, E) $\xrightarrow{L}$ (2, 4, N) $\xrightarrow{F}$ (1, 4, N).

Giải chi tiết (VI): Theo dõi trạng thái (hàng, cột, hướng): (3, 2, Bắc) $\xrightarrow{F}$ (2, 2, Bắc) $\xrightarrow{R}$ (2, 2, Đông) $\xrightarrow{F, F}$ (2, 4, Đông) $\xrightarrow{L}$ (2, 4, Bắc) $\xrightarrow{F}$ (1, 4, Bắc) (Hàng 1, Cột 4).

Computational Thinking / Tư duy Máy tính: State Tracking: Position + Orientation (Theo dõi trạng thái vị trí và hướng của tác tử).

Question 5

Dễ · +10 điểm

[Part A · Easy] Lina wants to prepare breakfast as fast as possible:

  • Boiling water in the electric kettle takes $5$ minutes (automatic — Lina does NOT need to stand and watch it).
  • Slicing fruit takes $3$ minutes.
  • Setting the table takes $2$ minutes.
  • Pouring the boiled water to make tea takes $1$ minute (can only be done after the water finishes boiling).

What is the minimum total number of minutes needed?

Chọn đáp án

Xem đáp án và lời giải

Đáp án: $6$

Answer / Đáp án: 6

Step-by-step (EN): Switch on the kettle at minute $0$ (finishes at minute $5$). While waiting those $5$ minutes, Lina slices fruit ($3$ min) + sets the table ($2$ min) $= 5$ minutes in parallel! At minute $5$, she spends $1$ minute pouring tea, finishing at $5 + 1 = 6$ minutes.

Giải chi tiết (VI): Bật ấm nước ngay lúc bắt đầu ($5$ phút). Trong $5$ phút chờ nước sôi, Lina làm song song luôn hai việc cắt trái cây ($3$ phút) và dọn bàn ($2$ phút) vừa khít $3 + 2 = 5$ phút. Sau khi nước sôi, tốn thêm $1$ phút pha trà, tổng cộng $5 + 1 = 6$ phút.

Computational Thinking / Tư duy Máy tính: Parallel Processing & Task Dependencies (Xử lý song song & Phụ thuộc tác vụ).

Question 6

Trung bình · +20 điểm

[Part B · Medium] A forest telegraph encodes four weather messages using 0 and 1:

  • SUN = 0
  • CLOUD = 10
  • RAIN = 110
  • SNOW = 111

No code is the start of another code, so messages can be sent without spaces! Decode the bit string: 1001101110.

Chọn đáp án

Xem đáp án và lời giải

Đáp án: CLOUD – SUN – RAIN – SNOW – SUN

Answer / Đáp án: CLOUD – SUN – RAIN – SNOW – SUN

Step-by-step (EN): Scan uniquely from left to right: 10 (CLOUD) | 0 (SUN) | 110 (RAIN) | 111 (SNOW) | 0 (SUN).

Giải chi tiết (VI): Đọc tách duy nhất từ trái sang phải: 10 (CLOUD) $\mid$ 0 (SUN) $\mid$ 110 (RAIN) $\mid$ 111 (SNOW) $\mid$ 0 (SUN).

Computational Thinking / Tư duy Máy tính: Prefix-Free / Huffman Coding (Mã tiền tố không nhập nhằng).

Question 7

Trung bình · +20 điểm

[Part B · Medium] Train cars 3 (bottom), 1 (middle), and 2 (top) sit in dead-end Track 1. A crane can move 1 top car at a time either:

  • from Track 1 to dead-end Track 2, or
  • from Track 1 or Track 2 directly out to the Departure Line.

We want cars to depart in the order 1 first, then 2, then 3. What is the minimum number of crane moves (counting both moves into Track 2 and moves to Departure)?

Hình minh họa câu 7
Chọn đáp án

Xem đáp án và lời giải

Đáp án: $4$ moves

Answer / Đáp án: $4$ moves ($4$ lần)

Step-by-step (EN): 1) Move 2 from Track 1 $\to$ Track 2. 2) Move 1 from Track 1 $\to$ Departure (1st). 3) Move 2 from Track 2 $\to$ Departure (2nd). 4) Move 3 from Track 1 $\to$ Departure (3rd). Total $= 4$ moves.

Giải chi tiết (VI): 1) Chuyển toa 2 từ Track 1 sang tạm Track 2. 2) Đưa toa 1 từ Track 1 ra Đường khởi hành. 3) Đưa toa 2 từ Track 2 ra Đường khởi hành. 4) Đưa toa 3 từ Track 1 ra Đường khởi hành. Tổng cộng đúng $4$ lần nhấc cẩu.

Computational Thinking / Tư duy Máy tính: Stack Shunting Yard Algorithm (Thuật toán điều phối ray tàu bằng ngăn xếp phụ).

Question 8

Trung bình · +20 điểm

[Part B · Medium] Each row of this $4 \times 6$ black-and-white icon is compressed by writing the lengths of consecutive runs starting with white (0) pixels. For example, Row 1 (001110) has $2$ white, $3$ dark, $1$ white $\to$ [2, 3, 1], which uses $3$ numbers. How many numbers in total are needed to compress all $4$ rows?

Hình minh họa câu 8
Chọn đáp án

Xem đáp án và lời giải

Đáp án: $14$

Answer / Đáp án: 14

Step-by-step (EN): Encode each row starting with white count:

  • Row 1 (001110): [2, 3, 1] ($3$ numbers)
  • Row 2 (011111): [1, 5] ($2$ numbers)
  • Row 3 (001010): [2, 1, 1, 1, 1] ($5$ numbers)
  • Row 4 (010001): [1, 1, 3, 1] ($4$ numbers)

Total numbers $= 3 + 2 + 5 + 4 = 14$.

Giải chi tiết (VI): Mã hóa từng hàng bắt đầu từ số ô trắng:

  • Hàng 1 (001110): [2, 3, 1] ($3$ số)
  • Hàng 2 (011111): [1, 5] ($2$ số)
  • Hàng 3 (001010): [2, 1, 1, 1, 1] ($5$ số)
  • Hàng 4 (010001): [1, 1, 3, 1] ($4$ số)

Tổng cộng cần $3 + 2 + 5 + 4 = 14$ con số.

Computational Thinking / Tư duy Máy tính: Image Compression via Run-Length Encoding (Nén ảnh nhị phân RLE).

Question 9

Trung bình · +20 điểm

[Part B · Medium] Water flows along one-way canals following the direction of the arrows starting from spring M. How many ponds in total (excluding M itself) receive water from M?

Hình minh họa câu 9
Chọn đáp án

Xem đáp án và lời giải

Đáp án: $5$ ponds

Answer / Đáp án: $5$ ponds ($5$ hồ)

Step-by-step (EN): From M, water reaches N and Q. From N it reaches P, and from P it reaches S. From both Q and S it reaches R. Thus all $5$ other ponds (N, P, Q, R, S) receive water!

Giải chi tiết (VI): Từ M nước chảy tới N và Q. Từ N chảy sang P, từ P xuống S. Từ Q (và cả S) nước chảy tới R. Vậy cả $5$ hồ (N, P, Q, R, S) đều nhận được nước.

Computational Thinking / Tư duy Máy tính: Graph Reachability / BFS Traversal (Khả năng liên thông trên đồ thị có hướng).

Question 10

Trung bình · +20 điểm

[Part B · Medium] A drawing bot executes the loop REPEAT 4 TIMES: [FD 3, RT 90, FD 2, LT 90], where FD k draws a segment of length $k\text{ cm}$ forward, RT 90 turns right $90^\circ$, and LT 90 turns left $90^\circ$. What is the total length (in cm) of the line drawn by the bot?

Chọn đáp án

Xem đáp án và lời giải

Đáp án: $20$

Answer / Đáp án: 20

Step-by-step (EN): Turns (RT 90, LT 90) draw $0\text{ cm}$. Inside one iteration, the bot draws $3 + 2 = 5\text{ cm}$. Repeating $4$ times gives $4 \times 5 = 20\text{ cm}$.

Giải chi tiết (VI): Các lệnh quay không vẽ thêm độ dài. Trong mỗi lần lặp, robot vẽ $3 + 2 = 5\text{ cm}$. Lặp lại $4$ lần nên tổng độ dài đã vẽ là $4 \times 5 = 20\text{ cm}$.

Computational Thinking / Tư duy Máy tính: Loops & Loop Invariants (Vòng lặp REPEAT trong lập trình Logo/Scratch).

Question 11

Khó · +30 điểm

[Part C · Hard] The blue collector bot starts at (row 4, col 1) and can make at most $6$ steps (1 cell up, down, left, or right per step). Each orange diamond gives $1$ gem when visited. What is the maximum number of gems the bot can collect within $6$ steps?

Hình minh họa câu 11
Chọn đáp án

Xem đáp án và lời giải

Đáp án: $4$

Answer / Đáp án: 4

Step-by-step (EN): From (4,1): going right twice reaches (4,3) in $2$ steps ($1$st gem). Moving up to (3,3) is step $3$ ($2$nd gem), up to (2,3) is step $4$ ($3$rd gem). With $2$ steps left, moving right twice to (2,5) (or left then up to (1,2)) collects a $4$th gem. No $6$-step path can reach $5$ gems.

Giải chi tiết (VI): Từ (4,1) đi sang phải $2$ bước tới (4,3) nhặt viên thứ $1$ (bước 2); đi lên (3,3) nhặt viên thứ $2$ (bước 3); đi lên (2,3) nhặt viên thứ $3$ (bước 4). Còn $2$ bước cuối, đi sang phải $2$ ô tới (2,5) nhặt viên thứ $4$. Không có lộ trình $6$ bước nào chạm được $5$ viên. Đáp số: $4$.

Computational Thinking / Tư duy Máy tính: Bounded Depth Search / Optimization on Grids (Tìm kiếm tối ưu giới hạn số bước).

Question 12

Khó · +30 điểm

[Part C · Hard] In this digital gate circuit, 1 means ON and 0 means OFF:

  • AND outputs 1 only if both inputs are 1.
  • OR outputs 1 if at least one input is 1.
  • NOT flips 1 $\leftrightarrow$ 0.

With inputs A = 1, B = 0, C = 0, what is OUT, and what happens to OUT if we flip C to 1 (keeping A = 1, B = 0)?

Hình minh họa câu 12
Chọn đáp án

Xem đáp án và lời giải

Đáp án: First OUT = 1, then OUT = 0

Answer / Đáp án: First OUT = 1, then OUT = 0

Step-by-step (EN): A AND B $= 1 \text{ AND } 0 = 0$. When C = 0, NOT C $= 1$, so 0 OR 1 = 1. When C = 1, NOT C $= 0$, so 0 OR 0 = 0.

Giải chi tiết (VI): Ta có A AND B $= 1 \text{ AND } 0 = 0$. Khi C = 0 thì NOT C = 1, nên 0 OR 1 = 1. Khi đổi C = 1 thì NOT C = 0, nên 0 OR 0 = 0.

Computational Thinking / Tư duy Máy tính: Boolean Logic Circuits (Mạch đại số Boole & Cổng logic).

Question 13

Khó · +30 điểm

[Part C · Hard] Six island villages (A to F) plan to keep just enough bridges so that every village can still reach every other village, while minimizing the total maintenance cost (numbers on edges). What is the minimum total cost of the chosen bridges?

Hình minh họa câu 13
Chọn đáp án

Xem đáp án và lời giải

Đáp án: $10$

Answer / Đáp án: 10

Step-by-step (EN): To connect $6$ villages we need $6 - 1 = 5$ bridges (Minimum Spanning Tree) using Kruskal's greedy rule (pick cheapest edges without forming a cycle): 1) E–F ($1$) 2) A–C ($2$) 3) B–C ($2$) (skip A–B of cost $3$ since A, B, C are already connected) 4) D–F ($2$) 5) B–E ($3$) connects {A, B, C} to {D, E, F}. Minimum total cost $= 1 + 2 + 2 + 2 + 3 = 10$.

Giải chi tiết (VI): Để nối thông $6$ làng không thừa chu trình cần đúng $6 - 1 = 5$ cây cầu (Cây khung nhỏ nhất – thuật toán tham lam Kruskal): 1) Chọn E–F ($1$) 2) Chọn A–C ($2$) 3) Chọn B–C ($2$) (bỏ qua A–B giá $3$ vì tạo vòng khép kín A-B-C) 4) Chọn D–F ($2$) 5) Chọn cầu rẻ nhất nối hai cụm {A,B,C} và {D,E,F} là B–E ($3$). Tổng chi phí nhỏ nhất $= 1 + 2 + 2 + 2 + 3 = 10$.

Computational Thinking / Tư duy Máy tính: Minimum Spanning Tree — Kruskal's Greedy Algorithm (Cây khung nhỏ nhất).

Question 14

Khó · +30 điểm

[Part C · Hard] A mystery robot picks a secret whole number from $1$ to $31$. Each turn, you ask a Yes/No question (such as “Is the number greater than 15?”), and the robot answers truthfully. In the worst case, what is the minimum number of Yes/No questions needed to guarantee finding the secret number?

Chọn đáp án

Xem đáp án và lời giải

Đáp án: $5$

Answer / Đáp án: 5

Step-by-step (EN): With $4$ Yes/No questions there are at most $2^4 = 16$ possible answer sequences, which cannot distinguish $31$ numbers. With $5$ questions, halving the range each time ($31 \to 15 \to 7 \to 3 \to 1 \to 0$ remaining uncertainty, since $2^5 = 32 \geqslant 31$) guarantees finding any number from $1$ to $31$.

Giải chi tiết (VI): Với $4$ câu hỏi Có/Không chỉ tạo ra tối đa $2^4 = 16$ khả năng trả lời (không đủ phân biệt $31$ số). Bằng cách hỏi chia đôi khoảng tìm kiếm liên tiếp, $5$ câu hỏi ($2^5 = 32 \geqslant 31$: $31 \to 15 \to 7 \to 3 \to 1$) luôn đảm bảo tìm ra chính xác số bí mật.

Computational Thinking / Tư duy Máy tính: Binary Search & Information Theory Bounds (Tìm kiếm nhị phân).

Question 15

Khó · +30 điểm

[Part C · Hard] A smart door starts in state Lock (indicated by the orange start arrow) and unlocks whenever it finishes in the double-circle state Open. Pressing button A or B follows the labeled arrow from the current state. Which button sequence leaves the door in state Open at the end?

Hình minh họa câu 15
Chọn đáp án

Xem đáp án và lời giải

Đáp án: B - A - A - B

Answer / Đáp án: B - A - A - B

Step-by-step (EN): Trace B - A - A - B from Lock: Lock $\xrightarrow{B}$ Lock $\xrightarrow{A}$ S1 $\xrightarrow{A}$ S1 $\xrightarrow{B}$ Open! (The other sequences reset back to Lock on their extra button after reaching Open.)

Giải chi tiết (VI): Truy vết dãy B - A - A - B từ Lock: Lock $\xrightarrow{B}$ Lock $\xrightarrow{A}$ S1 $\xrightarrow{A}$ S1 $\xrightarrow{B}$ Open! (Các dãy còn lại sau khi tới Open lại bấm thêm nút nên bị quay ngược về Lock).

Computational Thinking / Tư duy Máy tính: Finite State Machines / Automata (Máy hữu hạn trạng thái).

Cài đặt ứng dụng O₂ Education

Thêm O₂ Education vào Màn hình chính trên iPhone / iPad để học nhanh như ứng dụng gốc:

  1. Nhấn biểu tượng Chia sẻ trên thanh công cụ Safari.
  2. Cuộn xuống và chọn Thêm vào MH chính (Add to Home Screen).
  3. Nhấn Thêm ở góc trên bên phải để hoàn tất.