Question 1
[Part A · Easy] A sensor transmits temperature readings as a 6-bit unsigned binary integer (weights $32, 16, 8, 4, 2, 1$ from left to right). What decimal integer corresponds to 101101?
Một cảm biến truyền số đo dưới dạng số nguyên nhị phân không dấu $6$-bit (trọng số $32, 16, 8, 4, 2, 1$ từ trái sang phải). Hỏi dãy bit 101101 biểu diễn số thập phân nào? (Chỉ điền số)
Xem đáp án và lời giải
Đáp án: $45$
Answer / Đáp án: 45
Step-by-step (EN): Add weights at 1 positions: $32 + 0 + 8 + 4 + 0 + 1 = 45$.
Giải chi tiết (VI): Cộng các trọng số tại vị trí có bit 1: $32 + 8 + 4 + 1 = 45$.
Computational Thinking / Tư duy Máy tính: 6-bit Unsigned Binary Representation (Biểu diễn số nguyên nhị phân).