The correct answer is B. Doing your research
Explanation:
Before asking questions in a website or writing through customer support it is recommended to first do your research, this means looking for information on the internet or the frequently asked questions because in most cases the question you have in mind has been answered by the webpage or other people and therefore if you look by you own you can avoid sending emails or contacting people. This principle is basic when using the internet and implies only in case you cannot find the answer to a question you ask for help.
According to this, sending an email before looking through the site and reading the frequently asked question is an example of not doing your research, because it is supposed first you look for information on your own and just in case you cannot find anything you contact someone else.
Answer:
True
Explanation:
While looping through, there can be times that you do not want your code to do anything in some situations. Let's say you loop through an array consists of four numbers (1, 2, 3, and 4). You want to print all the values except 2. Check the code written in Java below.
int [] numbers = {1, 2, 3, 4};
for(int number : numbers) {
if(number == 2) {
continue;
}
System.out.println(number);
}
Answer: -17
Explanation:
Our random number is 17. Let's go through line by line.
- value is a random number picked which is 17
- valueB = 17 / 2 = 8.5
- If value is greater than 0 AND value has a remainder of 1, we will set the value to value* -1.
- Value is now 17 * -1 = -17
Let's quickly calculate value mod 2. 17 % 2 = is 1. If you're wondering how we did that, the remainder after dividing 8 into 17 twice is 1, because 17 - 16 = 1.
We stop after line 4 because we stop the conditional statement after one condition is filled.