The commandments all go all the way into the heart and mind. Jesus said if you looked with lust at a woman, you have committed adultery. If you have thought murderous thoughts, you have committed murder and so forth.
The purpose of the commandments then is to show bad sin is and how far we fall from Holiness. The Apostle Paul says that the Law is a Taskmaster to drive us to Christ.
And that is exactly what the 10 Commandments do.
Thus the little questionnaire afterwords was extremely superficial "I haven't killed anyone", whereas the proper use of the commandments convicts somewhere every time and drives us in confession, repentance and ultimately cleansing by a Faithful God.
Passing or fleeting on these thoughts are not sinful; dwelling on them is.