nerdexam
National_Instruments

200-500 · Question #161

Which of the following function signatures is correct if you want to have classes automatically loaded?

The correct answer is C. function __autoload($class_name). See the full explanation below for the reasoning.

Question

Which of the following function signatures is correct if you want to have classes automatically loaded?

Options

  • Afunction autoload($class_name)
  • Bfunction __autoload($class_name, $file)
  • Cfunction __autoload($class_name)
  • Dfunction _autoload($class_name)
  • Efunction autoload($class_name, $file)

How the community answered

(53 responses)
  • A
    2% (1)
  • B
    9% (5)
  • C
    83% (44)
  • D
    4% (2)
  • E
    2% (1)

Community Discussion

No community discussion yet for this question.

Full 200-500 Practice