Search Header Logo

Web Development Basics

Authored by Shatabdi Ghadei

Computers

12th Grade

Used 2+ times

Web Development Basics
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

What is the purpose of the

element in HTML?

It is used as a generic container to group and style content on a webpage.

It is used to embed videos in HTML.

It is used to define a table in HTML.

It is used for creating hyperlinks in HTML.

2.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

How can you select all elements with a class name of 'example' in CSS?

#example

example

.example

.example{}

3.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

What is the syntax for declaring a function in JavaScript?

functionName(parameters) { // function body }

function functionName(parameters) { // function body }

functionName(parameters) { // code here }

functionName(parameters) { // logic here }

4.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

How can you create a flex container in CSS?

justify-content: space-between;

flex-direction: row;

align-items: center;

display: flex;

5.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

Which event occurs when the user clicks on an HTML element in JavaScript?

Open a new browser tab

Change the element's color to red

Remove the element from the DOM

Add an event listener for the 'click' event

6.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

How do you declare an array in JavaScript?

let arr[ ]

const arr[ ]

let arr=new Array( )

const array

7.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

What is event propagation in JavaScript?

Event propagation in JavaScript only occurs during the capturing phase.

Event propagation in JavaScript refers to the mechanism by which events are handled and passed through the DOM tree. There are two phases: capturing phase and bubbling phase.

Event propagation in JavaScript is not related to how events are handled in the DOM.

Event propagation in JavaScript refers to the mechanism by which events are triggered in the DOM tree.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?