Skip to main content

Ruby Gems — Part 2 MCQs with Explanations

Practice high-yield Programming & Software Development MCQs on Ruby Gems — Part 2 with worked academic solutions for FPSC, PPSC, NTS, NITB, PTS.

Questions
16
Difficulty Level
Exam-Level
Target Exams
FPSC, PPSC, NTS...
Estimated Time
20 mins
Exam-Level FPSC PPSC NTS NITB PTS
Verified for Commission Syllabus • Oct 14, 2026
16

Verified Practice Questions

Interactive test mode with detailed academic worked solutions

Live Progress | 0/16 answered
✓ 0 correct ✗ 0 wrong 0% score
Question 1 of 16
★ FPSC ★ PPSC

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

Question 2 of 16
★ FPSC ★ PPSC

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

Question 3 of 16
★ FPSC ★ PPSC

What does the gem help commands command do in Ruby?

Question 4 of 16
★ FPSC ★ PPSC

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

Question 5 of 16
★ FPSC ★ PPSC

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

Question 6 of 16
★ FPSC ★ PPSC

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

Question 7 of 16
★ FPSC ★ PPSC

What does the gem specification gem_name command do in Ruby?

Question 8 of 16
★ FPSC ★ PPSC

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

Question 9 of 16
★ FPSC ★ PPSC

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

Question 10 of 16
★ FPSC ★ PPSC

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

Question 11 of 16
★ FPSC ★ PPSC

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

Question 12 of 16
★ FPSC ★ PPSC

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

Question 13 of 16
★ FPSC ★ PPSC

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

Question 14 of 16
★ FPSC ★ PPSC

What does the gem outdated command do in Ruby?

Question 15 of 16
★ FPSC ★ PPSC

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

Question 16 of 16
★ FPSC ★ PPSC

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

✓ Link copied to clipboard
Continue Your Practice

Advance Html — Part 1

Master the next curriculum module with 40 exam-standard MCQs.

Next Practice Set →

💡 Examiner's Advisory for Programming & Software Development

In competitive commission exams (FPSC, PPSC, KPPSC, SPSC, CSS, PMS), questions are frequently phrased with distractor options designed to catch rote learners. Whenever you answer an MCQ, read the Detailed Academic Explanation and Conceptual Anchor to understand why the remaining options are incorrect.

More Modules in Programming & Software Development

View All →
📚

Study Guides

Topic summaries and syllabus breakdown

Explore Guides →
🎯

Complete Library

Search through 78,000+ verified MCQs

Browse Library →
📱

Mobile App

Offline mock tests and instant bookmarks

Get Mobile App →