Buscar

Assuming the following statements are true or false, choose the correct alternative: I. There are two types of repetition commands: those that rep...

Assuming the following statements are true or false, choose the correct alternative:
I. There are two types of repetition commands: those that repeat fixed number of commands and those that repeat a variable number of times.
II. Repetition commands for a variable number of times can perform tests only at the beginning.
III. PYTHON implements the FOR command differently from other programming languages.
IV. C and PASCAL implement commands with fixed and variable number of times, and in the latter case, offer a command with a test at the beginning and end of the loop.
Now, choose the correct alternative:

I. There are two types of repetition commands: those that repeat fixed number of commands and those that repeat a variable number of times.
II. Repetition commands for a variable number of times can perform tests only at the beginning.
III. PYTHON implements the FOR command differently from other programming languages.
IV. C and PASCAL implement commands with fixed and variable number of times, and in the latter case, offer a command with a test at the beginning and end of the loop.
I, II, III and IV
II and III
I, III and IV
III

Essa pergunta também está no material:

Paradigmas de Programação - TESTE 9
4 pág.

Paradigmas de Programação Universidade Estácio de SáUniversidade Estácio de Sá

💡 1 Resposta

User badge image

Ed Verified user icon

A alternativa correta é: "I, III e IV". Explicação: - A afirmação I é verdadeira, pois existem dois tipos de comandos de repetição: aqueles que repetem um número fixo de comandos e aqueles que repetem um número variável de vezes. - A afirmação II é falsa, pois os comandos de repetição para um número variável de vezes podem realizar testes tanto no início quanto no final do loop. - A afirmação III é verdadeira, pois a implementação do comando FOR em PYTHON é diferente de outras linguagens de programação. - A afirmação IV é verdadeira, pois C e PASCAL implementam comandos com número fixo e variável de vezes, e neste último caso, oferecem um comando com um teste no início e no final do loop.

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