Ruby exam
This exam measures what you've actually learned, in three stages: Easy, Medium, then Hard. Each stage unlocks the next. There are no hints and no ready-made solutions, so it's just you and your code, graded automatically like in the lessons.
- Stage 1Locked
Easy
- GradingA case statement with ranges8 min
- Order totalAn array of hashes and Enumerable methods10 min
- Stage 2Locked
Medium
- Most frequent wordsCounting with tally and sorting by two keys13 min
- Alphabetical indexGrouping with group_by and transforming values12 min
- Stage 3Locked
Hard
- InventoryA class that mixes in Enumerable18 min
- Comparable productsMixing in Comparable and a module of your own18 min