Which of the following comparisons between static and dynamic type checking is…
2018
Which of the following comparisons between static and dynamic type checking is incorrect?
- A.
Dynamic type checking slows down the execution
- B.
Dynamic type checking offers more flexibility to the programmers
- C.
In contrast to Static type checking, dynamic type checking may cause failure in runtime due to type errors
- D.
Unlike static type checking, dynamic type checking is done during compilation
Attempted by 1 students.
Show answer & explanation
Correct answer: D
Static type checking is performed during compilation, verifying types before the program runs. Dynamic type checking occurs at runtime, validating types as execution happens. Option 3 claims dynamic type checking is performed during compilation, which contradicts this definition. Since the question asks for the incorrect comparison, Option 3 is the correct answer.
A video solution is available for this question — log in and enroll to watch it.