Advanced Tech Quiz

Test your knowledge with 15 questions

Time Left: 5:00
1. Which HTML element is used for a self-contained composition like a blog post?
Correct Answer: <article>
Explanation: The <article> element represents a self-contained composition.
2. The HTML <picture> element allows responsive images based on device width.
Correct Answer: True
Explanation: The <picture> element allows responsive images.
3. Which CSS unit is relative to the font-size of the root element?
Correct Answer: rem
Explanation: The rem unit is relative to the root element's font-size.
4. CSS Grid allows for two-dimensional layout designs.
Correct Answer: True
Explanation: CSS Grid controls both rows and columns.
5. Which JavaScript keyword declares a block-scoped variable?
Correct Answer: let
Explanation: `let` declares a block-scoped variable.
6. The CSS pseudo-class :nth-child() selects elements based on their position in the parent.
Correct Answer: True
Explanation: :nth-child() selects elements by their position in the parent.
7. Which HTML element defines a container for SVG graphics?
Correct Answer: <svg>
Explanation: <svg> is a container for vector graphics.
8. The 'position: sticky' property allows an element to stick to the viewport when scrolling.
Correct Answer: True
Explanation: position: sticky sticks within viewport until boundary.
9. Which HTML element is used to embed a JavaScript file?
Correct Answer: <script>
Explanation: <script> embeds JS code.
10. The localStorage API stores key-value pairs in the browser.
Correct Answer: True
Explanation: localStorage persists key-value pairs in browser.
11. Which CSS property creates smooth transitions between property changes?
Correct Answer: transition
Explanation: transition enables smooth CSS property changes.
12. Arrow functions in JavaScript bind their own 'this' context.
Correct Answer: False
Explanation: Arrow functions inherit 'this' from the surrounding context.
13. Which CSS property controls the visibility of overflow content?
Correct Answer: overflow
Explanation: overflow controls content exceeding container size.
14. The CSS flexbox property 'justify-content' aligns items horizontally.
Correct Answer: True
Explanation: justify-content aligns along the main axis (horizontal by default).
15. Which HTML element is used to create a clickable button?
Correct Answer: <button>
Explanation: <button> creates a clickable button.
Back View Result