hw 8 done (Thank You!)

This commit is contained in:
=
2026-04-24 19:57:14 +10:00
committed by OkunElya
parent 9c1e80ac74
commit 0263b7d186
5 changed files with 98 additions and 36 deletions

View File

@@ -30,6 +30,7 @@ export function SortableItem({ item ,isDisabled}: SortableItemProps) {
sx={{
border: '1px solid gray',
borderRadius: '5px',
height:"4.4em"
}}>
<ListItemIcon>
<DragIndicatorIcon />

View File

@@ -34,6 +34,7 @@ function Matching({ tasks, index }: ComponentProps) {
border: '1px solid gray',
borderRadius: '5px',
textAlign: 'right',
height:"4.4em"
}}>
<ListItemText primary={item.question} />
</ListItemButton>

View File

@@ -32,9 +32,9 @@ function QuizStats() {
const quizPartText = (counter: number, len: number, taskIndex:number) => {
if (counter == len) {
return <Typography key={taskIndex}>Задание {taskIndex+1}: все ответы верные</Typography>
return <Typography key={taskIndex}>Task {taskIndex+1}: everethyng is correct</Typography>
}
return <Typography key={taskIndex}>Задание {taskIndex+1}: верно {counter}/{len}</Typography>
return <Typography key={taskIndex}>Task {taskIndex+1}: correct {counter}/{len}</Typography>
}

View File

@@ -33,7 +33,7 @@ function SortableList({ index}: ComponentProps) {
strategy={verticalListSortingStrategy}>
<List>
{draggedItems.map((item) => (
<SortableItem key={String(item)} item={String(item)} id={String(item)} isDisabled={isDisabled}/>
<SortableItem key={String(item)} item={String(item)} id={String(item)} isDisabled={isDisabled} />
))}
</List>
</SortableContext>

View File

@@ -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"
}
]
}
]