Playtime 3

Claude

2024-10-23

Conversions

Don’t use an online converter, but you may use one to check your answers.

Convert the following into decimal

  • 0b110011
  • 0b11111111
  • 0x7f
  • 0xfaceb00c

Convert the following into hexadecimal

  • 8
  • 10
  • 15
  • 16

The ones below are advanced:

  • 65
  • 864
  • b1100001110100101 (extra points if done without converting to decimal first)

Math

The following sums are in binary, answers should also be in binary. Ideally you will be able to do them without converting them to decimal in your head (even if you convert to decimal to check your answer).

  • 0b1000 + 0b10
  • 0b1000 + 0b10111
  • 0b1 + 0b1
  • 0b101 + 0b1
  • 0b111 + 0b1
  • 0b10000 - 0b1
  • 0b100 * 0b10

The same for hex sums

  • 0x10 + 0x1
  • 0x10 + 0x6
  • 0x9 + 0x1
  • 0x9 + 0x6
  • 0x9 + 0x7
  • 0xa + 0x2
  • 0x9f + 0x1
  • 0xff + 0x1
  • 0x1000 - 0x1
  • 0xd0d0 / 0x10 (advanced)

Finally

Redo the playtime/hands-on from the lesson (possibly we didn’t get to finish it).