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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 00:10, witerose701
Write a function so that the main0 code below can be replaced by the simpler code that calls function mphandminutes tomiles0. original main0 int main) l double milesperhour-70.0; double minutestraveled = 100.0; double hourstraveled; double milestraveled; hourstraveled = minutestraveled / 60.0; milestraveled = hourstraveled * milesperhour; cout < "miles" 2 using namespace std; 4 /* your solution goes here/ 6 int maino 1 test passed 7 double milesperhour 70.0 all tests passed 8 double minutestraveled 100.0; 10 cout < < "miles: " < < mphandminutestomiles(milesper-hour, minutestraveled) < < endl; 12 return 0; 13
Answers: 1
image
Computers and Technology, 23.06.2019 21:20, nathanfletcher
In microsoft word, when you highlight existing text you want to replace, you're in              a.  advanced mode.    b.  automatic mode.    c.  basic mode.    d.  typeover mode
Answers: 1
image
Computers and Technology, 24.06.2019 00:30, sethhdoty
Use the keyword strategy to remember the meaning of the following word. the meaning for the word has been provided. write your keyword and describe the picture you would create in your mind. obfuscate: to make something so confusing that it is difficult to understand.
Answers: 2
image
Computers and Technology, 24.06.2019 01:00, gymnast8900
Me if you do then you get 10 points and brainliest
Answers: 1
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 in other subjects:

Konu
Mathematics, 21.11.2019 06:31