122k views
3 votes
(04.01 LC)

An if statement tells the computer when a certain condition is true; the computer should execute the block
of code within it. (5 points)
A. True
B. False

2 Answers

3 votes

Answer:

True

Step-by-step explanation:

User DivineTraube
by
5.8k points
4 votes

Answer: A. True

For example, the code

if(x > 5)

{

y = 10;

}

will check to see if x is larger than 5. If so, then it assigns the number 10 to the variable y. If x is not larger than 5, then everything in the curly braces is not executed and it skips over this section.

User Kevin Schmid
by
5.6k points