Financial assets and liabilities measured at fair value on a recurring basis as of April 30, 2017 and October 31, 2016 were as follows: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fair Value Measurements at April 30, 2017 | | Fair Value Measurements at October 31, 2016 | | Total | | Level 1 | | Level 2 | | Level 3 | | Total | | Level 1 | | Level 2 | | Level 3 | | (in millions) | Assets: | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| Short-term | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| Cash equivalents | | | | | | | | | | | | | | | | Money market funds | $ | 549 |
| | $ | 549 |
| | $ | — |
| | $ | — |
| | $ | 471 |
| | $ | 471 |
| | $ | — |
| | $ | — |
| U.S. Treasury, government and agency debt securities | 1 |
| | — |
| | 1 |
| | — |
| | — |
| | — |
| | — |
| | — |
| Corporate debt securities | 2 |
| | — |
| | 2 |
| | — |
| | — |
| | — |
| | — |
| | — |
| Available-for-sale investments | | | | | | | | | | | | | | | | U.S. Treasury, government and agency debt securities | 26 |
| | — |
| | 26 |
| | — |
| | — |
| | — |
| | — |
| | — |
| Corporate debt securities | 14 |
| | — |
| | 14 |
| | — |
| | — |
| | — |
| | — |
| | — |
| Derivative instruments (foreign exchange contracts) | 5 |
| | — |
| | 5 |
| | — |
| | 4 |
| | — |
| | 4 |
| | — |
| Long-term | | | | | | | | | | | | | | | | Trading securities | 12 |
| | 12 |
| | — |
| | — |
| | 11 |
| | 11 |
| | — |
| | — |
| Available-for-sale investments | 32 |
| | 32 |
| | — |
| | — |
| | 29 |
| | 29 |
| | — |
| | — |
| Total assets measured at fair value | $ | 641 |
| | $ | 593 |
| | $ | 48 |
| | $ | — |
| | $ | 515 |
| | $ | 511 |
| | $ | 4 |
| | $ | — |
| Liabilities: | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| Short-term | | | | | | | | | | | | | | | | Derivative instruments (foreign exchange contracts) | $ | 2 |
| | $ | — |
| | $ | 2 |
| | $ | — |
| | $ | 8 |
| | $ | — |
| | $ | 8 |
| | $ | — |
| Long-term | | | | | | | | | | | | | | | | Deferred compensation liability | 12 |
| | — |
| | 12 |
| | — |
| | 11 |
| | — |
| | 11 |
| | — |
| Total liabilities measured at fair value | $ | 14 |
| | $ | — |
| | $ | 14 |
| | $ | — |
| | $ | 19 |
| | $ | — |
| | $ | 19 |
| | $ | — |
|
|