Vidyalelo
Ruby Programming · all questions

Ruby Gems
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

56

Questions

3/3

Page

Pick an option on a question to see the right answer and solution.

What does the gem cleanup --dryrun command do in Ruby?

Select an option to see the answer and solution.

What is the purpose of the --ignore-dependencies flag when installing gems using Bundler?

Select an option to see the answer and solution.

What does the gem help commands command do in Ruby?

Select an option to see the answer and solution.

What is the purpose of the gem contents gem_name command in Ruby?

Select an option to see the answer and solution.

Which command is used to uninstall all versions of a gem in Ruby?

Select an option to see the answer and solution.

What is the purpose of the --platform flag when installing gems using Bundler?

Select an option to see the answer and solution.

What does the gem specification gem_name command do in Ruby?

Select an option to see the answer and solution.

Which command is used to install gems listed in a Gemfile.lock file?

Select an option to see the answer and solution.

What is the purpose of the --install-dir flag when installing gems using Bundler?

Select an option to see the answer and solution.

Which command is used to view information about a specific gem version in Ruby?

Select an option to see the answer and solution.

What is the purpose of the --document flag when installing gems using Bundler?

Select an option to see the answer and solution.

What does the gem search -r keyword command do in Ruby?

Select an option to see the answer and solution.

What is the purpose of the gem uninstall gem_name -I command in Ruby?

Select an option to see the answer and solution.

What does the gem outdated command do in Ruby?

Select an option to see the answer and solution.

Which command is used to list all gems installed on the system in Ruby?

Select an option to see the answer and solution.

What is the purpose of the --no-ri and --no-rdoc flags when installing gems using Bundler?

Select an option to see the answer and solution.