
































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

































Exam Overview
This original practice exam covers HTML, CSS, JavaScript, frameworks and tooling, accessibility, performance, defensive security, ethics, and applied scenarios. Standards and tools change so please confirm with current documentation. It is educational only and is not an official vendor exam. It does not reproduce course material.
Exam Front End Web Development Practice Exam (HTML, CSS, JavaScript, Frameworks, Accessibility, Performance, Security, Ethics) - 300 Original Questions with Answers
Intended for Front end developers
Number of questions 300 multiple-choice (four options, one best answer)
Content areas 9
Suggested time 5 hours (about 60 seconds per question)
Suggested passing target 80% or higher (240 of 300)
Answer format The correct answer and explanation appear directly after each question
Content area Questions Share HTML 33 11% CSS 33 11% JavaScript 33 11% Frameworks and Tooling 33 11% Accessibility 33 11% Performance 33 11% Security 33 11% Ethics 33 11% Applied Scenarios 36 12%
Original study notes written for this exam (confirm against current official documentation and local rules) Note: This is an independent practice resource. It is not affiliated with or endorsed by any testing organization, and it does not contain actual exam questions or proprietary material. Facts, laws, fees and guidelines change; confirm current requirements with official sources. Some distractors were generated from other items in the same exam and explanations are short.
Section 1: HTML
Educational only and not an official vendor exam; browser features and standards change so please confirm with current documentation; security items are defensive only; not legal advice
A. Related side content B. Ordered list C. Unordered list D. Hyperlink Correct answer: D. Hyperlink Explanation: Here, "a element" is matched with "Hyperlink". Other options: "Related side content" belongs to "aside element"; "Ordered list" belongs to "ol element"; "Unordered list" belongs to "ul element".
A. Clickable control B. Unique identifier C. Controls mobile scaling D. Generic block container Correct answer: A. Clickable control Explanation: Here, "button element" is matched with "Clickable control". Other options: "Unique identifier" belongs to "id attribute"; "Controls mobile scaling" belongs to "meta viewport"; "Generic block container" belongs to "div element".
A. Reusable group name B. Generic block container C. Primary content D. Related side content Correct answer: C. Primary content Explanation: Here, "main element" is matched with "Primary content". Other options: "Reusable group name" belongs to "class attribute"; "Generic block container" belongs to "div element"; "Related side content" belongs to "aside element".
A. Thematic grouping B. Multi line text input C. Controls mobile scaling D. Unique identifier Correct answer: D. Unique identifier Explanation: Here, "id attribute" is matched with "Unique identifier". Other options: "Thematic grouping" belongs to "section element"; "Multi line text input" belongs to "textarea element"; "Controls mobile scaling" belongs to "meta viewport".
A. Markup language for page structure B. Tabular data C. Hyperlink D. Holds visible content Correct answer: A. Markup language for page structure Explanation: Here, "HTML" is matched with "Markup language for page structure". Other options: "Tabular data" belongs to "table element"; "Hyperlink" belongs to "a element"; "Holds visible content" belongs to "body element".
A. Generic block container B. Names a form control C. Self contained content D. List item Correct answer: A. Generic block container Explanation: Here, "div element" is matched with "Generic block container". Other options: "Names a form control" belongs to "label element"; "Self contained content" belongs to "article element"; "List item" belongs to "li element".
A. Draws graphics with script B. Holds visible content C. Tabular data D. List item Correct answer: B. Holds visible content Explanation: Here, "body element" is matched with "Holds visible content". Other options: "Draws graphics with script" belongs to "canvas element"; "Tabular data" belongs to "table element"; "List item" belongs to "li element".
A. Dropdown list B. Primary content C. List item D. Self contained content Correct answer: D. Self contained content Explanation: Here, "article element" is matched with "Self contained content". Other options: "Dropdown list" belongs to "select element"; "Primary content" belongs to "main element"; "List item" belongs to "li element".
A. Collects user input B. Clickable control C. Sets the tab title D. Form control Correct answer: A. Collects user input Explanation: Here, "form element" is matched with "Collects user input". Other options: "Clickable control" belongs to "button element"; "Sets the tab title" belongs to "title element"; "Form control" belongs to "input element".
A. Uses meaningful elements B. Heading levels C. Unordered list D. Holds metadata Correct answer: C. Unordered list Explanation: Here, "ul element" is matched with "Unordered list". Other options: "Uses meaningful elements" belongs to "Semantic HTML"; "Heading levels" belongs to "h1 to h6"; "Holds metadata" belongs to "head element".
A. Unique identifier B. Holds visible content C. Ordered list D. Holds metadata Correct answer: C. Ordered list Explanation: Here, "ol element" is matched with "Ordered list". Other options: "Unique identifier" belongs to "id attribute"; "Holds visible content" belongs to "body element"; "Holds metadata" belongs to "head element".
A. Unique identifier B. Text alternative for images C. List item D. Sets the tab title Correct answer: B. Text alternative for images Explanation: Here, "alt attribute" is matched with "Text alternative for images". Other options: "Unique identifier" belongs to "id attribute"; "List item" belongs to "li element"; "Sets the tab title" belongs to "title element".
A. Thematic grouping B. Hyperlink C. Dropdown list D. Custom data prefix Correct answer: A. Thematic grouping Explanation: Here, "section element" is matched with "Thematic grouping". Other options: "Hyperlink" belongs to "a element"; "Dropdown list" belongs to "select element"; "Custom data prefix" belongs to "data attribute".
A. Form control B. Footer content C. Heading levels D. Root element Correct answer: A. Form control Explanation: Here, "input element" is matched with "Form control". Other options: "Footer content" belongs to "footer element"; "Heading levels" belongs to "h1 to h6"; "Root element" belongs to "html element".
A. Footer content B. Uses meaningful elements C. Ordered list D. Generic block container Correct answer: A. Footer content Explanation: Here, "footer element" is matched with "Footer content". Other options: "Uses meaningful elements" belongs to "Semantic HTML"; "Ordered list" belongs to "ol element"; "Generic block container" belongs to "div element".
A. Related side content B. Heading levels C. Holds metadata D. Unique identifier Correct answer: C. Holds metadata Explanation: Here, "head element" is matched with "Holds metadata". Other options: "Related side content" belongs to "aside element"; "Heading levels" belongs to "h1 to h6"; "Unique identifier" belongs to "id attribute".
A. Text alternative for images B. Heading levels C. Reusable group name D. Ordered list Correct answer: C. Reusable group name Explanation: Here, "class attribute" is matched with "Reusable group name". Other options: "Text alternative for images" belongs to "alt attribute"; "Heading levels" belongs to "h1 to h6"; "Ordered list" belongs to "ol element".
A. Thematic grouping B. Text alternative for images C. Controls mobile scaling D. Sets the tab title Correct answer: D. Sets the tab title Explanation: Here, "title element" is matched with "Sets the tab title". Other options: "Thematic grouping" belongs to "section element"; "Text alternative for images" belongs to "alt attribute"; "Controls mobile scaling" belongs to "meta viewport".
A. Embeds an image B. Unique identifier C. Primary content D. Root element Correct answer: D. Root element Explanation: Here, "html element" is matched with "Root element". Other options: "Embeds an image" belongs to "img element"; "Unique identifier" belongs to "id attribute"; "Primary content" belongs to "main element".
A. Embeds another page B. Holds visible content C. Unique identifier D. Multi line text input Correct answer: A. Embeds another page Explanation: Here, "iframe element" is matched with "Embeds another page". Other options: "Holds visible content" belongs to "body element"; "Unique identifier" belongs to "id attribute"; "Multi line text input" belongs to "textarea element".
A. Collects user input B. Thematic grouping C. Embeds an image D. Uses meaningful elements Correct answer: C. Embeds an image Explanation: Here, "img element" is matched with "Embeds an image". Other options: "Collects user input" belongs to "form element"; "Thematic grouping" belongs to "section element"; "Uses meaningful elements" belongs to "Semantic HTML".
A. Heading levels B. Tabular data C. List item D. Custom data prefix Correct answer: B. Tabular data Explanation: Here, "table element" is matched with "Tabular data". Other options: "Heading levels" belongs to "h1 to h6"; "List item" belongs to "li element"; "Custom data prefix" belongs to "data attribute".
A. Unordered list B. Clickable control C. Primary content D. Heading levels Correct answer: D. Heading levels Explanation: Here, "h1 to h6" is matched with "Heading levels". Other options: "Unordered list" belongs to "ul element"; "Clickable control" belongs to "button element"; "Primary content" belongs to "main element".
Section 2: CSS
Educational only and not an official vendor exam; browser features and standards change so please confirm with current documentation; security items are defensive only; not legal advice
A. Line around an element B. Takes full width C. Relative to parent font size D. Placed against a positioned ancestor Correct answer: D. Placed against a positioned ancestor Explanation: Here, "Position absolute" is matched with "Placed against a positioned ancestor". Other options: "Line around an element" belongs to "Border"; "Takes full width" belongs to "Display block"; "Relative to parent font size" belongs to "em unit".
A. Animates property changes B. Fixed to the viewport C. Switches between relative and fixed D. Relative to parent font size Correct answer: A. Animates property changes Explanation: Here, "Transition" is matched with "Animates property changes". Other options: "Fixed to the viewport" belongs to "Position fixed"; "Switches between relative and fixed" belongs to "Position sticky"; "Relative to parent font size" belongs to "em unit".
A. Space outside the border B. Default flow C. Keyframe based motion D. Fixed to the viewport Correct answer: D. Fixed to the viewport Explanation: Here, "Position fixed" is matched with "Fixed to the viewport". Other options: "Space outside the border" belongs to "Margin"; "Default flow" belongs to "Position static"; "Keyframe based motion" belongs to "Animation".
A. Order and priority of rules B. Older wrapping layout C. Targets a state such as hover D. Placed against a positioned ancestor Correct answer: B. Older wrapping layout Explanation: Here, "Float" is matched with "Older wrapping layout". Other options: "Order and priority of rules" belongs to "Cascade"; "Targets a state such as hover" belongs to "Pseudo class"; "Placed against a positioned ancestor" belongs to "Position absolute".
A. Animates property changes B. Placed against a positioned ancestor C. Targets part of an element such as before D. Switches between relative and fixed Correct answer: C. Targets part of an element such as before Explanation: Here, "Pseudo element" is matched with "Targets part of an element such as before". Other options: "Animates property changes" belongs to "Transition"; "Placed against a positioned ancestor" belongs to "Position absolute"; "Switches between relative and fixed" belongs to "Position sticky".
A. Stacking order B. Switches between relative and fixed C. Order and priority of rules D. Targets a state such as hover Correct answer: A. Stacking order Explanation: Here, "z index" is matched with "Stacking order". Other options: "Switches between relative and fixed" belongs to "Position sticky"; "Order and priority of rules" belongs to "Cascade"; "Targets a state such as hover" belongs to "Pseudo class".
A. Flows with text B. Animates property changes C. Uses the greater than sign D. Keyframe based motion Correct answer: C. Uses the greater than sign Explanation: Here, "Child selector" is matched with "Uses the greater than sign". Other options: "Flows with text" belongs to "Display inline"; "Animates property changes" belongs to "Transition"; "Keyframe based motion" belongs to "Animation".
A. Decides which rule wins B. Includes padding in width C. Uses a hash D. Flows with text Correct answer: D. Flows with text Explanation: Here, "Display inline" is matched with "Flows with text". Other options: "Decides which rule wins" belongs to "Specificity"; "Includes padding in width" belongs to "box sizing border box"; "Uses a hash" belongs to "ID selector".
A. Variables with double dash B. Targets a state such as hover C. Space inside the border D. Uses the greater than sign Correct answer: A. Variables with double dash Explanation: Here, "Custom properties" is matched with "Variables with double dash". Other options: "Targets a state such as hover" belongs to "Pseudo class"; "Space inside the border" belongs to "Padding"; "Uses the greater than sign" belongs to "Child selector".
A. Uses the greater than sign B. Decides which rule wins C. Targets elements D. Order and priority of rules Correct answer: B. Decides which rule wins Explanation: Here, "Specificity" is matched with "Decides which rule wins". Other options: "Uses the greater than sign" belongs to "Child selector"; "Targets elements" belongs to "Selector"; "Order and priority of rules" belongs to "Cascade".
A. Keyframe based motion B. Default flow C. Uses the greater than sign D. Animates property changes Correct answer: B. Default flow Explanation: Here, "Position static" is matched with "Default flow". Other options: "Keyframe based motion" belongs to "Animation"; "Uses the greater than sign" belongs to "Child selector"; "Animates property changes" belongs to "Transition".
A. Animates property changes B. Space outside the border C. Fixed to the viewport D. Keyframe based motion Correct answer: D. Keyframe based motion Explanation: Here, "Animation" is matched with "Keyframe based motion". Other options: "Animates property changes" belongs to "Transition"; "Space outside the border" belongs to "Margin"; "Fixed to the viewport" belongs to "Position fixed".
A. Switches between relative and fixed B. Takes full width C. Children take some parent values D. Older wrapping layout Correct answer: B. Takes full width Explanation: Here, "Display block" is matched with "Takes full width". Other options: "Switches between relative and fixed" belongs to "Position sticky"; "Children take some parent values" belongs to "Inheritance"; "Older wrapping layout" belongs to "Float".
A. Start with small screens B. Relative to parent font size C. Content padding border margin D. Order and priority of rules Correct answer: D. Order and priority of rules Explanation: Here, "Cascade" is matched with "Order and priority of rules". Other options: "Start with small screens" belongs to "Mobile first"; "Relative to parent font size" belongs to "em unit"; "Content padding border margin" belongs to "Box model".
A. Children take some parent values B. Defines columns C. Older wrapping layout D. Uses the greater than sign Correct answer: A. Children take some parent values Explanation: Here, "Inheritance" is matched with "Children take some parent values". Other options: "Defines columns" belongs to "grid template columns"; "Older wrapping layout" belongs to "Float"; "Uses the greater than sign" belongs to "Child selector".
A. Fixed to the viewport B. Relative to parent font size C. Defines columns D. Space between items Correct answer: B. Relative to parent font size Explanation: Here, "em unit" is matched with "Relative to parent font size". Other options: "Fixed to the viewport" belongs to "Position fixed"; "Defines columns" belongs to "grid template columns"; "Space between items" belongs to "gap".
A. Uses the greater than sign B. Defines columns C. Space outside the border D. Space between selectors Correct answer: D. Space between selectors Explanation: Here, "Descendant selector" is matched with "Space between selectors". Other options: "Uses the greater than sign" belongs to "Child selector"; "Defines columns" belongs to "grid template columns"; "Space outside the border" belongs to "Margin".
A. Order and priority of rules B. Animates property changes C. Targets elements D. Targets a state such as hover Correct answer: C. Targets elements Explanation: Here, "Selector" is matched with "Targets elements". Other options: "Order and priority of rules" belongs to "Cascade"; "Animates property changes" belongs to "Transition"; "Targets a state such as hover" belongs to "Pseudo class".
A. Space inside the border B. Targets a state such as hover C. Placed against a positioned ancestor D. Order and priority of rules Correct answer: B. Targets a state such as hover Explanation: Here, "Pseudo class" is matched with "Targets a state such as hover". Other options: "Space inside the border" belongs to "Padding"; "Placed against a positioned ancestor" belongs to "Position absolute"; "Order and priority of rules" belongs to "Cascade".
A. Switches between relative and fixed B. Default flow C. Includes padding in width D. Start with small screens Correct answer: C. Includes padding in width Explanation: Here, "box sizing border box" is matched with "Includes padding in width". Other options: "Switches between relative and fixed" belongs to "Position sticky"; "Default flow" belongs to "Position static"; "Start with small screens" belongs to "Mobile first".
A. Includes padding in width B. Variables with double dash C. Space inside the border D. Line around an element Correct answer: C. Space inside the border Explanation: Here, "Padding" is matched with "Space inside the border". Other options: "Includes padding in width" belongs to "box sizing border box"; "Variables with double dash" belongs to "Custom properties"; "Line around an element" belongs to "Border".
A. Uses the greater than sign B. Line around an element C. Two dimensional layout D. Adapts to screen sizes Correct answer: C. Two dimensional layout Explanation: Here, "Grid" is matched with "Two dimensional layout". Other options: "Uses the greater than sign" belongs to "Child selector"; "Line around an element" belongs to "Border"; "Adapts to screen sizes" belongs to "Responsive design".
A. Relative to parent font size B. Order and priority of rules C. Line around an element D. Decides which rule wins Correct answer: C. Line around an element Explanation: Here, "Border" is matched with "Line around an element". Other options: "Relative to parent font size" belongs to "em unit"; "Order and priority of rules" belongs to "Cascade"; "Decides which rule wins" belongs to "Specificity".
A. Syntax for promises B. Text data format C. Function remembering its scope D. Document object model Correct answer: D. Document object model Explanation: Here, "DOM" is matched with "Document object model". Other options: "Syntax for promises" belongs to "async await"; "Text data format" belongs to "JSON"; "Function remembering its scope" belongs to "Closure".
A. Key value collection B. Text data format C. Selects an element by CSS D. Expands iterables Correct answer: A. Key value collection Explanation: Here, "Object" is matched with "Key value collection". Other options: "Text data format" belongs to "JSON"; "Selects an element by CSS" belongs to "querySelector"; "Expands iterables" belongs to "Spread operator".
A. Expands iterables B. Selects an element by CSS C. Block scoped variable D. Tab session storage Correct answer: C. Block scoped variable Explanation: Here, "let" is matched with "Block scoped variable". Other options: "Expands iterables" belongs to "Spread operator"; "Selects an element by CSS" belongs to "querySelector"; "Tab session storage" belongs to "sessionStorage".
A. Function remembering its scope B. Key value collection C. Text data format D. Tab session storage Correct answer: A. Function remembering its scope Explanation: Here, "Closure" is matched with "Function remembering its scope". Other options: "Key value collection" belongs to "Object"; "Text data format" belongs to "JSON"; "Tab session storage" belongs to "sessionStorage".
A. Events rise to ancestors B. Numeric type C. Ordered list D. Declarations move up Correct answer: D. Declarations move up Explanation: Here, "Hoisting" is matched with "Declarations move up". Other options: "Events rise to ancestors" belongs to "Event bubbling"; "Numeric type" belongs to "Number"; "Ordered list" belongs to "Array".
A. Expands iterables B. Reusable code C. Events rise to ancestors D. Function scoped variable Correct answer: C. Events rise to ancestors Explanation: Here, "Event bubbling" is matched with "Events rise to ancestors". Other options: "Expands iterables" belongs to "Spread operator"; "Reusable code" belongs to "Function"; "Function scoped variable" belongs to "var".
A. Syntax for promises B. Triple equals C. Text data format D. File with import and export Correct answer: D. File with import and export Explanation: Here, "Module" is matched with "File with import and export". Other options: "Syntax for promises" belongs to "async await"; "Triple equals" belongs to "Strict equality"; "Text data format" belongs to "JSON".
A. Triple equals B. Unpack values C. Handles async tasks D. Selects array items Correct answer: B. Unpack values Explanation: Here, "Destructuring" is matched with "Unpack values". Other options: "Triple equals" belongs to "Strict equality"; "Handles async tasks" belongs to "Event loop"; "Selects array items" belongs to "filter".
A. File with import and export B. Backtick string with expressions C. Triple equals D. Block scoped variable Correct answer: C. Triple equals Explanation: Here, "Strict equality" is matched with "Triple equals". Other options: "File with import and export" belongs to "Module"; "Backtick string with expressions" belongs to "Template literal"; "Block scoped variable" belongs to "let".
A. Document object model B. Syntax for promises C. Text data format D. Runs a function per item Correct answer: C. Text data format Explanation: Here, "JSON" is matched with "Text data format". Other options: "Document object model" belongs to "DOM"; "Syntax for promises" belongs to "async await"; "Runs a function per item" belongs to "forEach".