Quiz-basics

Quiz-basics in Ruby: how it works, when to reach for it, and what experienced engineers watch out for.

Beginner 1 min read Quiz

Getting Started Quiz

Test your knowledge of Ruby installation, first programs, IRB, and documentation. This quiz covers the fundamentals you've learned in the Getting Started section.

Quiz Instructions

  • Answer all questions to complete the quiz
  • Each question has one correct answer
  • Review your answers before submitting
  • Use this as a learning tool - don't worry about perfect scores!

Question 1: Ruby Installation

Which command would you use to check if Ruby is properly installed on your system?

Question 2: Output Methods

Which Ruby method automatically adds a newline at the end of the output?

Question 3: IRB Commands

How do you exit the IRB (Interactive Ruby) shell?

Question 4: File Extensions

What file extension should Ruby files have?

Question 5: Documentation

Which command is used to view Ruby documentation from the command line?

Study Resources