21. Which command is used to view information about a specific gem in Ruby? A. gem info gem_name B. info gem_name C. gem view gem_name D. view gem_name 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
22. What is the purpose of the --version flag when installing a gem using the gem install command in Ruby? A. Installs the gem without checking for dependencies B. Installs a specific version of Ruby C. Installs the latest version of the gem D. Specifies the version of the gem to 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
23. What is the purpose of the --development flag when installing gems using Bundler? A. Installs gems only in development mode B. Installs gems without development dependencies C. Installs development dependencies along with regular dependencies D. Installs gems without checking for 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
24. What is the purpose of the bundle install --without production command in Ruby projects? A. Installs gems excluding those specified in the test group B. Installs gems excluding those specified in the production group C. Installs gems excluding those specified in the staging group D. Installs gems excluding those specified in the test group 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
25. What does the gem yank gem_name --version version_number command do in Ruby? A. Reverts the last yank operation performed on a gem B. Reinstalls a specific version of a gem C. Removes a specific version of a gem from the gem repository D. Yanks all versions of a gem from the gem repository 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
26. What is the purpose of the gem outdated command in Ruby? A. Lists installed gems along with their dependencies B. Lists gems available on the remote server C. Lists gems installed locally D. Lists installed gems that have newer versions available 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
27. What does the gem pristine --all command do in Ruby? A. Updates all installed gems to their latest versions B. Restores all installed gems to their pristine condition C. Reinstalls all installed gems D. Updates all installed gems to their latest versions 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
28. What is the purpose of the --development flag when updating gems using Bundler? A. Updates development dependencies along with regular dependencies B. Updates gems only in development mode C. Updates gems without development dependencies D. Updates gems without checking for dependencies 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
29. What does the gem list --local command do in Ruby? A. Lists gems along with their dependencies B. Lists gems along with their versions C. Lists gems available on the remote server D. Lists gems installed locally 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
30. What is the purpose of the bundle exec command in Ruby projects? A. Executes a command globally B. Executes a command without checking for dependencies C. Executes a command in the context of the current project's Gemfile D. Executes a command without running any associated scripts 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