We have:
only 7 digit codes
The number of possible combinations is:
The probability the spy is able to unlock the smart phone on his first try is:
Then:
Answer:
8.1m questions
10.7m answers