Imagem de fundo

Considere o seguinte trecho de código escrito em Object Pascal:program EstruturaDeDados...

Considere o seguinte trecho de código escrito em Object Pascal:


program EstruturaDeDados;

type Estrutura = class

____private

____v: array [0..255] of string;

____i: integer;

public

____procedure insere(valor: string);

____function remove(): string ;

end;



procedure Estrutura.insere(valor: string);

begin

____v[i] := valor;

____i := i + 1;

end;



function Estrutura.remove(): string ;

begin

____i := i - 1;

____if i >= 0 then

________remove := v[i]

____else

________remove := '';

end;




A estrutura de dados implementada acima é


A

fila;


B

árvore;


C

lista encadeada;


D

pilha;


E

lista de prioridades.