Assuming the following statements about selection structures in programming, choose the correct option: I) In a selection structure, a condition wi...
Assuming the following statements about selection structures in programming, choose the correct option: I) In a selection structure, a condition will always be formulated using relational operators. II) Whenever we need to test conditions within conditions, we use the nested or chained selection structure. III) In the simple selection structure, a single logical expression is evaluated, and it must be true for the command to be executed, because if the logical test is not true, the command will not be executed. IV) The multiple selection structure is used when two alternatives depend on the evaluation of the same expression. I II III IV In a selection structure, a condition will always be formulated using relational operators. Whenever we need to test conditions within conditions, we use the nested or chained selection structure. In the simple selection structure, a single logical expression is evaluated, and it must be true for the command to be executed, because if the logical test is not true, the command will not be executed. The multiple selection structure is used when two alternatives depend on the evaluation of the same expression. a. Todos os itens estão corretos. b. Apenas IV está incorreto. c. Apenas os itens I e II estão corretos. d. Apenas o item I está correto.
Compartilhar