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?

Beginner

Answers and explanations are in the Veda app.

Q2. How does CSS enhance the presentation of a web page beyond what HTML provides?

Beginner

Answers and explanations are in the Veda app.

Q3. What is the function of JavaScript in a web browser?

Beginner

Answers and explanations are in the Veda app.

Q4. Describe how an external CSS file is linked to an HTML document.

Beginner

Answers and explanations are in the Veda app.

Q5. What is the purpose of the `alt` attribute in an HTML `<img>` tag?

Beginner

Answers and explanations are in the Veda app.

Q6. How does the HTML `<meta>` tag contribute to web development?

Beginner

Answers 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.

Intermediate

Answers and explanations are in the Veda app.

Q8. What is the DOM, and how does JavaScript interact with it?

Intermediate

Answers 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?

Intermediate

Answers and explanations are in the Veda app.

Q10. What is the difference between inline, internal, and external CSS?

Intermediate

Answers 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.

Intermediate

Answers and explanations are in the Veda app.

Q12. Explain the concept of CSS specificity and why it matters.

Intermediate

Answers and explanations are in the Veda app.

Q13. How does JavaScript's `document.querySelector()` method differ from `document.getElementById()`?

Intermediate

Answers and explanations are in the Veda app.

Q14. Describe the box model in CSS and its components.

Intermediate

Answers and explanations are in the Veda app.

Q15. What is the difference between `let`, `const`, and `var` in JavaScript?

Intermediate

Answers and explanations are in the Veda app.

Q16. Explain the purpose of the `display: flex` property in CSS.

Intermediate

Answers and explanations are in the Veda app.

Q17. What is an event in JavaScript, and how can you prevent its default behavior?

Intermediate

Answers and explanations are in the Veda app.

Make your own

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