MCQOPTIONS
Saved Bookmarks
| 1. |
How does the identity operator === compare two values? |
| A. | It converts them to a common compatible data type and then compares the resulting values |
| B. | It returns True only if they are both of the same type and value |
| C. | If the two values are strings, it performs a lexical comparison |
| D. | It bases its comparison on the C strcmp function exclusively |
| E. | It converts both values to strings and compares them |
| Answer» B. It returns True only if they are both of the same type and value | |