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)- A5% (2)
- B74% (31)
- C14% (6)
- D7% (3)
Community Discussion
No community discussion yet for this question.