Multiple choice technology programming languages

Is null string list (“”) equivalent to empty list()

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

A list containing a null string ("") contains one element (the empty string), whereas an empty list () contains zero elements. Because their lengths and contents differ, they are not equivalent in Perl or general list operations.