subject

Consider the following method. public static int getValue(int[] data, int j, int k)
{
return data[j] data[k];
}
Which of the following code segments, when appearing in another method in the same class as getValue, will print the value 70?
a. int arr = {40, 30, 20, 10, 0);
System. out. println(getValue(arr, 1, 2));
b. int[] arr = {40, 30, 20, 10, 0);
System. out. println(getValue(arr, 1, 2));
c. int[] arr = {50, 40, 30, 20, 10};
System. out. println(getValue(arr, 1, 2));
d. int arr = {40, 30, 20, 10, 0};
System. out. println(getValue(arr, 2, 1));
e. int arr = {50, 40, 30, 20, 10};
System. out. println(getValue(arr, 2, 1));

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 19:00
Jill wants to become a network professional. which certification would be useful for her? a. mcse b. pmp c. comptia a+ d. ccie
Answers: 2
question
Computers and Technology, 22.06.2019 03:40
Hello my name is mihai and i need your : )i have to do a python project in computer science and iā€™m really busy with my mocks this period of time besides this iā€™m not good at coding so could someone pls pls pls sort me out ? i actually beg ; ))
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
Technician a says that a shop towel should never be used to clean around the flange area before replacing an automatic transmission filter. technician b says that a dimpled transmission fluid pan can be repaired. who is right
Answers: 3
question
Computers and Technology, 23.06.2019 00:00
What engine component is shown in the above figure?
Answers: 1
You know the right answer?
Consider the following method. public static int getValue(int[] data, int j, int k)
{
...
Questions
question
Mathematics, 10.10.2019 20:30
question
Biology, 10.10.2019 20:30