206k views
0 votes
What happens in the process represented by the pseudocode below?

get(answer)


if(answer is yes)


then(multiply 4 and 9)


if(answer is no)


then(do nothing)


The computer multiplies 4 and 9 if the answer is yes.


The computer multiplies 4 and 9 if the answer is no.


The computer always multiplies 4 and 9.


The computer always does nothing.

2 Answers

3 votes

Answer:

A

Step-by-step explanation:

User Illegal Argument
by
4.3k points
1 vote

Answer:

(A)The computer multiplies 4 and 9 if the answer is yes.

Step-by-step explanation:

In the given pseudocode

get(answer)

if(answer is yes)

then(multiply 4 and 9)

if(answer is no)

then(do nothing)

In the pseudocode, the first step by the computer is to obtain the answer.

There are then two conditional statements.

1. if(answer is yes)

then(multiply 4 and 9)

2. if(answer is no)

then(do nothing)

From these two, we can see that:

The computer multiplies 4 and 9 if the answer is yes.

The correct option is A.

User Movie
by
2.9k points