Buscar

Considering the function presented, which of the following statements is correct? I. The function represents a binary search algorithm. II. The fu...

Considering the function presented, which of the following statements is correct?

I. The function represents a binary search algorithm.
II. The function will return true or false if it finds a value.
III. The first index to be considered is zero.
a) Only statement I is correct.
b) Only statement II is correct.
c) Only statement III is correct.
d) Statements I and III are correct.
e) Statements II and III are correct.

Essa pergunta também está no material:

os algoritmos criados para resolver 1
1 pág.

Linguagem de Programação. AnhangueraAnhanguera

💡 1 Resposta

User badge image

Ed Verified user icon

A resposta correta é a alternativa d) Statements I and III are correct. A função representa um algoritmo de busca binária e o primeiro índice a ser considerado é zero.

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