a | b a & b a ^ b
| Field Name | Format | Size |
|---|---|---|
| first_name | ASCII Code | 8 bytes |
| student_id | Packed Decimal | 4 digits representing decimal digits (2 bytes) |
| quiz_answers | Bit String 0 means F, 1 means T. | 5 bits with 3 padding bits (1 byte) |
> py hexdump.py examp.bin
00000 41 6c 69 63 65 20 20 20 12 34 68
A l i c e ^R 4 h
You can also redirect the dump
from the Command Prompt Window to an output text file like this:> py hexdump.py examp.bin > dump.txtHere is the hex dump for quiz-scores.bin in case you have trouble running hexdump.py and saving the output.