Answer :

He asked him if his name wasn't Ram.
he asked him if his name was ram or not