Saltar la navegación

Item 5

Selección de respuesta

Pregunta

5)  Consider the following program fragment written in pseudocode and the data: TIJERINO, BALBOA, FRIAS and ISLAND, make up the list. The variables named “start” and “aux” are of pointer type. “Start's points” are at the beginning of the list.

Create(Star)

Do aux_2=star

Read start^.information

Do start^.ligue=NIL

Repeat

            Create(aux)

            Read auxr^.information

            Do aux^.ligue=start

           Do start=aux

Until there is no information to proces

 While aux_2^.ligue <> nil do

         Print(aux_2.information)

         Do aux_2=aux_2^.ligue

End_While

Which are the correct output values, according to the above program?

Respuestas

A)  TIJERINO  BALBOA  FRIAS  ISLAND

B) BALBOA  TIJERINO  ISLAND  FRIAS

C)  ISLAND  FRIAS  BALBOA  TIJERINO

D) FRIAS  ISLAND  TIJERINO  BALBOA

Retroalimentación

Creado con eXeLearning (Ventana nueva)