Html, css, JavaScript: 17 MCQs
All 17 multiple-choice questions from this kit, free and with no sign-up.
Warm-up · 6 questions
Q1. What is the primary role of HTML in a web page?
BeginnerAnswers and explanations are in the Veda app.
Q2. How does CSS enhance the presentation of a web page beyond what HTML provides?
BeginnerAnswers and explanations are in the Veda app.
Q3. What is the function of JavaScript in a web browser?
BeginnerAnswers and explanations are in the Veda app.
Q4. Describe how an external CSS file is linked to an HTML document.
BeginnerAnswers and explanations are in the Veda app.
Q5. What is the purpose of the `alt` attribute in an HTML `<img>` tag?
BeginnerAnswers and explanations are in the Veda app.
Q6. How does the HTML `<meta>` tag contribute to web development?
BeginnerAnswers and explanations are in the Veda app.
Building up · 11 questions
Q7. Explain the concept of 'separation of concerns' as it applies to HTML, CSS, and JavaScript.
IntermediateAnswers and explanations are in the Veda app.
Q8. What is the DOM, and how does JavaScript interact with it?
IntermediateAnswers and explanations are in the Veda app.
Q9. How does an external JavaScript file get included in an HTML page, and what is the effect of the `defer` attribute?
IntermediateAnswers and explanations are in the Veda app.
Q10. What is the difference between inline, internal, and external CSS?
IntermediateAnswers and explanations are in the Veda app.
Q11. Give an example of how JavaScript can respond to a user event, such as a button click.
IntermediateAnswers and explanations are in the Veda app.
Q12. Explain the concept of CSS specificity and why it matters.
IntermediateAnswers and explanations are in the Veda app.
Q13. How does JavaScript's `document.querySelector()` method differ from `document.getElementById()`?
IntermediateAnswers and explanations are in the Veda app.
Q14. Describe the box model in CSS and its components.
IntermediateAnswers and explanations are in the Veda app.
Q15. What is the difference between `let`, `const`, and `var` in JavaScript?
IntermediateAnswers and explanations are in the Veda app.
Q16. Explain the purpose of the `display: flex` property in CSS.
IntermediateAnswers and explanations are in the Veda app.
Q17. What is an event in JavaScript, and how can you prevent its default behavior?
IntermediateAnswers and explanations are in the Veda app.
Your notes can be a kit like these
Every kit here was made from real study material. Point Veda at a chapter, a PDF, a photo or a link and get notes, flashcards, practice MCQs, games and a scored test — free to start, in more than 40 languages.
- Chapter notes
- Flashcards
- Practice MCQs
- Scored tests
- Paper Solver
Get Veda free See what students get
Free to start · Android app and web · More than 40 languages