Bird
0
0

Which command correctly installs the gem named httparty?

easy📝 Conceptual Q2 of 15
Ruby - Gems and Bundler
Which command correctly installs the gem named httparty?
Agem add httparty
Binstall gem httparty
Cruby gem install httparty
Dgem install httparty
Step-by-Step Solution
Solution:
  1. Step 1: Recall correct gem install syntax

    The correct syntax to install a gem is gem install gem_name.
  2. Step 2: Check each option

    gem install httparty matches the correct syntax. The other options are incorrect commands or have extra words.
  3. Final Answer:

    gem install httparty -> Option D
  4. Quick Check:

    Correct gem install syntax = gem install httparty [OK]
Quick Trick: Always use 'gem install gem_name' to install gems [OK]
Common Mistakes:
  • Swapping order of words
  • Adding extra words like 'ruby' before command
  • Using 'gem add' instead of 'gem install'

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Ruby Quizzes