Q: 6
Review the following code snippet:
displayvalue(1, {0, 1, 2}, {"Low", "Medium", "High"}, "Unknown")
The definition of displayvalue is:
Tries to match a value in a given array with a value at the same index in a replacement array and
returns either the value at the same index or a default value if the value is not found.
What does this code snippet return?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.