subject

These questions are from java

1. if x and y are both arrays of int values which of the following shows a call to a method of the arrays class that will fill all the elements of the array with the value 25?

a) java. util. arrays. replace (x, 25) ;
b) java. util. arrays. insert (x, 25) ; i think this one
c) java. util. arrays. fill (x, 25) ;
d) java. util. arrays. setall (x, 25) ;

2. if x and y are both arrays of int values, which of the following shows a call to a method of the arrays class that will determine if the two arrays have the same contents?

a) boolean b = java. util. arrays. compare (x, y) ;
b) boolean b = java. util. arrays. equals (x, y) ;
c)boolean b = java. util. arrays. check (x, y) ; i say this one
d) boolean b = java. util. arrays. binarycompare (x, y) ;

3. if x is an array of int values which of the following shows a call to a method of the arrays class that will sort its contents?

a) java. util. arrays. sort (x, y) ;
b) java. util. arrays. binarysort (x, y) ; this one?
c. java. util. arrays. order (x, y) ;
d. java. util. arrays. reorder (x, y) ;

4. if x is a sorted array of int values which of the following shoes a call to a method of the arrays class that will determine if the value 7 exists in the array?

a) int loc = java. util. arrays. search (x, 7) ;
b) int loc = java. util. arrays. binarysearch (x, 7) ;
c) int loc = java. util. arrays. find (x, 7) ; this one
d) int loc = java. util. arrays. locate (x, 7) ;

let me know if my answers are right or wrong and why!
you so

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
Match the steps of the process to julia's analysis. 1. analyze choices. current costs for making phone calls to foreign countries averages between five and ten cents a minute. 2. determine the goals. julia needs to reduce the cost of telecommunications without reducing her employees' ability to do their jobs. 3. gather data. the corporate computer network will be able to handle the increased traffic that will occur as a result of voip. 4. evaluate the decision. julia will have her it department set up voip in the smallest domestic office. 5. make the decision. julia will have employees document the benefits and problems that result from using the new technology.
Answers: 1
question
Computers and Technology, 23.06.2019 12:30
What is the difference between the internet and the world wide web?
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. sean is a computer programmer. he has programmed an application for toddlers that plays nursery rhymes. however, a logic error has occurred in the program. which problem is a likely consequence of the error? a. the program crashes every time the user wants to play the nursery rhymes. b. the program crosses its buffer boundaries and overwrites an adjacent program. c. the program plays a different nursery rhyme than the one the user intended to play. d. the program shows different structures in its programming language code. e. the program introduces new viruses every time the user plays a nursery rhyme.
Answers: 1
question
Computers and Technology, 24.06.2019 01:00
The initial tableau of a linear programming problem is given. use the simplex method to solve it. x 1 x 2 x 3 s 1 s 2 z 1 2 4 1 0 0 8 3 4 1 0 1 0 10 minus3 minus12 1 0 0 1 0 the maximum is nothing when x 1equals nothing, x 2equals nothing, x 3equals nothing, s 1equals3, and s 2equals0. (be sure to simplify to lowest terms if necessary.)
Answers: 2
You know the right answer?
These questions are from java

1. if x and y are both arrays of int values which of the...
Questions
question
History, 17.12.2020 17:50
question
Mathematics, 17.12.2020 17:50
Questions on the website: 13722360