nerdexam
National_Instruments

200-500 · Question #214

Which parts of the text are matched in the following regular expression? 1 <?php 2 $text = <<<EOT 3 The big bang bonged under the bung. 4 EOT; 6 preg_match_all('@b.n?g@', $text, $matches); 7 ?>

Sign in or unlock 200-500 to reveal the answer and full explanation for question #214. The question stem and answer options stay visible for context.

Question

Which parts of the text are matched in the following regular expression? 1 <?php 2 $text = <<<EOT 3 The big bang bonged under the bung. 4 EOT; 6 preg_match_all('@b.n?g@', $text, $matches); 7 ?>

Options

  • Abang bong bung
  • Bbang bonged bung
  • Cbig bang bong bung
  • Dbig bang bung

Unlock 200-500 to see the answer

You've previewed enough free 200-500 questions. Unlock 200-500 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 200-500 Practice