146k views
4 votes
Complete the sentence with the correct response. In a two-way selection, if the initial statement is evaluated as , the code skips to the ELSE command.

User Stratos
by
4.3k points

1 Answer

3 votes

Answer:

True.

The code skips the else command

Step-by-step explanation:

I will answer this question with the following code segment

n = 1

If n > 0:

Print("greater than 0")

else:

Print("not greater than 0")

From the code segment above

Print("greater than 0") will be executed because the condition If n > 0 is true

Since the if condition is true, the else condition will not be executed

User Bigtunacan
by
4.4k points