First round is Aptitude ( some times not conducted ). Second is program writing. Third, Program execution. Forth, Managerial round ( mostly with the MD ).
In the program writing round, manly the logic is tested, so it would be okay if there are few syntax errors as long as the logic is right.