nerdexam
National_Instruments

200-500 · Question #158

What is the return value of the following code: substr_compare("foobar", "bar", 3);

The correct answer is D. 0. See the full explanation below for the reasoning.

Question

What is the return value of the following code: substr_compare("foobar", "bar", 3);

Options

  • A-1
  • B1
  • CTRUE
  • D0
  • EFALSE

How the community answered

(63 responses)
  • A
    10% (6)
  • B
    16% (10)
  • C
    2% (1)
  • D
    70% (44)
  • E
    3% (2)

Community Discussion

No community discussion yet for this question.

Full 200-500 Practice