Answer:
8
Explanation:
By presuming the given codes as below:
- int i = 3;
- int j = 10;
-
- if((3*i) < j)
- i = i + 2;
-
- i = i+3;
Firstly, we have i equal to 3. When the i is multiplied with 3 and check if it is smaller than j in the if statement (Line 4), it will return true and there i is incremented by two (Line 5). At this point the i = 3 + 2 = 5
Next i is incremented again by three in Line 7. Hence the final value of i = 5 + 3 = 8
Answer:
The correct commands are:
- <em>Click two times when the arrow cursor is at the selection bar.</em>
- <em>Drag the cursor from the start to the end point of the paragraph.</em>
- <em>Put the cursor in front of the first word in the paragraph, then click three times.</em>
Explanation:
<em>Press the Ctrl key while clicking on a word.</em>
- Incorrect. This highligths the sentence but not the whole paragraph.
<em>Click two times when the arrow cursor is at the selection bar.</em>
The selection bar is on the left side of the window and is invisible. When you put the cursor on this area, to the left of a line of a paragraph, one click selects the line and two clicks select the whole paragraph.
<em>Drag the cursor from the start to the end point of the paragraph.</em>
- Correct: this is the most classical. By dragging the cursor you select everything that is between the starting point and the end point.
<em>Place the cursor on the paragraph, then use the Ctrl+A keys.</em>
- Incorrect: if you do not click nothing happens.
<em></em>
<em>Put the cursor in front of the first word in the paragraph, then click three times.</em>
<em></em>
- Correct: It is very easy. Just click before the first word, to put the cursor in front of it, and then click three times.