Buscar

What is the order of execution of the program in the even or odd algorithm? Either line 4 or line 6 will be executed, never both. The logical test...

What is the order of execution of the program in the even or odd algorithm?

Either line 4 or line 6 will be executed, never both.
The logical test is performed before the arithmetic calculation.
The arithmetic calculation is performed before the logical test.
Both line 4 and line 6 will always be executed.
a) I and II are correct.
b) II and III are correct.
c) I and III are correct.
d) Only I is correct.

Essa pergunta também está no material:

AULA 3 LOGICA
37 pág.

Lógica de Programação OutrosOutros

Respostas

User badge image

Ed Verified user icon

A ordem de execução do programa no algoritmo de par ou ímpar é a seguinte: 1. A linha 4 é executada se a condição lógica for verdadeira. 2. Caso contrário, a linha 6 é executada. Portanto, a alternativa correta é a letra d) Apenas a I está correta, pois a linha 4 será executada apenas se a condição lógica for verdadeira.

0
Dislike0

Responda

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

Continue navegando