Question: Which statement creates a logical array that is 1 if the element in `passwords` contains a digit and 0 if it does not?
- contains(password, '\d')
- ~isempty(regexp(passwords, '\d'))
- cellfun(@(x) ~isempty(regexp(x, '\d')), passwords)
- regexp(passwords, '\d')
Answer: The correct answer of the above question is Option C:cellfun(@(x) ~isempty(regexp(x, '\d')), passwords)