Answer:
The following code is:
do // set do while loop
{
response = stdin.next();
}
while (response != "Y" || response != "y" || response != "N" || response != "n");
// terminate do while loop
Explanation:
The following code starts with do while loop whose variables has already declared and then we assume the availability of the variable "stdin" which references the Scanner object and write some code to execute inside the do-while loop.
4. Only (ii)
<u>Explanation:</u>
The declaration of the array can be of two types:
1. int a[100];
2. int[] a = new int[100];
The general thing about an array is that whenever we want to undergo traversal in an array, we always have to start from the 0th position as the size of the array may be a whole number (let us say 10). So, to undergo traversal in an array, we start from 0 to n-1 (in this case 9) such that it covers the size of the array.
The size of an array can be finite or infinite. The general rule is it starts from 0 to n-1 where n is the size of the array. In the above example, the range of the index of the array will be 0 through 100 and not 1 through 100.
Answer:
Option A, initiative
Explanation:
Initiation is an art of performing an act or task by self motivation rather on command or instruction from anyone.
Insubordination is incorrect as here there is no mentioning of disobeying seniors or authority
Also, courage and power means having strength to perform any task. Here action is performed without any instruction and it in no sense signifies a brave deed.
Hence, option A is correct
I’m pretty sure it’s either A or D