100+ Free Ruby Gold Practice Questions
Pass your Ruby Association Certified Ruby Programmer Gold version 3 exam on the first try — instant access, no signup required.
What is the direct superclass of the class Class itself in Ruby?
Explore More Ruby Programming Certifications
Continue into nearby exams from the same family. Each card keeps practice questions, study guides, flashcards, videos, and articles in one place.
Key Facts: Ruby Gold Exam
50
Multiple-choice questions
Ruby Association
75% (38/50)
Passing score
Ruby Association
90 minutes
Time limit
Ruby Association
USD 150
Exam fee (JPY 16,500)
Ruby Association
Ruby 3.1
Assessed version
Ruby Association (Gold v3)
Silver required
Prerequisite
Ruby Association
The Ruby Association Certified Ruby Programmer Gold (version 3) is an advanced exam assessed against Ruby 3.1, requiring the Silver certification first. It has 50 multiple-choice questions in 90 minutes, a 75% (38 of 50) passing score, a USD 150 fee, and no expiration. It is delivered at Prometric test centers and covers execution environment, advanced syntax, object orientation, metaprogramming, built-in libraries, and the standard library.
Sample Ruby Gold Practice Questions
Try these sample questions to test your Ruby Gold exam readiness. Each question includes a detailed explanation. Start the interactive quiz above for the full 100+ question experience with AI tutoring.
1Given: module M refine String do def shout upcase + "!" end end end def call_shout(s) s.shout end using M puts call_shout("hi") What happens?
2What does the following print? module Greet def hello = "module hello" end class Person prepend Greet def hello = "class hello" end puts Person.new.hello
3What is the output? case {name: "Ruby", age: 31} in {name: String => n, age: Integer => a} puts "#{n} is #{a}" in _ puts "no match" end
4What does this print? lambda_obj = ->(a, b) { return a + b } proc_obj = Proc.new { |a, b| a + b } puts lambda_obj.call(1, 2) puts proc_obj.call(1, 2, 3)
5What does the following output? class Foo [:a, :b, :c].each do |name| define_method(name) { name.to_s } end end puts Foo.new.b
6What does this print? class Ghost def method_missing(name, *args) "called #{name} with #{args.inspect}" end def respond_to_missing?(name, include_private = false) name.to_s.start_with?("find_") end end g = Ghost.new puts g.respond_to?(:find_user) puts g.respond_to?(:save)
7What is printed? str = "hello" def str.shout upcase end puts str.singleton_methods.inspect puts str.shout
8What does the following print? result = [1, 2, 3, 4, 5].lazy.map { |x| x * 2 }.select { |x| x > 4 }.first(2) p result
9What is the output? fib = Enumerator.new do |y| a, b = 0, 1 loop do y << a a, b = b, a + b end end p fib.take(5)
10What does this print? fiber = Fiber.new do x = Fiber.yield(10) Fiber.yield(x + 1) 100 end p fiber.resume p fiber.resume(5) p fiber.resume
About the Ruby Gold Exam
The Ruby Association Certified Ruby Programmer Gold (version 3) certifies a deep understanding of the Ruby language, going well beyond the Silver level. Assessed against Ruby 3.1, it tests advanced syntax (pattern matching, numbered parameters, here documents, keyword arguments), object-oriented programming details (access control, class inheritance, Module#prepend, and Refinements), metaprogramming (eval, define_method, send, singleton classes, and hooks), built-in libraries (Enumerable, Comparable, Proc/lambda, Numeric, Enumerator, Fiber), and selected standard libraries (date, singleton, forwardable). Candidates must already hold the Silver certification, and the exam is delivered at Prometric test centers.
Questions
50 scored questions
Time Limit
90 minutes
Passing Score
75% (38 of 50)
Exam Fee
USD 150 (Ruby Association)
Ruby Gold Exam Content Outline
Execution Environment
Pre-defined variables and constants including ARGV, $0, ENV, and __method__, and how the Ruby interpreter exposes the runtime environment to scripts.
Syntax
Advanced literals and operators, blocks, exception handling with ensure and retry, non-local exit via catch/throw, keyword arguments, numbered parameters, lambda, pattern matching (array, hash, find, and guard patterns), and squiggly here documents.
Object Oriented Programming
Method details and coercion protocols, access control (public, private, protected), class details and lexical constant lookup, class inheritance with super, module mixins, Module#prepend and ancestor ordering, and Refinements scope.
Metaprogramming
Dynamic method definition with define_method, the eval family (instance_eval and class_eval), reflective access with instance_variable_get/set and send, singleton classes (class << self), and class hooks such as inherited, included, and method_added.
Built-in Libraries
Object and Kernel methods, Module behavior, Enumerable and Comparable mixins, Numeric types including Rational and divmod, regular expressions with named and numbered captures, Proc versus lambda semantics, and Enumerator including lazy evaluation and Fiber.
Standard Library
The date and time libraries, the singleton and forwardable modules, and commonly tested helpers such as StringIO, Marshal for deep copying, and Set.
How to Pass the Ruby Gold Exam
What You Need to Know
- Passing score: 75% (38 of 50)
- Exam length: 50 questions
- Time limit: 90 minutes
- Exam fee: USD 150
Keys to Passing
- Complete 500+ practice questions
- Score 80%+ consistently before scheduling
- Focus on highest-weighted sections
- Use our AI tutor for tough concepts
Ruby Gold Study Tips from Top Performers
Frequently Asked Questions
What are the exam facts for Ruby Gold?
The Ruby Association Certified Ruby Programmer Gold (version 3) has 50 multiple-choice questions in 90 minutes, a 75% (38 of 50) passing score, and a USD 150 fee. It is assessed against Ruby 3.1 and delivered at Prometric test centers, with no expiration on the credential.
Do I need the Silver certification before Gold?
Yes. The Gold credential requires you to hold (or pass) the Ruby Association Certified Ruby Programmer Silver certification. Gold builds on Silver with deeper coverage of metaprogramming, refinements, the object model, and the standard library.
Which Ruby version does the Gold exam test?
The version 3 Gold exam is assessed against Ruby 3.1.x. This means features such as pattern matching, numbered parameters, one-line rightward assignment, endless methods, and FrozenError as a RuntimeError subclass are in scope.
What topics make Gold harder than Silver?
Gold adds metaprogramming (define_method, eval, send, hooks), singleton classes, Module#prepend and ancestor ordering, Refinements, Proc versus lambda semantics, Fiber and lazy Enumerators, and standard libraries like date, singleton, and forwardable.
How much does the Ruby Gold exam cost?
The exam fee is USD 150 (JPY 16,500), with education pricing available for eligible students. There is no fee for study materials when you use the official Ruby Association prep-test, Ruby documentation, and this free practice bank.
Where do I take the Ruby Gold exam?
The exam is administered by the Ruby Association and delivered through Prometric test centers worldwide. You schedule a seat with Prometric; it is a proctored, in-center multiple-choice exam rather than an online-proctored test.