Compute 0x19 AND 0x1A in hexadecimal.

Study for the United Airlines Flight Simulator Technician Trade Test. Prepare with flashcards and multiple-choice questions, each with hints and explanations. Get ready for your exam!

Multiple Choice

Compute 0x19 AND 0x1A in hexadecimal.

Explanation:
Bitwise AND keeps a 1 only where both numbers have a 1 in the same bit position. Write both hex numbers in binary with the same width: 0x19 is 0001 1001 and 0x1A is 0001 1010. AND them bit by bit: 0001 1001 0001 1010 =0001 1000 That result is 0x18, which is 18 hex. The two least-significant bits don’t both equal 1, so they drop out, and only the higher bits where both inputs have 1 remain.

Bitwise AND keeps a 1 only where both numbers have a 1 in the same bit position. Write both hex numbers in binary with the same width: 0x19 is 0001 1001 and 0x1A is 0001 1010. AND them bit by bit:

0001 1001

0001 1010

=0001 1000

That result is 0x18, which is 18 hex. The two least-significant bits don’t both equal 1, so they drop out, and only the higher bits where both inputs have 1 remain.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy