Answer:
cout<<"User Age is ="<<userAge<<endl;
Explanation:
#include<iostream>
using namespace std;
int main()
{
int userAge;
cin >> userAge; // Program will be tested with values: 15, 40.
cout<<"User Age is ="<<userAge<<endl;
return 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.
Answer:
Steps 2 and 3 needs to be switched.
Explanation:
e2020