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
Katarina [22]
3 years ago
8

Which one of the following is a correct declaration for a method named passAList that has as arguments an array list myList of s

ize 10 and an integer array intArr of size 20, and that modifies the contents of myList and intArr?
Computers and Technology
1 answer:
alekssr [168]3 years ago
3 0

Answer:

"public static void passAList(ArrayList<Integer> myList, int[] intArr)", is the correct answer for the above question.

Explanation:

Missing information :

  • The option is missing but the question states "choose from the following". The correct defining syntax is defined above.

Detailed Explantion :

  • The above question asked about syntax which takes the value of list and array as an argument.
  • It is already defined in the above syntax.
  • And the value is passed by the user at the time of function call.
  • The array list is defined by the help of the ArrayList class and the array is defined by the help of the "[]" symbol.

You might be interested in
Write a function negateOdds that takes a list of integers and returns a list of integers with all of the odd integers negated. n
aleksley [76]

Is this computer science?

If so, then the function you would need for your code is this...

_____

if (someValue%2 != 0) {

 value *= -1;

        }

_____

//basically <u>number%2 == 0</u> means even so "!" means false so "not even" meaning "odd."

Assuming you are doing an array list (given a set value) or a for-loop with an

int someValue = Integer.parseInt(args[i]); inside (not given a set value and not restricted)

Otherwise ignore me....lol

5 0
3 years ago
Which file extension does GIMP save a file in (before saving it in a file format that can be used by other programs)?
andreev551 [17]
Portable document format
8 0
3 years ago
Computers are not just stand-alone desktop machines anymore. They are often embedded in common appliances and technology that we
Mila [183]
A DVD does not have a computer in it.
4 0
3 years ago
Read 2 more answers
class bClass{public:void setX(int a);//Postcondition: x = a;void print() const;private:int x;};class dClass: public bClass{publi
MaRussiya [10]

Answer:

The answer to the given question in the option "a".

Explanation:

In the given c++ program the correct sets value of x and y is option a:

void dClass::setXY(int a, int b) //function implementation

{ //function body.

x = bClass.setX(a); //variable x hold value of setX() function.

b = y;  //variable b holds value of y.  

}

And other option are not correct that can be described as:

  • In option b, x is private variable of the base class that is inherit by the derived class but variable y is not part of the base class. that's why it is wrong.
  • In option c, x= a is correct but y=b is not correct. that's why it is wrong.
  • In option d we access the value of the private variable x that is a part of the base class but in this we not use any variable that holds its value. that's why it is wrong.

So the answer to this question is the option "a".  

6 0
3 years ago
You are comparing two properties for lease. The first, A, is all-inclusive at $4,000 per month. The second, B, is $2,300 per mon
Lemur [1.5K]
Take 4,000 times 12 to get 48,000. that’s how much A costs.

B is a little harder. you have to take (2,300+300)x12+(4*250). this equals $32,100

the correct answer would be B.
6 0
3 years ago
Other questions:
  • When programming, the word "execute" means which of these?
    13·1 answer
  • 24 bit or 16 million colors is often called?
    7·1 answer
  • What is a program that, when installed on a computer, records every keystroke and mouse click?
    11·1 answer
  • You are most likely to use<br> images for photos or digital paintings.
    6·1 answer
  • In symmetric key cryptosystem, assume that Alice and Bob have set up a common key Kab. This key is only known to Alice and Bob.
    12·1 answer
  • Does access provide email communication
    13·1 answer
  • Which among the following choices is correct based on the two statements listed below? Statement 1: When the lexical analyzer sc
    12·1 answer
  • JAVA
    5·1 answer
  • Select the correct answer.
    10·1 answer
  • Software that allows users to use and adapt it for any purpose, often allowing the public to participate in further development
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!