Extra practice questions (solutions)

 

Processor speeds and times between clock pulses

 

Processor clock speed

Seconds between pulses

Nano-seconds between pulses

1.5 GHz

6.67 x 10-10

 

7.14 MHz

1.4 x 10-7

 

2.2 GHz

4.54 x 10-10

                

 

Integer conversions between binary, octal, hex, decimal

 

Original base

Number to convert

Base to convert to

Binary

Octal

Hex

Decimal

Binary

10111000

 

 

 

 

Octal

1751

 

 

 

 

Hex

1AA2

 

 

 

 

Decimal

123456

 

 

 

 

 

Conversions with fractions

Original base

Number to convert

Base to convert to

Binary

Octal

Hex

Decimal

Binary

111.11

 

 

 

 

Octal

54.22

 

 

 

 

Hex

1AA.B

 

 

 

 

Decimal

321.5

 

 

 

 

 

Non-decimal addition

Number system

Example one

Example two

Example three

Binary

  100010

+010010

  10101010

+01111111

  10110101

+01100101

 

 

 

Octal

  177

+ 12

  123456

+  23457

  32

+77

 

 

 

Hexadecimal

  12

+10

  2B9

+  FF

  ABCDEF

+1234567

 

 

 

 

Non-decimal subtraction

Number system

Example one

Example two

Example three

Binary

  1011

-0011

  1011011

-1000101

  0001

-0010

 

 

 

Octal

  101

-  55

  4510

-  227

  2

-7

 

 

 

Hexadecimal

  A1

-10

  8EA2

-   F2A

  A

-F

 

 

 

 

Non-decimal multiplication

Number system

Example one

Example two

Binary

  100

*  11

  1011

  *101

 

 

Octal

  7

*2

    512

  *123

 

 

Hexadecimal

  A

*2

     2A1

   *10B

 

 

 

Converting between unsigned binary, one’s complement and two’s complement

Number system

Unsigned Binary

One’s complement

Two’s complement

Decimal

-0111

 

 

 

1011

 

 

 

 

10111

 

 

 

 

111001

 

 

 

 

-15