1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
AlexFokin [52]
4 years ago
12

How do you do these questions? Question 6 can have multiple answers and 7 has only one answer

Computers and Technology
1 answer:
V125BC [204]4 years ago
3 0

Answer:

a.) str1.hashcode()==str2.hashcode();

b) x.hashcode() % bucket.length      node.getvalue().equals(x)

Explanation:

a) Collision happens in a hashset when 2 distinct keys generates the same hashcode() value. And when there happens more collisions then that condition leads to the worst case of the hashmap. And the objects that are the same according to the equals method must result into the same hashcode value. Hence the above option is true. And hence, option C is correct.  

b) The index of a hashset is given by x.hashcode()% bucket size

And remember hashset is a dictionary, and hence to check whether the value of a key pair is equal to object x we need to make use of .equals method. And hence the above mentioned option for b is correct. And it is D. option.

You might be interested in
Write a program. in QBAsSIC
goblinko [34]

Answer:

The program is as follows:

<em>5 INPUT A,B</em>

<em>6 PROD = A * B</em>

<em>7 PRINT PROD</em>

<em>8 TOTAL = A + B</em>

<em>9 PRINT TOTAL</em>

<em>10 DIFF = A - B</em>

<em>11 PRINT DIFF</em>

<em>12 END</em>

Explanation:

This gets input for the two numbers

<em>5 INPUT A,B</em>

This calculates the product

<em>6 PROD = A * B</em>

This prints the calculated product

<em>7 PRINT PROD</em>

This calculates the sum

<em>8 TOTAL = A + B</em>

This prints the calculated sum

<em>9 PRINT TOTAL</em>

This calculates the difference

<em>10 DIFF = A - B</em>

This prints the calculated difference

<em>11 PRINT DIFF</em>

This ends the program

<em>12 END</em>

5 0
3 years ago
Which element is located on the top left of the Word screen?
victus00 [196]
The <span>element located on the top left of the Word screen is the Quick Access Toolbar.  </span>On the quick access toolbar, you can find some of the common functions that you will need to use on a regular basis, it contains commands that are used most often, for example Redo, Undo and Save etc.
7 0
3 years ago
In what decade did the Internet begin to be used widely by the public and not just government entities?
ICE Princess25 [194]
I think 1980s, not 100% sure
7 0
4 years ago
Read 2 more answers
4:when a computer is on it is
Tanzania [10]

Answer:

c: running

Explanation:

when the computer is turned on The operating system keeps things organized in the background so that multiple programs can run at the same time

4 0
2 years ago
Haniyah drew a beautiful pencil sketch of a scenery. Her computer teacher asked her to convert it into a digital form and post i
Aleksandr-060686 [28]

Scanner.

<em> </em>A <em>scanner</em> is an input device that scans documents such as photographs and pages of text, when a document is scanned, it is converted into a digital format.

4 0
3 years ago
Other questions:
  • Assume that x is a double variable that has been initialized. Write a statement that prints it out, guaranteed to have a decimal
    5·1 answer
  • What device operates at the network layer (layer 3) of the osi model and forwards packets across computer networks?
    7·1 answer
  • What is one way for an entrepreneur to decrease risk?
    8·1 answer
  • An increase in Consumption will ___________ in the Classical Model of Aggregate Demand.
    13·1 answer
  • The measure of how quickly things may be converted to something of value is called.
    10·2 answers
  • Which U.S. government agency first funded the development of the Internet?
    12·2 answers
  • Rachel is a junior system administrator for a network with a single Active Directory domain. The network has just expanded to in
    6·1 answer
  • In order for storage devices to be prepared for use, they must be ____________ Group of answer choices pre-prepared loaded initi
    11·2 answers
  • As you explore career options why is it important to take personal inventories and assessments
    5·2 answers
  • Explica porque se afirma que la existencia de estaciones cambia las combstumbres y la cultura​
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!