MCQs > IT & Programming > Ruby On Rails > What is output of following statements? 1) '.nil? == '.empty? && '.blank? == '.empty? 2) !'.nil? == '.empty? && '.blank? == '.empty? 3) nil.nil? == nil.empty? && nil.blank? == nil.empty? 4) !'.blank? == '.present? 5) '.any? == !'.empty? 6) '.blank? == '.empty?

Ruby On Rails MCQs

What is output of following statements?
1) "".nil? == "".empty? && "".blank? == "".empty?
2) !"".nil? == "".empty? && "".blank? == "".empty?
3) nil.nil? == nil.empty? && nil.blank? == nil.empty?
4) !"".blank? == "".present?
5) "".any? == !"".empty?
6) " ".blank? == " ".empty?

Answer

Correct Answer: 1) false 2) true 3) false 4) true 5) true 6) false

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Ruby On Rails Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Ruby On Rails Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it