Spaces:
Sleeping
Sleeping
File size: 1,493 Bytes
53f9c43 2b130d1 53f9c43 2b130d1 53f9c43 2b130d1 53f9c43 2b130d1 53f9c43 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
class QuestionLoaderDummy:
def __init__(self):
"""
Initializes the QuestionLoader with Dummy data.
"""
pass
def fetch_questions(self, technology=None):
"""
Fetches the questions for the given technology from the S3 bucket.
:param technology: The technology (e.g., Python, Django) to fetch questions for.
:return: A list of dictionaries, where each dictionary represents a question.
:raises: Exception if the file cannot be fetched or read.
"""
return [
{
"question": "What is 2+2?",
"option1": "3",
"option2": "4",
"option3": "5",
"option4": "6",
"answer": "4",
"difficulty": "high"
},
{
"question": "What is 3*6?",
"option1": "12",
"option2": "18",
"option3": "21",
"option4": "24",
"answer": "18",
"difficulty": "low"
},
{
"question": "What is 8/2?",
"option1": "2",
"option2": "3",
"option3": "4",
"option4": "5",
"answer": "4",
"difficulty": "medium"
},
{
"question": "What is 5-3?",
"option1": "1",
"option2": "2",
"option3": "3",
"option4": "4",
"answer": "2",
"difficulty": "high"
}
] |