nerdexam
EC-Council

EC0-350 · Question #27

Choose one of the following pseudo codes to describe this statement: "If we have written 200 characters to the buffer variable, the stack should stop because it cannot hold any more data."

The correct answer is D. If (I >= 200) then exit (1). See the full explanation below for the reasoning.

Question

Choose one of the following pseudo codes to describe this statement:

"If we have written 200 characters to the buffer variable, the stack should stop because it cannot hold any more data."

Options

  • AIf (I > 200) then exit (1)
  • BIf (I < 200) then exit (1)
  • CIf (I <= 200) then exit (1)
  • DIf (I >= 200) then exit (1)

How the community answered

(62 responses)
  • A
    3% (2)
  • B
    15% (9)
  • C
    8% (5)
  • D
    74% (46)

Community Discussion

No community discussion yet for this question.

Full EC0-350 Practice