For example one of them asked my "How can you print number 4 without using numbers or strings?" Turns out the answer was "Make array of 4 elements and print its length!
Just the other day I was shown a JSON file with a few objects then the interviewer asked me "How would you put this object into a mongoDB document"? The answer was that I should use the 'builder' pattern to do it.
Then I thought maybe those questions are being asked for other purposes than technical reasons or maybe I'm just hallucinating, Something like this ever happened to you?
Personally I would always ask type (2) questions because they usually put people at ease but also they give people many opportunities to self-destruct and show bad character.