Buscar

20) Ainda sobre a gramática acima, podemos afirmar que ela reconhece os seguintes programas: a) if cond then x = 10 else x = 20 + 3 ; b) if x + 3 ...

20) Ainda sobre a gramática acima, podemos afirmar que ela reconhece os seguintes programas:

a) if cond then x = 10 else x = 20 + 3 ;
b) if x + 3 then 4 + 1 else 7 ;
c) if cond1 then if cond2 then x = 10 else x = 12 ;
d) x = y + z + 4 ;
e) x = 20; y = 10

Essa pergunta também está no material:

2002-1-prova1res
3 pág.

Compiladores Centro Universitário dos GuararapesCentro Universitário dos Guararapes

💡 1 Resposta

User badge image

Ed Verified user icon

Analisando as alternativas, a gramática acima reconhece os seguintes programas: a) if cond then x = 10 else x = 20 + 3 ; b) if x + 3 then 4 + 1 else 7 ; c) if cond1 then if cond2 then x = 10 else x = 12 ; d) x = y + z + 4 ; e) x = 20; y = 10 A alternativa correta é a letra a) if cond then x = 10 else x = 20 + 3 ;

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