import { QuestionTypes } from '../utils'; import type { ExerciseTemplate } from '$lib/utils/types'; const template: ExerciseTemplate = { title: 'CSS Selectors Quiz', description: 'Test your knowledge of CSS selectors', questionnaire: { questions: [ { title: 'What does the CSS selector "h1" target?', name: 'q1', points: 1, order: 0, question_type: QuestionTypes[0], // RADIO options: [ { label: 'All
elements with class "intro"', is_correct: true }, { label: 'The first
element with class "intro"', is_correct: false }, { label: 'All elements with the id "intro"', is_correct: false }, ], }, { title: 'Explain the usage of the universal selector "*" in CSS.', name: 'q7', points: 2, order: 6, question_type: QuestionTypes[2], // TEXTAREA options: [], }, { title: 'How can you select only the first child element of a parent element?', name: 'q8', points: 2, order: 7, question_type: QuestionTypes[2], // TEXTAREA options: [], }, { title: 'What is the purpose of pseudo-classes in CSS?', name: 'q9', points: 1, order: 8, question_type: QuestionTypes[2], // TEXTAREA options: [], }, { title: 'What is the difference between the "descendant" selector and the "child" selector in CSS?', name: 'q10', points: 2, order: 9, question_type: QuestionTypes[2], // TEXTAREA options: [], }, ], }, }; export default template;