logo

AQA A-Level Computer Science practice

Using 6-bit two’s complement, represent -18 and state the range of values available with 6 bits. Show the conversion steps.

Try the question first, then check the answer and practise the same topic again.

At a glance

Question

Type

practice

Style

Topic

Binary number system

Exam-style question

Try this first

Using 6-bit two’s complement, represent -18 and state the range of values available with 6 bits. Show the conversion steps.

Answer and explanation

Concise answer

The positive value 18 is 010010 in 6 bits.

Why this is correct

A negative two’s complement value is formed by writing the positive magnitude in the specified number of bits, inverting every bit, and adding 1. The range is calculated as -2^(6-1) to 2^(6-1)-1, which is -32 to 31.

Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions