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.
A double is best used for numbers that are real, as in they have a decimal. Int is best used for numbers that are whole, as in no decimal. Strings are best used, as in the example you gave, when you have to represent a piece of information that isn’t strictly numbers
Answer:
false
Explanation:
pretty sure energy in motion is only for kinetic energy
Answer:
Option d pretest
Explanation:
Given the pseudocode:
- do stepA
- do stepB
- if conditionC is true
- then do stepD
- else
- do stepE
- end if
- while conditionF is true
- do stepG
- end while
The pseudocode above shows that there is a pretest before some codes are executed. For example, line 3 check if condition is true then only execute stepD otherwise execute stepE. Line 8 check if conditionF is true then repeatedly execute stepG. These are examples of pretest a condition will must be met (pretest passed) before a block of codes can be executed. This pretest can be seen in if-else statements and also the while condition.