آخرین بروزرسانی: 1405/08/13
3 منبع
1. Which of the following primary Ruby data types is mutable?
2. Which variable name follows standard Ruby `snake_case` naming conventions for local variables?
3. What value is returned when calling `13.9.to_i` in Ruby?
4. What is the primary function of the `.chomp` method when chained to `gets` in Ruby?
5. If $ x = 10 $, what is the value of $ x $ after executing the Ruby assignment statement `x *= 2`?
6. Which two values are the only falsy values in Ruby conditional evaluations?
7. What behavior distinguishes Ruby symbols from strings regarding memory allocation?
8. How does the output method `puts` differ from `print` in Ruby?
9. In Ruby, if variable `a = "hello"` and variable `b = a`, what is the value of `a` after executing `b.upcase!`?
10. What does the Ruby arithmetic expression `17 / 5` evaluate to?