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
svetoff [14.1K]
3 years ago
7

How do you do these questions? The first two questions could have multiple answers and the third is one answer only.

Computers and Technology
1 answer:
mr_godi [17]3 years ago
8 0

Answer:

1. c is the correct option, a and b are false

2. It is always desirable that all the object instance variables contribute to calculating the hash code.

3..( getfirstname +getSecondName).Hashcode()

Explanation:

1. Two same hashcode cannot be in same hashset, and if two keys are equal then it does not mean, their hash code should also be equal. And if a key is greater, then its hashcode will definitely be greater.

2. Each object instance variable must contribute to calculating the hash code, as we need one hash code for each key or object. However, set.Contains(Obj) must return true if we have a hash code for that object, as it must be present in HashSet then.

3. Also for each of the key we need one hash code, and here the first name and the last name together are making one key, and hence we should concatenate both, and then generate a hash code for that concatenated key, and hence the correct option is (getFirstName + getSecondName).Hashcode()

You might be interested in
Every program that is created will have a starting point called ___________and is the beginning of execution.
pashok25 [27]

Answer:

Compute I think

Explanation:

I'm not 100% sure

4 0
3 years ago
Given the following code char a[2][4] = { { 'c', 'a', 'r', 'b' }, { 'i', 'k', 'e', '\0' } }; char *p = &a[0][0]; while (*p !
adell [148]

Answer:

You'd get a compiling error.

Explanation:

Since this code is presumably written in C++, it doesn't include an "int main()", and without it you'll have a compiling error when you create functions. Since the start of a C++ program is looking for "int main()" and one doesn't exist, the program cannot compile.

Since the only function here is the while statement, then that's what the compiler will scream at you for. If you put all of this code within an "int main()", you'll no longer have a compiling error, and you'll have "carbike" written to the console.

I hope this explanation helps! You're welcome!

7 0
2 years ago
_______________ is the practice of using a network of remote servers hosted on the Internet to store, manage, and process data,
sleet_krkn [62]
Answer:
The answer is "Cloud Computing"
Explanation:
Cloud computing refers to the process of storing and accessing data and programs through the internet rather than on your hard disk. I hope this helps! ^-^
8 0
2 years ago
Find all supplier names and cities who supply expensive chairs, where expensive chairs are those whose selling price is greater
Gnesinka [82]

Answer:

select s.sname from supplier s,product p,supply su where s.s#=su.s# and p.p#=su.p# and p.p_name like 'chairs' and p.price>300

Explanation:

First of all, we need to select all the required columns from the specific tables so that the data in those columns can be display by executing this SQL query.

As the task at hand is to find all supplier names and cities who supply expensive chairs therefore we need to join three tables in order to look for the supplier name selling the highest prices.

In the above SQL query, the conditons "s.s#=su.s# and p.p#=su.p#" will join tables and the conditons "p.p_name like 'chairs' and p.price>=300" will be used to search for the chair with price greater than $300.

6 0
3 years ago
| The entire hostname has a maximum of
Varvara68 [4.7K]

Answer:

255 characters.

8 0
4 years ago
Other questions:
  • A programming error that causes a program to generate incorrect results due to failing to use the proper combination of statemen
    14·1 answer
  • What happens when a Boolean expression is evaluated?
    7·1 answer
  • Complete the following sentence.
    13·2 answers
  • What is the advantage of using standards to develop and implement protocols?
    10·1 answer
  • Antonia runs her own business as a cabinetmaker. What benefit and what drawback does her sole proprietorship entail?
    9·1 answer
  • Shortest Remaining Time First is the best preemptive scheduling algorithm that can be implemented in an Operating System.
    7·1 answer
  • 10x10=
    5·2 answers
  • Marissa is designing a web page that features lessons on how to build cabinets. how can she make the page most engaging for the
    7·1 answer
  • Ok so this isn’t really a question that is for school but...
    13·1 answer
  • Please say me the answer fast its really urgent........ ​
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!