Ruby Gems - Study Mode

[#11] What is the purpose of the --no-ri and --no-rdoc flags when installing gems?
Correct Answer

(D) To skip generating documentation for installed gems

[#12] What is the purpose of the gem update --system command in Ruby?
Correct Answer

(A) Updates the RubyGems system to the latest version

[#13] How do you specify a specific version of a gem to be installed in a Gemfile?
Correct Answer

(D) gem 'gem_name', '= version_number'

[#14] Which command is used to uninstall all gems except default gems in Ruby?
Correct Answer

(C) gem cleanup

[#15] What does the --remote flag do in the context of the gem list command in Ruby?
Correct Answer

(C) Lists gems available on the remote server