From e37fe42b631a7b743c0e973f0557b254d44ec921 Mon Sep 17 00:00:00 2001 From: Shiva Sai Date: Mon, 2 Oct 2023 18:11:42 +0530 Subject: [PATCH 1/6] chore: add web-accessibility question (#705) * chore:add web-accessibility question * Updated Answer --- src/data/accessibility-quiz.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/data/accessibility-quiz.ts b/src/data/accessibility-quiz.ts index 24e1859cb..91a11bd8c 100644 --- a/src/data/accessibility-quiz.ts +++ b/src/data/accessibility-quiz.ts @@ -417,7 +417,18 @@ const accessibilityQuiz = [ Explanation: "The minimum contrast ratio needed depends on the type and size of the text and the level of conformance. For normal text, the minimum contrast ratio is 4.5:1.", Link: "https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html" + }, + { + Question: "What is keyboard accessibility, and why is it important for web accessibility?", + Answer: "Keyboard accessibility refers to the ability to navigate and interact with a website using only the keyboard, without relying on a mouse.", + Distractor1: "Keyboard accessibility refers to using specialized keyboards for web browsing.", + Distractor2: "Keyboard accessibility is a feature that improves website loading speed.", + Distractor3: "Keyboard accessibility is only important for developers, not users.", + Explanation: + "Keyboard accessibility is a fundamental aspect of web accessibility, as it ensures that websites are usable by a wide range of users, including those with disabilities. Providing keyboard support means implementing focus management, allowing users to navigate through interactive elements, and ensuring that all functionality is accessible via keyboard input.", + Link: "https://developer.mozilla.org/en-US/docs/Web/Accessibility/Keyboard-navigable_JavaScript_widgets" } + ]; export default accessibilityQuiz; From 14cb153481d025b7d837dd93e4802d4e9a7c9ab3 Mon Sep 17 00:00:00 2001 From: Sugam Goel <115802873+Sugamgoel28@users.noreply.github.com> Date: Mon, 2 Oct 2023 20:30:43 +0530 Subject: [PATCH 2/6] feat: adding Web Accessibility Quiz Question (#711) --- src/data/accessibility-quiz.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/data/accessibility-quiz.ts b/src/data/accessibility-quiz.ts index 91a11bd8c..1da354ed0 100644 --- a/src/data/accessibility-quiz.ts +++ b/src/data/accessibility-quiz.ts @@ -418,6 +418,17 @@ const accessibilityQuiz = [ "The minimum contrast ratio needed depends on the type and size of the text and the level of conformance. For normal text, the minimum contrast ratio is 4.5:1.", Link: "https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html" }, + { + Question: + "In the context of web accessibility, what does 'cognitive accessibility' refer to?", + Answer: "Ensuring that web content is easy to understand and use for individuals with cognitive disabilities.", + Distractor1: "Making web content more engaging and interactive.", + Distractor2: "Enhancing the creativity and aesthetics of web design.", + Distractor3: "Providing audio descriptions for video content.", + Explanation: + "'Cognitive accessibility' refers to the practice of designing and structuring web content in a way that makes it easy to comprehend and navigate for individuals with cognitive disabilities like dyslexia, attention deficit disorders, or intellectual disabilities.", + Link: "https://www.w3.org/WAI/cognitive/" + }, { Question: "What is keyboard accessibility, and why is it important for web accessibility?", Answer: "Keyboard accessibility refers to the ability to navigate and interact with a website using only the keyboard, without relying on a mouse.", From 0dc11194b826311bc56a5f48e5d5fbd75ad3ede0 Mon Sep 17 00:00:00 2001 From: Dhruv Jain <56195235+dhruvjain896@users.noreply.github.com> Date: Mon, 2 Oct 2023 20:34:40 +0530 Subject: [PATCH 3/6] feat: adding quiz question on ternary search(#713) Added a question based on the concept of ternary search in general-cs-quiz --- src/data/general-cs-quiz.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/data/general-cs-quiz.ts b/src/data/general-cs-quiz.ts index b73ebb49c..3af697948 100644 --- a/src/data/general-cs-quiz.ts +++ b/src/data/general-cs-quiz.ts @@ -1457,6 +1457,15 @@ const generalCSQuiz = [ Distractor3: "number*of*donuts", Explanation: "Kebab case separates each lowercase word by dashes.", Link: "https://www.freecodecamp.org/news/snake-case-vs-camel-case-vs-pascal-case-vs-kebab-case-whats-the-difference/" + }, + { + Question: "Which of the following search algorithms is best for finding the minimum or maximum of an unimodal function?", + Answer: "Ternary Search", + Distractor1: "Binary Search", + Distractor2: "Linear Search", + Distractor3: "Sentinel Linear Search", + Explanation: "Ternary Search is similar to binary search but distinguishes itself through a trisection approach giving us three possibilities for the two points m1 and m2 f(m1) < f(m2), f(m1) > f(m2), f(m1) = f(m2)", + Link: "https://en.wikipedia.org/wiki/Ternary_search" } ]; From cdd87aff3f96ea9b06795d82742f355d0aea3002 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=24=40nj=40=C2=A5?= <81739193+sanjaypinna@users.noreply.github.com> Date: Mon, 2 Oct 2023 20:49:57 +0530 Subject: [PATCH 4/6] feat: Add a question regarding rel attribute in accessibility quiz.ts (#703) * remove a duplicate question * add new question regarding attribute rel * fix options --- src/data/accessibility-quiz.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/data/accessibility-quiz.ts b/src/data/accessibility-quiz.ts index 1da354ed0..4ed417273 100644 --- a/src/data/accessibility-quiz.ts +++ b/src/data/accessibility-quiz.ts @@ -378,14 +378,14 @@ const accessibilityQuiz = [ }, { Question: - "Which of the following HTML tags does NOT use the autocomplete attribute?", - Answer: "", - Distractor1: "", - Distractor2: "", + "Which of the following HTML tags does NOT use the rel attribute?", + Answer: "", + Distractor1: "", + Distractor2: "", Distractor3: "
", Explanation: - "The autocomplete attribute can be used in the following HTML elements: ,