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:
7.1m questions
9.5m answers