The new student asked the old one did he know his name
The new student asked the old one If he knows his name
The new student asked the old one that whether he knew his name.
The new student asked the old one if he knew his name.