Buscar

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.

Essa pergunta também está no material:

Questionário ILP - Módulo 2_ Revisão da tentativa
4 pág.

Lógica de Programação Faculdade Maurício de Nassau de RecifeFaculdade Maurício de Nassau de Recife

💡 1 Resposta

User badge image

Ed Verified user icon

A alternativa correta é a letra d. Apenas o item I está correto.

0
Dislike0

✏️ Responder

SetasNegritoItálicoSublinhadoTachadoCitaçãoCódigoLista numeradaLista com marcadoresSubscritoSobrescritoDiminuir recuoAumentar recuoCor da fonteCor de fundoAlinhamentoLimparInserir linkImagemFórmula

Para escrever sua resposta aqui, entre ou crie uma conta

User badge image

Outros materiais