Test on How a computer works

How a Computer Works: A Comprehensive Guide for Students

Question 1 of 50%

To convert a decimal number to binary, the method involves repeatedly dividing the decimal number by 2 and recording the remainders, which are then read from bottom to top to form the binary number.

Test: Computer Binary Operations, Logic Gates, Central Processing Unit, Computer Memory, Computer Misconceptions

20 questions

Question 1: To convert a decimal number to binary, the method involves repeatedly dividing the decimal number by 2 and recording the remainders, which are then read from bottom to top to form the binary number.

A. Yes

B. No

Explanation: The study materials describe the method for converting decimal to binary as: 'To convert a decimal number to binary, repeatedly divide the decimal number by 2 and record the remainder. Continue until the quotient is 0. The binary number is formed by reading the remainders from bottom to top.'

Question 2: According to the binary system described, what is the decimal value contributed by the '1' at the third position from the right in the binary number 1101₂?

A. 1

B. 2

C. 4

D. 8

Explanation: In the binary system, each position represents a power of 2. The rightmost digit is 2⁰, the next is 2¹, and so on. For the binary number 1101₂, the positions from right to left are: 2⁰, 2¹, 2², 2³. The third position from the right corresponds to 2². Therefore, the '1' at the third position contributes (1 * 2²) = 4 to the decimal value.

Question 3: If at least one input to an AND gate is 0, its output is 1.

A. Yes

B. No

Explanation: The study materials state that an AND gate outputs 1 only if ALL inputs are 1. Otherwise, it outputs 0. This means if at least one input is 0, the output will be 0, not 1. The truth table confirms this, showing outputs of 0 for input combinations (0,0), (0,1), and (1,0).

Question 4: According to the study materials, how many bits does a full adder combine to add?

A. One bit

B. Two single bits

C. Three bits (two input bits and a carry-in bit)

D. Four bits

Explanation: The study materials state that 'A "full adder" combines two half adders to add three bits (two input bits and a carry-in bit).'

Question 5: Registers within the CPU can store intermediate results of calculations.

A. Yes

B. No

Explanation: The study materials state that 'Registers... hold data that the CPU is currently working on, such as instruction addresses, data values, or intermediate results of calculations.'