When computer code encounters the word "if" what does it do?

A. Iterates b. Check if the condition is true or false c. Follows a sequence d. Repeats the instructions

B. Check if the condition is true or false

Which of the following is not one of the three main ways to control a program when writing a code? A. Sequence b. Derivative c. Selection d. Iteration

B. Derivative

With the statement if the dragon is hit by an arrow the player games 20 points else the player loses One Life what happens if the arrow misses the Dragon?

A. The player loses one life b. The player gains 20 points c. The player loses 20 points d. There is no effect in the game

A. The player loses one life

When computer code encounters the word "if," it checks if the condition specified after the "if" statement is true or false.

When computer code encounters the word "if," it performs a conditional check to determine if a certain condition is true or false. The code following the "if" statement will only be executed if the condition evaluates to true. If the condition is false, the code following the "if" statement is skipped, and the program moves on to the next line of code outside the "if" block.

To use the "if" statement in computer code, you need to write the condition that you want to check. For example:

```
if condition:
# code to be executed if the condition is true
else:
# code to be executed if the condition is false
```

The condition can be any expression that results in either true or false. The code inside the "if" block will only execute if the condition evaluates to true. If you want to specify an alternative block of code to execute when the condition is false, you can use the "else" keyword followed by another block of code.

In conclusion, when computer code encounters the word "if," it checks if a condition is true or false and executes the corresponding block of code accordingly.