Imagem de fundo

Considere o código PHP a seguir.<?phpfunction n_comp(Şx...

Considere o código PHP a seguir.

<?php

function n_comp(x, y) {

----if(x > y) {

--------out = 1;

----} else {

--------out = 0;

----}

----return out;

}

function l_comp(x, y) {

-----if(x > y) {

---------out = 1;

----} else {

---------out = 0;

----}

----return out;

}

function func_comp(x, y, comp_func)

{

----if ( comp_func(x, y) ) {

----------out = 1;

----} else {

---------out = 0;

----}

----return out;

}

echo func_comp(2, 1, "n_comp");

echo func_comp("abc", "b", "l_comp");

echo func_comp("01", "2", "l_comp");

echo func_comp(3, 3, "n_comp");

echo func_comp("abcd", "efg", "l_comp");

echo func_comp("e", "abc", "l_comp");

?>

Assinale a alternativa que apresenta, corretamente, a saída do código.


A

010011


B

011110


C

100001


D

110010


E

111010