Explanation:The if/else statement returns, as its value, the value of the statement that was selected. 3. Which of the following syntax is correct for while loop ?
A. while ( statement1 ) statement2
B. while ( statement1 ) else statement2
C. while ( statement1 ) do statement2
D. All of the mentioned
Answer:A
Explanation:The if/else statement returns, as its value, the value of the statement that was selected. 3. Which of the following syntax is correct for while loop ?
A. while ( statement1 ) statement2 B. while ( statement1 ) else statement2 C. while ( statement1 ) do statement2 D. All of the mentioned
Explanation:The while statement is very similar to the repeat statement. 4. Which of the following code generate a uniform random number ?