Lab 2: Read bytes, offsets and signatures · lab v0.1.1 · quiz revision 1 · 7 written-response questions · 100 points
https://knowledge.wandt.us/labs/hex/
Instructors may import this lab’s supplied quiz CSV into their own course. Link learners to the original lab page for the guide and practice files. The CSV imports questions and point values into a Brightspace quiz. Create the quiz first; attachment controls and course settings are configured after import.
Quiz file: hex-quiz-r1.csv

Plan the session
• Allow about 45–60 minutes for the lab, plus installation and course submission time. This is a planning estimate.
• Suggested preparation: Hashing and file integrity.
• Mac: HexLume, HashLume. Windows: HxD, HashMyFiles. Check installation, export access and student licensing before class.
• Use the synthetic packet on the lab page. Reference results are public; assess the learner’s own documented observations. If substituting your own dataset, revise the prompts and expected evidence before importing.

What students should be able to do
• Find bytes using zero-based decimal and hexadecimal offsets.
• Interpret a two-byte unsigned value in both byte orders.
• Distinguish a file signature from complete format validation.

Teach this lab
1. Opening question: Write a two-byte field on the board. Ask students to point separately to the address, the stored bytes, and the number displayed by the inspector. Have them predict which will change when they switch byte order.
2. During practice: Have partners hold the starting offset fixed while switching the unsigned 16-bit display. Then move to the second file: the last screenshot must document the leading signature bytes, not a hash refresh.
3. If students get stuck: If the values do not reconcile, ask to see the filename, base of the offset, field width and signed/unsigned control. A rich-text document saved with a binary-looking name is a different file; check the source packet before debugging the calculation.
4. Debrief: If the displayed integer changes while the same file retains its digest, how can both measurements be right? What additional check would you want before calling a file valid from its prefix?

What the quiz collects · 100 points
1. Upload your evidence files (15 points). Attach evidence.zip. It contains only the before/ and after/ folders, each with the two evidence files. Include these files in each folder: practice-bytes.bin, practice-signature.dat. Inspection only. Both files must remain byte-for-byte unchanged; changing the displayed byte order does not edit the file. Reopen the ZIP before submitting. Keep exports, screenshots and notes outside it.
2. Upload your hash exports (15 points). Attach before-hashes.csv and after-hashes.csv together in this item. These are the two original exports from your hash app. Retain the original columns, filenames, byte sizes and complete SHA-256 values. Compare each file’s before and after results to its own bytes.
3. Upload S01 — Little-endian interpretation (5 points). Attach S01.png or S01.jpg. Use additional images only when needed to show all required details. practice-bytes.bin at hexadecimal offset 0x0D with the two bytes selected, the unsigned 16-bit interpretation and little-endian setting visible.
4. Upload S02 — Big-endian interpretation (5 points). Attach S02.png or S02.jpg. Use additional images only when needed to show all required details. The same file, offset and two bytes, now with the unsigned 16-bit interpretation and big-endian setting visible.
5. Upload S03 — Signature bytes (5 points). Attach S03.png or S03.jpg. Use additional images only when needed to show all required details. practice-signature.dat from offset zero, with its leading bytes and decoded text visible. Keep the filename and offset column in view.
6. Upload your observation record (25 points). Attach observations.txt using the blank text template on the lab page. If you already made observations.csv, that is also accepted. Submit one observation record. Submit observations.csv or observations.txt with filename, offset and number base, exact raw bytes, selected length, unsigned data type, byte order and interpreted value. Include the signature observation and the limits of inferring a file type from a prefix.
7. Enter your findings and work details (30 points). Type your explanation and work details directly into Brightspace. This item needs no file attachment. Connect each interpretation to the same selected bytes. Explain why changing byte order changes a displayed number while the file hash remains unchanged. Explain what the signature supports and what it cannot establish about the rest of the file. Record the lab ID/version, dataset ID and assigned packet, your operating system and app versions, the operations you actually performed, and the screenshot or file supporting each conclusion. Disclose sources, collaboration and AI assistance according to the assigned course rules. State unavailable fields and failed operations honestly. A supplied reference result is not an operation you performed.

