Computers and Technology
Computers and Technology, 24.01.2020 07:31, SmokeyRN

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

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 22:50, atifgujar
An environmental protection agency study of 12 automobiles revealed a correlation of 0.47 between engine size and emissions. at 0.01 significance level, can we conclude that there is a positive association between the variables? what is the p value? interpret.
Answers: 2
image
Computers and Technology, 24.06.2019 02:20, isabelsmhl
Peter is thinking of a number which isless than 50. the number has 9 factors. when he adds 4 to the number, itbecomes a multiple of 5. what is thenumber he is thinking of ?
Answers: 1
image
Computers and Technology, 24.06.2019 07:00, sudotoxic
Into what form does the barcode reader convert individual bar patterns?
Answers: 1
image
Computers and Technology, 24.06.2019 16:00, achsahjosey
This isn't about school but every time it tells me to watch an ad to unlock the answer to a question it prompts a survey and it just keeps loading. so i haven't been able to get answers for my tests in like a week.
Answers: 2
Do you know the correct answer?
These questions are from java

1. if x and y are both arrays of int values which of the...

Questions in other subjects: