From 5feee1007b9acc64387506c1d1d858f8468436e3 Mon Sep 17 00:00:00 2001 From: = <=> Date: Fri, 24 Apr 2026 19:57:14 +1000 Subject: [PATCH] hw 8 done (Thank You!) --- site/src/quiz/components/SortableItem.tsx | 1 + site/src/quiz/features/Matching.tsx | 1 + site/src/quiz/features/Quiz.tsx | 4 +- site/src/quiz/features/SortableList.tsx | 2 +- site/src/quiz/quizData.tsx | 126 ++++++++++++++++------ 5 files changed, 98 insertions(+), 36 deletions(-) diff --git a/site/src/quiz/components/SortableItem.tsx b/site/src/quiz/components/SortableItem.tsx index 07a965e..8bcb7a2 100644 --- a/site/src/quiz/components/SortableItem.tsx +++ b/site/src/quiz/components/SortableItem.tsx @@ -30,6 +30,7 @@ export function SortableItem({ item ,isDisabled}: SortableItemProps) { sx={{ border: '1px solid gray', borderRadius: '5px', + height:"4.4em" }}> diff --git a/site/src/quiz/features/Matching.tsx b/site/src/quiz/features/Matching.tsx index 6004ed0..c97faea 100644 --- a/site/src/quiz/features/Matching.tsx +++ b/site/src/quiz/features/Matching.tsx @@ -34,6 +34,7 @@ function Matching({ tasks, index }: ComponentProps) { border: '1px solid gray', borderRadius: '5px', textAlign: 'right', + height:"4.4em" }}> diff --git a/site/src/quiz/features/Quiz.tsx b/site/src/quiz/features/Quiz.tsx index 9e12663..0476abd 100644 --- a/site/src/quiz/features/Quiz.tsx +++ b/site/src/quiz/features/Quiz.tsx @@ -32,9 +32,9 @@ function QuizStats() { const quizPartText = (counter: number, len: number, taskIndex:number) => { if (counter == len) { - return Задание {taskIndex+1}: все ответы верные + return Task {taskIndex+1}: everethyng is correct } - return Задание {taskIndex+1}: верно {counter}/{len} + return Task {taskIndex+1}: correct {counter}/{len} } diff --git a/site/src/quiz/features/SortableList.tsx b/site/src/quiz/features/SortableList.tsx index aadbb74..9a64fbd 100644 --- a/site/src/quiz/features/SortableList.tsx +++ b/site/src/quiz/features/SortableList.tsx @@ -33,7 +33,7 @@ function SortableList({ index}: ComponentProps) { strategy={verticalListSortingStrategy}> {draggedItems.map((item) => ( - + ))} diff --git a/site/src/quiz/quizData.tsx b/site/src/quiz/quizData.tsx index 0129328..0bf1016 100644 --- a/site/src/quiz/quizData.tsx +++ b/site/src/quiz/quizData.tsx @@ -12,81 +12,141 @@ export type tQuizzes = { export const quiz: tQuizzes = [ { - "id": 1, - "type": "M", - "title": "вопросй", + "id": 0, + "type": "C", + "title": "RAM price jump: pick true statements", "tasks": [ { - "question": "адын?", - "answer": "адын" + "question": "AI server demand pushed DRAM contracts up in 2024-2025", + "answer": true }, { - "question": "2", - "answer": "2" + "question": "Laptop DDR5 demand was the main global driver", + "answer": false }, { - "question": "3", - "answer": "3" + "question": "HBM supply limits affected overall memory pricing", + "answer": true }, { - "question": "4", - "answer": "4" + "question": "Memory prices stayed flat through 2025", + "answer": false + } + ] + }, + { + "id": 1, + "type": "M", + "title": "Match RAM market terms", + "tasks": [ + { + "question": "HBM", + "answer": "High Bandwidth Memory" }, + { + "question": "DRAM", + "answer": "Dynamic Random Access Memory" + }, + { + "question": "NAND", + "answer": "Flash storage memory" + }, + { + "question": "Contract price", + "answer": "Long-term negotiated memory price" + } ] }, { "id": 2, "type": "S", - "title": "Вопрос 2 СОРТИРУЙ", + "title": "Sort AI stack by deployment flow", "tasks": [ { "question": "1", - "answer": 1 + "answer": "Collect and clean data" }, { - "question": "22", - "answer": 2 + "question": "2", + "answer": "Train model" }, { - "question": "333", - "answer": 3 + "question": "3", + "answer": "Optimize for inference" }, { - "question": "4444", - "answer": 4 - }, - { - "question": "5555", - "answer": 5 - }, + "question": "4", + "answer": "Deploy and monitor" + } ] - } -, + }, { "id": 3, "type": "C", - "title": "Вопрос 3 Выбирай", + "title": "AI trends: choose true", "tasks": [ { - "question": "да", + "question": "Edge AI adoption grew in 2024-2026", "answer": true }, { - "question": "нет", + "question": "LLMs removed the need for GPUs", "answer": false }, { - "question": "да1", + "question": "Smaller task-specific models are still widely used", "answer": true }, { - "question": "нет1", + "question": "AI inference always runs only in cloud", "answer": false + } + ] + }, + { + "id": 4, + "type": "M", + "title": "Match low-energy embedded methods", + "tasks": [ + { + "question": "Sleep mode", + "answer": "Turns off CPU blocks between events" }, { - "question": "да2", - "answer": true + "question": "DVFS", + "answer": "Adjusts voltage and frequency to save power" }, + { + "question": "Interrupt wakeup", + "answer": "Wakes MCU only on external/internal trigger" + }, + { + "question": "Duty cycling", + "answer": "Runs sensors and radio in short active bursts" + } + ] + }, + { + "id": 5, + "type": "S", + "title": "Sort low-energy embedded design steps", + "tasks": [ + { + "question": "1", + "answer": "Measure baseline current" + }, + { + "question": "2", + "answer": "Set sleep and wake strategy" + }, + { + "question": "3", + "answer": "Tune radio and sensor duty cycle" + }, + { + "question": "4", + "answer": "Validate battery-life target" + } ] } ] \ No newline at end of file