hw 8 done (Thank You!)

This commit is contained in:
=
2026-04-24 19:57:14 +10:00
parent 4532122dee
commit 5feee1007b
5 changed files with 98 additions and 36 deletions

View File

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

View File

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

View File

@@ -32,9 +32,9 @@ function QuizStats() {
const quizPartText = (counter: number, len: number, taskIndex:number) => { const quizPartText = (counter: number, len: number, taskIndex:number) => {
if (counter == len) { 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}> strategy={verticalListSortingStrategy}>
<List> <List>
{draggedItems.map((item) => ( {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> </List>
</SortableContext> </SortableContext>

View File

@@ -12,81 +12,141 @@ export type tQuizzes = {
export const quiz: tQuizzes = [ export const quiz: tQuizzes = [
{ {
"id": 1, "id": 0,
"type": "M", "type": "C",
"title": "вопросй", "title": "RAM price jump: pick true statements",
"tasks": [ "tasks": [
{ {
"question": "адын?", "question": "AI server demand pushed DRAM contracts up in 2024-2025",
"answer": "адын" "answer": true
}, },
{ {
"question": "2", "question": "Laptop DDR5 demand was the main global driver",
"answer": "2" "answer": false
}, },
{ {
"question": "3", "question": "HBM supply limits affected overall memory pricing",
"answer": "3" "answer": true
}, },
{ {
"question": "4", "question": "Memory prices stayed flat through 2025",
"answer": "4" "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, "id": 2,
"type": "S", "type": "S",
"title": "Вопрос 2 СОРТИРУЙ", "title": "Sort AI stack by deployment flow",
"tasks": [ "tasks": [
{ {
"question": "1", "question": "1",
"answer": 1 "answer": "Collect and clean data"
}, },
{ {
"question": "22", "question": "2",
"answer": 2 "answer": "Train model"
}, },
{ {
"question": "333", "question": "3",
"answer": 3 "answer": "Optimize for inference"
}, },
{ {
"question": "4444", "question": "4",
"answer": 4 "answer": "Deploy and monitor"
}, }
{
"question": "5555",
"answer": 5
},
] ]
} },
,
{ {
"id": 3, "id": 3,
"type": "C", "type": "C",
"title": "Вопрос 3 Выбирай", "title": "AI trends: choose true",
"tasks": [ "tasks": [
{ {
"question": "да", "question": "Edge AI adoption grew in 2024-2026",
"answer": true "answer": true
}, },
{ {
"question": "нет", "question": "LLMs removed the need for GPUs",
"answer": false "answer": false
}, },
{ {
"question": "да1", "question": "Smaller task-specific models are still widely used",
"answer": true "answer": true
}, },
{ {
"question": "нет1", "question": "AI inference always runs only in cloud",
"answer": false "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", "question": "DVFS",
"answer": true "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"
}
] ]
} }
] ]