
Answer-first summary for fast verification
Answer: Seleção simples.
## Explanation This question is about control structures in programming. The description refers to a control structure where the execution of a program segment depends on whether a condition is true, linking the execution of one or more commands to the result obtained from evaluating a logical expression (also called a conditional). **Analysis of options:** - **A) Seleção simples (Simple selection)** - This refers to a simple if statement where code executes only if a condition is true. This matches the description perfectly. - **B) Seleção dupla (Double selection)** - This refers to if-else statements where there are two possible execution paths. - **C) Comando composto (Compound command)** - This refers to grouping multiple statements together, not specifically conditional execution. - **D) Múltipla escolha (Multiple choice)** - This refers to switch/case statements with multiple possible execution paths. - **E) Seleção aninhada (Nested selection)** - This refers to nested if statements where conditions are evaluated within other conditions. The description specifically mentions that execution depends on whether a condition is true, which is the definition of a simple selection (if statement). While other options involve conditional logic, only simple selection directly matches the description of executing code based on a condition being true.
Author: Danyel Barboza
Ultimate access to all questions.
No comments yet.
Assinale a alternativa que contém uma estrutura de controle que permite que a execução de um trecho de programa dependa do fato de uma condição ser verdadeira, isto é, vinculada à execução de um ou mais comandos ao resultado obtido na avaliação de uma expressão lógica (também denominada condicional).
A
Seleção simples.
B
Seleção dupla.
C
Comando composto.
D
Múltipla escolha.
E
Seleção aninhada.