Answer:
E) None of these will work
Explanation:
Option A, string names[5] will not work because the keyword String is not properly capitalized. Generally, arrays are declared and initialized. This is accomplished in Java Programming language with the new keyword or by assigning initial values to the array in a pair of braces. A valid declaration and initialization for the above question will be any of these two;
String [ ] names = new String [5];
String [ ] namesTwo = {"John", "James", "Jonathan","John", "Jabez"};
In the first example a new array object is created with the new keyword with a provision to hold five elements
In the second example the array is created and and assigned five elements.
Answer:
4
Explanation:
The loop is used to execute the part of code or statement again and again until a condition is not true.
syntax of for loop:
for(initialize; condition; increment/decrement){
statement;
}
in the question, the value of n is zero.
then, for loop check the condition k<2, initially the value of k is zero. so, the condition is true and execute the code n = 0 +2=2
Then, k is increment by 1. so, the value of k is 1.
then, again loop run and check the condition 1<2, it true. then n = 2+2=4.
then, k is increment by 1. so, the value of k is 2.
Then, again check the condition 2<2, condition false and program terminate the loop and finally print the value 4.
Workplace communication can suffer when individuals of that workplace tend to keep to them self and get aggressive
Answer:
Tbh, you should probably keep the brain headset, but that’s in my opinion. I suggest you keep the one you use the most, because that would mean you probably like that one a bit more.
Answer:
4-1-9 Fraud this is a global message this is only for Banks in any kind of problem so I advise you to not post questions like this for I understand this type of problem as a CEO in a banking company. (This Message Has been approved by Fellow Enployee members).
Explanation: