What is the difference between && and & operators?
A. && checks for logical AND, & checks for bitwise AND
B. Both operators are the same
C. && checks for bitwise AND, & checks for logical AND
D. && checks for string concatenation, & checks for logical AND
Answer: Option A
Related Questions on Basic Syntax in Ruby
What does the 'puts' method do in Ruby?
A. Prints to console
B. Converts to string
C. Finds the length
D. Reads input from user

Join The Discussion