Set up in Brightspace Quizzes
1. Open Quizzes in your course. Create a New Quiz, keep it hidden, and name it “Lab 2: Read bytes, offsets and signatures”. Put this lab link in the description: https://knowledge.wandt.us/labs/hex/
2. Inside the new quiz choose Add Existing → Upload a File. Select hex-quiz-r1.csv, review the question preview, choose Import All, and save. Import once into an empty quiz to avoid duplicates.
3. Reopen questions 1–6. In each Written Response question enable the option allowing learners to insert images and add attachments, then save. The last question, Q7, calls for typed findings. Keep the question order fixed and shuffling off.
4. Confirm 7 Written Response questions, the item weights above and 100 points total. These questions require manual evaluation. Set dates, timing, permitted attempts, accommodations, gradebook connection and feedback release for your course. State your sources, collaboration and AI disclosure rules before students begin.
5. Preview while hidden. Open the lab link, try an evidence ZIP on Q1, both CSVs together on Q2, a screenshot, and typed findings on the last item. In a permitted test attempt verify the files can be reopened in evaluation. Only then make the quiz visible. Do not reimport over a quiz with student attempts.

Evaluate two possible responses
• Practice response A: “The offset stayed fixed, but changing the byte order changed my number.” Look for the same file, selection and unsigned width in both views. Credit a reproducible comparison even when the two apps label the control differently.
• Practice response B: “I know the file is valid because its first bytes match a known signature.” Credit the located bytes and offset when shown. Ask what the prefix cannot establish about the rest of the file. Do not deduct for an unchanged final digest in this inspection-only lab.

Give useful feedback
• Open the submitted files, including any explanation placed in an attachment. Distinguish a missing deliverable from one submitted in the wrong place. If a file cannot be inspected, follow up before assigning a zero.
• When a Mac evidence ZIP includes ._ entries, inspect the named evidence in before/ and after/ and compare its bytes with the hash exports. Confirmed archive metadata alone is not a missing file, an evidence change or grounds for a deduction. Check an unexplained extra file separately.
• Give credit for equivalent Mac and Windows evidence. For a deduction, identify the specific criterion, point loss and evidence. Avoid charging the same mistake twice; credit a sound explanation of a limitation even when a practical step is incomplete.

Brightspace documentation
https://community.d2l.com/brightspace/kb/articles/5012-create-and-configure-a-quiz
https://community.d2l.com/brightspace/kb/articles/3410-creating-question-library-questions

Copyright © 2026 Adam Scott Wandt. All rights reserved.

This notice applies to all copyrightable original Wandt Knowledge material,
including site code, text, course materials, lab guides, original graphics and
screenshots, downloads, and synthetic practice materials.

Faculty are welcome to assign these materials in their classes by linking
students to the original live pages at https://knowledge.wandt.us/. Please use
links in your syllabus, course website, or learning management system so
students access the current materials directly from Wandt Knowledge.

These materials are updated regularly to reflect new developments, improve
instructions, and correct errors. Linking students to the original live pages
helps ensure they use the current version rather than an outdated copy.

Instructors may import designated LMS files into their own courses, change
their own assessment questions, and specify submission through their LMS or
by email. Always credit Professor Adam Scott Wandt and Wandt Knowledge and
link to the original assignment. Keep the public assignment intact. For other
redistribution, request permission at https://wandt.us/contact unless
applicable law permits the use. See https://knowledge.wandt.us/terms/.

These materials are not released under an open-source or Creative Commons
license. Public access and download availability do not place them in the
public domain. Other uses require separate permission from Adam Scott Wandt,
except as permitted by applicable law.

Third-party materials, software, trademarks, and interface elements remain
subject to their respective owners' rights and terms.

