Home of real teaching & learning
  • Full support for teachers
  • Focus on critical thinking
  • Engaging classroom activities
  • Integrated student eBook
  • Assessed tasks / qBank
  • Practice exam questions

The InThinking Guarantee: Our sites are written by expert practitioners and not by AI

See our AI policy

Disclaimer: InThinking subject sites are neither endorsed by nor connected with the International Baccalaureate Organisation.

Don't miss out, find out!

B 4.1.6 Worksheet 3 Java

Name: _________________________ Scenario: You have an empty HashMap that uses an internal array of size 5 (indices 0-4). It uses chaining to resolve collisions. Hash Function: index = key.hashCode() % 5 Keys to insert in order, with their hash codes: Instructions: Calculations: "A" (65): 65 % 5 = ____________ "B" (66): 66 % 5 = ____________ "F" (70): 70 % 5 = ____________ "G" (71): 71 % 5 = ____________ "K" (75): 75...

Help