Search test library by skills or roles
⌘ K

Adaface Sample Ruby Questions

Here are some sample Ruby questions from our premium questions library (10273 non-googleable questions).

Skills

🧐 Question

Easy

Arrays Strings
Arrays
Strings
Solve
Check the  following Ruby code:
 image
We want the following execution result:
            - Commit
            - PR
            - Merge
What should we replace __BLOCK__  with to achieve this?

Medium

Class and Self
OOPs
Solve
What is the execution result of the following Ruby code?
 image
 image

Easy

Exceptions
Exceptions
OOPs
Solve
What is the result of following Ruby code:
 image

Medium

New Class
OOPs
Singleton
Solve
Check the  following Ruby code:
 image
Which all of the following statements should replace __BLOCK__ to have "Marvel" as execution result?
A: Sample.new.class.ciao
            B: Sample.class.new.ciao
            C: Sample.new.ciao
            D: Sample.ciao
🧐 Question🔧 Skill

Easy

Arrays Strings
Arrays
Strings
2 mins
Ruby
Solve

Medium

Class and Self
OOPs
2 mins
Ruby
Solve

Easy

Exceptions
Exceptions
OOPs
2 mins
Ruby
Solve

Medium

New Class
OOPs
Singleton
2 mins
Ruby
Solve
🧐 Question🔧 Skill💪 Difficulty⌛ Time
Arrays Strings
Arrays
Strings
Ruby
Easy2 mins
Solve
Class and Self
OOPs
Ruby
Medium2 mins
Solve
Exceptions
Exceptions
OOPs
Ruby
Easy2 mins
Solve
New Class
OOPs
Singleton
Ruby
Medium2 mins
Solve

Adaface questions are trusted by enterprises globally

Amazon Morgan Stanley Vodafone United Nations HCL PayPal Bosch WeWork Optimum Solutions Deloitte Microsoft NCS Doubtnut Sokrati J&T Express Capegemini

We evaluated several of their competitors and found Adaface to be the most compelling. Great default library of questions that are designed to test for fit rather than memorization of algorithms.


Swayam Narain, CTO, Affable

hashtag image heart icon Swayam
Join 1200+ companies in 75+ countries.
Prøv det mest kandidatvenlige færdighedsvurderingsværktøj i dag.
Ready to streamline your recruitment efforts with Adaface?
Ready to streamline your recruitment efforts with Adaface?
40 min tests.
No trick questions.
Accurate shortlisting.
Ada
Ada
● Online
Previous
Score: NA
Next
✖️