Basic Syntax In Ruby - Study Mode

[#46] What is the extension used for saving the ruby file?
Correct Answer

(B) .rb extension

[#47] What is the sequence of ruby strings?
Correct Answer

(B) 8-bit bytes

[#48] Which of the following languages syntax matches with the Ruby's syntax?
Correct Answer

(A) Perl

[#49] What does the .upcase method do?
Correct Answer

(A) Convert the string to uppercase

[#50] What is the difference between && and & operators?
Correct Answer

(A) && checks for logical AND, & checks for bitwise AND