COMPUTER PROGRAMMING FUNDAMENTALS
WHAT IS PROGRAMMING
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
C
|
|
Python
|
|
Javascript
|
|
Java
|
|
Ruby
|
Detailed explanation-1: -Ruby is a dynamic language, which means that types are checked when the code is run. If you try to call a method on an object that does not exist, the compiler will not complain, you’ll only find out about that error when the code is executed and you get a NoMethodError .
Detailed explanation-2: -Ruby is not only a dynamically but also strongly typed language, which means that it allows for a variable to change its type during runtime.
Detailed explanation-3: -Dynamically-typed languages are those (like JavaScript) where the interpreter assigns variables a type at runtime based on the variable’s value at the time.
Detailed explanation-4: -Ruby is dynamically typed, rather than statically typed-the runtime does as much as possible at run-time.
Detailed explanation-5: -While Ruby has always been a dynamically typed language, peeking into the static type realm with the help of third-party solutions like Sorbet and Steep, RBS is going to make things official by enforcing a common foundational standard.