PrepAway - Latest Free Exam Questions & Answers

What is the output of this code?

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?

PrepAway - Latest Free Exam Questions & Answers

A.
FalseFalse

B.
False True

C.
True False

D.
TrueTrue


Leave a Reply