Basic Syntax In Ruby - Study Mode

[#11] We use semicolon or parentheses after every print or puts statement.
Correct Answer

(B) False

[#12] What will we the output of the given code? "I'am Learning RUBY Language".downcase
Correct Answer

(C) "i'am learning ruby language"

[#13] What is the output of the given code? "Ruby Language".length
=begin
calculate length
=end
Correct Answer

(A) 13

[#14] The .upcase and .capitalize method are used for capitalizing the whole string.
Correct Answer

(B) False

[#15] The downcase method changes the whole string to smallcase letters.
Correct Answer

(A) True