Ask your own question, for FREE!
Computer Science 22 Online
OpenStudy (anonymous):

Which of these is a difference between C++ and Ruby? A) Ruby’s compiler verifies all assert statements (or the Ruby equivalent) at compile time. B) Ruby does not require a variable to have the same data type throughout the program. C) Ruby has a string class built in. D) Ruby has BGI graphics built in (so that #include is not required). E) Ruby is purely functional (no assignment statements). Why?

OpenStudy (anonymous):

Up to my knowledge ruby on rails is used as server side scripting like php, c++ is a powerful programming language.

OpenStudy (anonymous):

B) Ruby does not require a variable to have the same data type throughout the program. Ruby variables are simply names or tags you assign to objects, and the type really depends on the type of object you assign to it. http://www.techotopia.com/index.php/Understanding_Ruby_Variables#Identifying_a_Ruby_Variable_Type

OpenStudy (anonymous):

compared to C++'s variables, ruby variables are dynamically typed.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!