41. What does the gem cleanup --dryrun command do in Ruby? A. Simulates the cleanup process without removing any gems B. Removes all gems installed on the system C. Lists gems installed locally D. Updates all installed gems to their latest versions 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
42. What is the purpose of the --ignore-dependencies flag when installing gems using Bundler? A. Installs gems without documentation B. Installs gems without checking for dependencies C. Installs gems without updating the Gemfile.lock D. Skips installing gem dependencies 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
43. What does the gem help commands command do in Ruby? A. Provides detailed information about a specific gem command B. Opens the RubyGems documentation in the browser C. Lists all available gem commands D. Lists all installed gems 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
44. What is the purpose of the gem contents gem_name command in Ruby? A. Lists all dependencies of a specified gem B. Lists the files installed by a specified gem C. Lists all versions of the specified gem D. Lists all dependencies of a specified gem 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
45. Which command is used to uninstall all versions of a gem in Ruby? A. remove gem_name --all B. gem remove gem_name --all C. gem uninstall gem_name --all D. uninstall gem_name --all 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
46. What is the purpose of the --platform flag when installing gems using Bundler? A. Installs gems without documentation B. Installs gems without updating the Gemfile.lock C. Skips installing gem dependencies D. Specifies the platform for which the gem should be installed 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
47. What does the gem specification gem_name command do in Ruby? A. Installs the gem without checking for dependencies B. Uninstalls the gem without removing its dependencies C. Displays the gem specification D. Updates the gem to the latest version 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
48. Which command is used to install gems listed in a Gemfile.lock file? A. install Gemfile.lock B. bundle install C. gem bundle install D. install Gemfile.lock 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
49. What is the purpose of the --install-dir flag when installing gems using Bundler? A. Installs gems without documentation B. Installs gems without updating the Gemfile.lock C. Specifies the directory where the gem should be installed D. Skips installing gem dependencies 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
50. Which command is used to view information about a specific gem version in Ruby? A. gem version gem_name -v version_number B. gem details gem_name -v version_number C. gem spec gem_name -v version_number D. gem info gem_name -v version_number 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