nerdexam
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)
  • A
    6% (2)
  • B
    14% (5)
  • C
    3% (1)
  • D
    77% (27)

Community Discussion

No community discussion yet for this question.

Full 1D0-437 Practice