CIW
1D0-437 · Question #70
1D0-437 Question #70: Real Exam Question with Answer & Explanation
Sign in or unlock 1D0-437 to reveal the answer and full explanation for question #70. The question stem and answer options stay visible for context.
Question
Consider the following lines of code: 1.$playerStr = "Today's player is Bob Petit."; 2.if($playerStr =~ /[Ruth|Gehrig|DiMaggio]/) { 3. $game = "Baseball"; 4.}else{ 5. $game = "Basketball"; 6.} 7.print $game; What is the output of these lines of code?
Options
- ANo output is generated due to an error in line 2.
- BBasketball
- CBaseball
- DNo output is generated due to an error in line 3.
Unlock 1D0-437 to see the answer
You've previewed enough free 1D0-437 questions. Unlock 1D0-437 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.