nerdexam
CIW

1D0-437 · Question #28

Consider the following lines of code: $_ = "This is a test"; s/^([^ ])\s([^ ]*)/$2 $1/; print; What is the output of these lines of code?

The correct answer is B. isThis a test. See the full explanation below for the reasoning.

Question

Consider the following lines of code:

$_ = "This is a test"; s/^([^ ])\s([^ ]*)/$2 $1/; print; What is the output of these lines of code?

Options

  • AhTis a test
  • BisThis a test
  • Ci Thiss a test
  • Dhis T is a test

How the community answered

(42 responses)
  • A
    5% (2)
  • B
    74% (31)
  • C
    14% (6)
  • D
    7% (3)

Community Discussion

No community discussion yet for this question.

Full 1D0-437 Practice