import { QuestionTypes } from '../utils';
import type { ExerciseTemplate } from '$lib/utils/types';
const template: ExerciseTemplate = {
title: 'HTML Lists Quiz',
description: 'Test your knowledge of HTML lists',
questionnaire: {
questions: [
{
title: 'Which HTML tag is used to create an unordered list?',
name: 'q1',
points: 1,
order: 0,
question_type: QuestionTypes[0], // RADIO
options: [
{ label: '
', is_correct: true },
{ label: '', is_correct: false },
{ label: '- ', is_correct: false }
]
},
{
title: 'What does HTML stand for?',
name: 'q2',
points: 1,
order: 1,
question_type: QuestionTypes[2], // TEXTAREA
options: []
},
{
title: 'Which HTML tag is used to create a numbered list?',
name: 'q3',
points: 1,
order: 2,
question_type: QuestionTypes[0], // RADIO
options: [
{ label: '
', is_correct: false },
{ label: '', is_correct: true },
{ label: '- ', is_correct: false }
]
},
{
title: 'How do you create a nested list in HTML?',
name: 'q4',
points: 1,
order: 3,
question_type: QuestionTypes[1], // CHECKBOX
options: [
{ label: 'By using multiple
elements', is_correct: false },
{ label: 'By using multiple elements', is_correct: false },
{ label: 'By using the - element within another
- element', is_correct: true }
]
},
{
title: 'Which attribute is used to start counting the list items from a specific number?',
name: 'q5',
points: 1,
order: 4,
question_type: QuestionTypes[0], // RADIO
options: [
{ label: 'start', is_correct: true },
{ label: 'begin', is_correct: false },
{ label: 'value', is_correct: false }
]
},
{
title: 'What HTML tag is used to define the description list?',
name: 'q6',
points: 1,
order: 5,
question_type: QuestionTypes[0], // RADIO
options: [
{ label: '
', is_correct: true },
{ label: '', is_correct: false },
{ label: '', is_correct: false }
]
},
{
title: 'Which HTML tag is used to define the term in a description list?',
name: 'q7',
points: 1,
order: 6,
question_type: QuestionTypes[0], // RADIO
options: [
{ label: '- ', is_correct: true },
{ label: '
- ', is_correct: false },
{ label: '
', is_correct: false }
]
},
{
title: 'Which HTML tag is used to define the description in a description list?',
name: 'q8',
points: 1,
order: 7,
question_type: QuestionTypes[0], // RADIO
options: [
{ label: '- ', is_correct: false },
{ label: '
- ', is_correct: true },
{ label: '
', is_correct: false }
]
},
{
title: 'How do you create a horizontal list?',
name: 'q9',
points: 1,
order: 8,
question_type: QuestionTypes[0], // RADIO
options: [
{ label: 'By using the element', is_correct: false },
{ label: 'By using the element', is_correct: false },
{ label: 'By using the - element with CSS styling', is_correct: true }
]
},
{
title: 'Which HTML tag is used to define an item in a list?',
name: 'q10',
points: 1,
order: 9,
question_type: QuestionTypes[0], // RADIO
options: [
{ label: '
', is_correct: false },
{ label: '', is_correct: false },
{ label: '- ', is_correct: true }
]
}
]
}
};
export default template;