Skip to content

Commit

Permalink
Merge branch 'main' into trie
Browse files Browse the repository at this point in the history
  • Loading branch information
jdwilkin4 authored Oct 2, 2023
2 parents cefdf51 + 42d084d commit 2570c66
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 6 deletions.
34 changes: 28 additions & 6 deletions src/data/accessibility-quiz.ts
Original file line number Diff line number Diff line change
Expand Up @@ -378,14 +378,14 @@ const accessibilityQuiz = [
},
{
Question:
"Which of the following HTML tags does NOT use the autocomplete attribute?",
Answer: "<html>",
Distractor1: "<input>",
Distractor2: "<text>",
"Which of the following HTML tags does NOT use the rel attribute?",
Answer: "<input>",
Distractor1: "<link>",
Distractor2: "<area>",
Distractor3: "<form>",
Explanation:
"The autocomplete attribute can be used in the following HTML elements: <input>, <textarea>, <select> and <form>.",
Link: "https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete"
"The rel attribute can be used in the following HTML elements: <link>, <a>, <area>, and <form>",
Link: "https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel"
},
{
Question: "What is the function of the contentinfo ARIA role?",
Expand Down Expand Up @@ -417,7 +417,29 @@ 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:
"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.",
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;
10 changes: 10 additions & 0 deletions src/data/agile-quiz.ts
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,16 @@ const agileQuiz = [
Explanation:
"In Agile, the Product Owner has the ability to cancel a Sprint.",
Link: "https://scrumguides.org/scrum-guide.html"
},
{
Question: "For Agile teams, the primary measure of progress is:",
Answer: "Working software",
Distractor1: "Burndown charts",
Distractor2: "Kanban board",
Distractor3: "Customer satisfaction",
Explanation:
"Working software is the primary measure of progress in Agile, according to the seventh principle of the Agile Manifesto. This means that Agile teams focus on delivering software that meets the customer’s needs and provides value. By delivering working software frequently, Agile teams can demonstrate their progress and achievements",
Link: "https://www.freecodecamp.org/news/you-say-your-team-is-agile-but-that-word-may-not-mean-what-you-think-6dd26eaf9b21/"
}
];

Expand Down
18 changes: 18 additions & 0 deletions src/data/general-cs-quiz.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1466,6 +1466,24 @@ const generalCSQuiz = [
Distractor3: "Tree",
Explanation: "A Trie is a tree based data structure where each node stores a character performing efficient search operations on them",
Link: "https://en.wikipedia.org/wiki/Trie"
},
{
Question: "Which of the following tree traversal algorithms has an O(1) space complexity?",
Answer: "Morris algorithm",
Distractor1: "Bellman-Ford algorithm",
Distractor2: "Floyd Warshall algorithm",
Distractor3: "Dijkstra's algorithm",
Explanation: "Morris traversal is a tree traversal algorithm that does not employ the use of recursion or a stack. In this traversal, links are created as successors and nodes are printed using these links.",
Link: "https://en.wikipedia.org/wiki/Tree_traversal#Morris_in-order_traversal_using_threading"
},
{
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"
}
];

Expand Down

0 comments on commit 2570c66

Please sign in to comment.