P
I think the only time God ever limited his knowledge of anything was when Christ ( speaking as the son of man) said that only the father knows when the son of man will return. Of course, as the the son of God, Christ knew when he would return but he was speaking in that instances as the son of man. It's impossible for God to not know any future action or there would be something that existed that was greater than God or somehow hidden from his knowledge.
I believe that the example of Nineveh is very similar to Sodom. Of course, God knew there weren't really even 10 righteous in the city, but for Abraham's sake, he makes the agreement to spare the city for a remnant. I think that God in his dealings with man will communicate and interact with us in a way that we can understand and comprehend. He will also in his justice and fairness extend mercy or issue warnings to those that he knows will harden or reject truth. This is so that every man will be without excuse and see the justness of God in his dealings with men
I believe that the example of Nineveh is very similar to Sodom. Of course, God knew there weren't really even 10 righteous in the city, but for Abraham's sake, he makes the agreement to spare the city for a remnant. I think that God in his dealings with man will communicate and interact with us in a way that we can understand and comprehend. He will also in his justice and fairness extend mercy or issue warnings to those that he knows will harden or reject truth. This is so that every man will be without excuse and see the justness of God in his dealings with men