Answer:
d. fetch, decode, execute
Explanation:
Each instruction is a command that a user gives to the computer. To execute this instruction, the computer initially has to find the instruction in the memory, that is, fetching the instruction, and then understand what the instruction means, that is, decoding.
So the correct answer is:
d. fetch, decode, execute
Answer:
To tell what will happen when an if-statement is false
Explanation:
We use else statement if if-statement get false.
for example
if(a>20)
{
print "your age is greater than 20"
}
else
{
print "Your age is less than 20"
}
In the pseudo code, you see the use of else statement, that if age is greater than 20 then display message "you are age is greater than 20". if this statement get false, i.e. you are age is not greater than 20 then else statement will be executed and message will be displayed that your age is less than 20.
Why other option are not correct
To input a variable:
to get input, we use input statement of respective programming language not if-else statement.
To end an if statement
we don't use else statement to end if statement. when condition met then if statement will be ended
To handle string value
we use input validation statement to handle if statement.
Answer:
The peasant starts crossing with the goat.
Explanation:
The peasant puts the goat in the boat first and cross to the other side, he then puts the goat down and goes back to pick the cabbage, he crosses with the cabbage to the other side of the river. He would drop the cabbage and pick up the goat back,this because the goat will eat the cabbage if left there. He then goes back with the goat, he will drop off the goat and pick up the wolf and cross to the other side, he will leave the wolf with the cabbage since the wolf can't eat cabbage. He then goes back to pick up the goat and cross to the other side.
An original research report will be considered as a primary source