1. Which naming convention is commonly used for method names in Ruby? A. Kebab case (e.g., my-method) B. Snake case (e.g., my_method) C. Pascal case (e.g., MyMethod) D. Kebab case (e.g., my-method) Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option B No explanation is given for this question Let's Discuss on Board
2. What is the recommended way to comment out multiple lines of code in Ruby? A. Using the syntax B. Using the # syntax C. Using the multiline comment syntax (=begin and =end) D. Using the // syntax Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
3. Which Ruby version manager is commonly used for managing multiple Ruby installations? A. rbenv B. asdf C. chruby D. RVM (Ruby Version Manager) Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D No explanation is given for this question Let's Discuss on Board
4. What is the recommended indentation style for Ruby code? A. Two spaces B. Four spaces C. Tabs D. Mixed spaces and tabs Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
5. Which tool is commonly used for documenting Ruby code? A. DocuRuby B. RubyDoc C. RDoc D. YARD (Yet Another Ruby Documentation Tool) Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D No explanation is given for this question Let's Discuss on Board
6. What does the term "DRY" stand for in Ruby programming? A. Do Repeat Yourself B. Don't Replicate Yourself C. Don't Repeat Yourself D. Do Replicate Yourself Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
7. Which tool is commonly used for version control in Ruby projects? A. Mercurial B. Git C. Bazaar D. Mercurial Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option B No explanation is given for this question Let's Discuss on Board
8. What is the purpose of a Gemfile in a Ruby project? A. To list the project's contributors B. To define the project's license C. To specify the project's dependencies D. To document the project's API Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
9. Which tool is commonly used for continuous integration (CI) in Ruby projects? A. Jenkins B. CircleCI C. GitLab CI D. Travis CI Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D No explanation is given for this question Let's Discuss on Board
10. What is the recommended way to handle sensitive information, such as API keys, in Ruby projects? A. Store them in environment variables B. Embed them directly in the code C. Include them in a separate configuration file D. Store them in the source code as comments Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board