Skip to main content

Menu

Home Quizzes Categories Current Affairs GK AI ToolsNEW Play Live Contact

JavaScript Quiz

Go beyond syntax with questions about the JavaScript concepts commonly used in browser-based development.

25 Questions
30 min Duration
40% To pass
1.00 Marks / correct

Instructions

  • This quiz has 25 questions.
  • Questions are picked at random from a bank of 50, so each attempt is different.
  • You have 30 minutes. The quiz submits automatically when time runs out.
  • You need 40% to pass.
  • There is no negative marking.
  • You can mark questions for review and return to them before submitting.
  • Correct answers and explanations are shown after you submit.

Sample Questions & Answers

A preview of 12 questions from this quiz, each with the correct answer and a written explanation. Attempt the full, timed quiz to be scored and earn XP.

  1. Question 1

    In CSS, which option best describes CSS?

    • Cascading Style Sheets used to style web documents Correct answer
    • The CSS property controlling line spacing
    • Space outside an element's border
    • The property used to round corners
    Explanation: CSS is correctly described by: Cascading Style Sheets used to style web documents.
  2. Question 2

    In CSS, which option best describes Selector?

    • The CSS property controlling an element's width
    • Space between content and an element's border
    • The model consisting of content, padding, border, and margin
    • A pattern used to target elements for styling Correct answer
    Explanation: Selector is correctly described by: A pattern used to target elements for styling.
  3. Question 3

    In CSS, which option best describes Class selector?

    • The CSS property controlling an element's height
    • The line surrounding an element's padding and content
    • .class, a selector that targets elements by class Correct answer
    • The property controlling an element's display behavior
    Explanation: Class selector is correctly described by: .class, a selector that targets elements by class.
  4. Question 4

    In CSS, which option best describes ID selector?

    • Space outside an element's border
    • #id, a selector that targets an element by ID Correct answer
    • The property used to round corners
    • The property controlling positioning behavior
    Explanation: ID selector is correctly described by: #id, a selector that targets an element by ID.
  5. Question 5

    In CSS, which option best describes Universal selector?

    • * , a selector that targets all elements Correct answer
    • Space between content and an element's border
    • The model consisting of content, padding, border, and margin
    • A property influencing stacking order
    Explanation: Universal selector is correctly described by: * , a selector that targets all elements.
  6. Question 6

    In CSS, which option best describes color?

    • The line surrounding an element's padding and content
    • The property controlling an element's display behavior
    • The property controlling content that exceeds an element's box
    • The CSS property used to set text color Correct answer
    Explanation: color is correctly described by: The CSS property used to set text color.
  7. Question 7

    In CSS, which option best describes background-color?

    • The property used to round corners
    • The property controlling positioning behavior
    • The CSS property used to set background color Correct answer
    • The property controlling transparency
    Explanation: background-color is correctly described by: The CSS property used to set background color.
  8. Question 8

    In CSS, which option best describes font-size?

    • The model consisting of content, padding, border, and margin
    • The CSS property used to set text size Correct answer
    • A property influencing stacking order
    • A one-dimensional CSS layout system
    Explanation: font-size is correctly described by: The CSS property used to set text size.
  9. Question 9

    In CSS, which option best describes font-family?

    • The CSS property used to choose fonts Correct answer
    • The property controlling an element's display behavior
    • The property controlling content that exceeds an element's box
    • A two-dimensional CSS layout system
    Explanation: font-family is correctly described by: The CSS property used to choose fonts.
  10. Question 10

    In CSS, which option best describes font-weight?

    • The property controlling positioning behavior
    • The property controlling transparency
    • A property controlling space between flex or grid items
    • The CSS property used to control text weight Correct answer
    Explanation: font-weight is correctly described by: The CSS property used to control text weight.
  11. Question 11

    In CSS, which option best describes text-align?

    • A property influencing stacking order
    • A one-dimensional CSS layout system
    • The CSS property used to align inline content Correct answer
    • A CSS mechanism for applying styles based on conditions
    Explanation: text-align is correctly described by: The CSS property used to align inline content.
  12. Question 12

    In CSS, which option best describes line-height?

    • The property controlling content that exceeds an element's box
    • The CSS property controlling line spacing Correct answer
    • A two-dimensional CSS layout system
    • Designing layouts that adapt to different screen sizes
    Explanation: line-height is correctly described by: The CSS property controlling line spacing.

Login/Register to attempt the full quiz and earn XP.

Explore more: All Computer & Technology quizzes · CSS

JavaScript for Web Development

JavaScript brings behaviour and interaction to web pages. This quiz focuses on practical language concepts such as functions, arrays, objects, events, scope and asynchronous programming.

Frequently Asked Questions

Each attempt serves 25 questions, drawn at random from a bank of 50, with 30 minutes.

You need at least 40% to pass this quiz.

No, there is no negative marking on this quiz.

Yes. You can attempt this quiz again at any time, though first-attempt XP bonuses apply only once.

Sign in to attempt this quiz and earn XP.

Login to Start Create free account

Related Quizzes