Ruby Gems - Study Mode

[#1] What is the purpose of the --document flag when installing gems using Bundler?
Correct Answer

(C) Generates documentation for installed gems

[#2] What does the gem search -r keyword command do in Ruby?
Correct Answer

(D) Searches for gems with names matching the keyword on the remote server

[#3] What is the purpose of the gem uninstall gem_name -I command in Ruby?
Correct Answer

(A) Removes all installed versions of the gem

[#4] What does the gem outdated command do in Ruby?
Correct Answer

(D) Lists installed gems that have newer versions available

[#5] Which command is used to list all gems installed on the system in Ruby?
Correct Answer

(D) gem list