This package dedicated to hosting questions for Ruby quizzes. Perfect for those wanting to test their knowledge in Ruby!
JSON Structured Questions: All questions are well-structured in JSON format, making it easy to integrate with various platforms or applications.
Question Anatomy:
mc
).{
"id": "fc5d1ed3-7b26-45c0-bbe6-03f46be062fa",
"question": "```x = [a: 1, b: 2]```\nWhich expression will return true?",
"type": "mc",
"choices": {
"1": "x[0][:a] == 1",
"2": "x[:a] == 1",
"3": "x[:a] == :b",
"4": "x[0] == 1"
},
"answer": "1",
"tags": ["beginner-level", "Hash", "Array"],
"explanation": "The question focuses on understanding the structure of arrays and hashes in Ruby..."
}
Import the library and start accessing a wealth of Ruby-related questions to build your quiz application or use for educational purposes.
import questions from 'ruby-questions';
React-native applications for testing the knowledge of Ruby
Feel free to submit pull requests for adding more questions, enhancing question quality, or improving library functionality.
Author: Vovanmozg
Source Code: https://github.com/vovanmozg/ruby-questions
License: MIT