employer cover photo
employer logo
employer logo

National Security Agency

Engaged Employer

National Security Agency Interview Question

What is a Strongly Typed Language, give us an example.

Interview Answer

Anonymous

May 25, 2020

Python is a Dynamically and Strongly Typed Language: a = 10 a = "Rob" # No error: dynamically reassigned a = a + 10 # Error: cannot add integer to string array C++ is a Static and Weakly Typed Language: int a = 10; a = "Rob"; // Error: static type cannot be changed string s = "Rob" + 10; // Will compile, but may break the program due to buffer overflow