Consider the following statements:
I. Both compiler and interpreter can translate the program written in high-level language into machine-level instructions.
II. The interpreter translates the whole program into machine language program before executing any of the instructions.
Which of the statements given above is/are correct?