Answer: A select the picture
Answer:
4 is the correct answer for the above question.
Explanation:
- If the if-else sequence has 4 blocks then it will be designed like if, else-if, else-if and then else which made 4 blocks which are as follows:-
- The first block is an if block.
- Then the second block is an else-if block.
- The third block is also else-if block and
- The fourth block else blocks.
- So there is a need of 4 value (one value for each case) to test the application which is defined in the above scenario.
- It is because when the first if statement is false then the first else-if statement is executed and when the first else statement is false then the second else-if statement is executed and when it is false then the else statement will executed.
Answer:
d) y=x++
Explanation:
In all 3 statements:
y= ++x;
y=x=5;
y=5;
The value of y is equal to 5.
However in the statement y=x++, the value of 5 is equal to value of x prior to the increment operation. The original value of x was 4. So the value of y will be 4. Note that after the statement execution, the value of x will be updated to 5. In effect y=x++ can be visualized as a sequence of following steps:
x=4;
y=x;
x=x+1;
Answer:
Greeting with a smile, open handed gestures, and making eye contact
Explanation:
I used this on E2020 and got it right