CIW
1D0-437 · Question #47
Consider the following program code: if ("cool" =~ m/[cool]{4}/) { print("True "); } else { print("False "); } if ("cool" =~ m/[col]{4}/) { print("True "); } else { print("False "); } What is the…
The correct answer is D. TrueTrue. See the full explanation below for the reasoning.
Question
Consider the following program code:
if ("cool" =~ m/[cool]{4}/) { print("True "); } else { print("False "); } if ("cool" =~ m/[col]{4}/) { print("True "); } else { print("False "); } What is the output of this code?
Options
- AFalseFalse
- BFalse True
- CTrue False
- DTrueTrue
How the community answered
(35 responses)- A6% (2)
- B14% (5)
- C3% (1)
- D77% (27)
Community Discussion
No community discussion yet for this question.