The Hash Test mechanics

2024-02-26
Witold PaluszyƄski

1. Introduction

The Hash Test system assumes writing a test in the lecture hall. The test consists of 16 yes/no/do not know questions graded 1 for the correct answer, -1 for an incorrect answer, and 0 for do not know, or no answer. This is a closed-book test. No books, notes, or electronic aids can be used. An Android smart phone can be used to write the test, as described below.

Alternatively, the test can be written on paper. The procedure is different for the smart phone and paper version, but the same questions are anwered with both versions.
The smart phone version is preferred as it has several important advantages.

2. Group numbers

Tests are written in sixteen groups numbered from 0 to F, in hexadecimal notation. The questions for all groups are identical, but are answered in different order. Answers are evaluated as a sequence of Yes/No/Do not know marks, so it is critical, that the correct group number is used.

Each student determines his/her group number based on their university student number (index or album number), a decimal number, and the test weights vector, which is also a decimal number provided by the instructor for each test.

The rule for determining the group number: match the test weights vector to the tail of the student number, then multiply each digit of the weight vector by the corresponding digit in the student number, and add all the multiples. The test group number is obtained as the modulo 16 of the calculated sum. The group number is a number from 0 to 15, but is always expressed as a single hexadecimal digit, so group numbers 10 to 15 are actually denoted as: A, B, C, D, E, F.

This method of calculating the group number can be illustrated by the following examples. Suppose the student number is 123456.

Example 1: weight vector is 12
The group number is calculated as (1*5 + 2*6) mod 16 = 17 mod 16 = 1

Example 2: weight vector is 213
The group number is calculated as (2*4 + 1*5 + 3*6) mod 16 = 31 mod 16 = 15 = F(hex)

Example 3: weight vector is 342
The group number is calculated as (3*4 + 4*5 + 2*6) mod 16 = 44 mod 16 = 12 = C(hex)

Example 4: weight vector is 225
The group number is calculated as (2*4 + 3*5 + 4*6) mod 16 = 48 mod 16 = 0

The modulo 16 operation is the remainder from dividing the argument by 16, but is easiest calculated by subtracting 16, or multiples of it, from the argument.

3. Paper version - sending hash test results via website

Sample form on which you can write and turn in a paper version: PDF

The written paper test must be turned in to the instructor after the completion of the test. Additionally, it is required to accurately submit the full content of the completed answer form within two days (48 hours) after the hash test, on the website: SENDHASH
The form requires logging in with the credentials used to log in to the diablo/panamint servers.

If you fill out the web form incorrectly and your answer is not accepted, you can resend the answer in the correct form. If this does not help and the result is still missing or incorrectly calculated, please contact the instructor.

If you send your test results that are formally correct, but with an incorrectly entered contents (answer string), for which the result was calculated and is available via the results form, then correcting this situation absolutely requires personal contact with the instructor.

Failure to complete the answer correctly and timely, an answer submitted in an incorrect format, or sending an answer that is inconsistent with the answers in the submitted written work are grounds for not recognizing the hash test result!

4. Electronic version - sending hash test results with a smartphone

It is possible to write the hash test on an Android phone instead of paper. The phone sends answers to the server in real time, so you don't have to write anything on paper, or send in your answer later. While taking the test, you can go back to previous questions and answer them again. The second time a question is answered, it supersedes the previous one. The application simultaneously saves the entire contents of the test in an encrypted file on the phone, and it can be used in the event of a loss of Internet connection or other kind of smartphone failure.

Hash test results sent by the application are processed immediately after the test, and are made available through the results form on the course web page.

To write tests on your phone, you need a smartphone with Android in the version required by the application (>= 4.0) with a good quality Internet connection. You need to install the version of the application appropriate for a given test, and enter your data in the application, the name of the subject, the test code, and the address of the test server (these data are provided by the instructor).

The application can be downloaded from the following link:
Android app for writing Hash Test - Haszowki version 1.0.16b

To try out the application, you can use the following trial test: PDF. With the data of this test, you can launch the application and answer any questions. The answers are sent over the Internet to the test server but do not count for anything.

NOTE: the above smartphone app is useful not only for writing the test and sending the results over the Internet. It can also be used to calculate the group number of a test written on paper and sent by hand. It is worth doing, because it ensures the correct group number calculation, and a mistake in computing the group number manually practically disqualifies the written test.

5. Android app - detailed instructions and emergency procedures

Electronics are intrinsically unreliable, but writing a test on a phone is a proven and safe procedure, provided the following rules are followed.