Pergunta de entrevista da empresa National Security Agency

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

Resposta da entrevista

Sigiloso

25 de mai. de 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