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?

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?

A.
FalseFalse

B.
False True

C.
True False

D.
TrueTrue



Leave a Reply 0

Your email address will not be published. Required fields are marked *