Search Header Logo

WEB DEV. 25 Exam Sample Questions

Authored by Dana Gilbert

Computers

12th Grade

Used 1+ times

WEB DEV. 25 Exam Sample Questions
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Which of the following HTML tags is used to define the largest header on a webpage?

2.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Which attribute is required when defining an HTML form to collect user input for a web page?

action

method

type

name

Answer explanation

The 'action' attribute is required in an HTML form to specify where to send the form data when submitted. Without it, the form cannot function properly, making 'action' essential for collecting user input.

3.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Which CSS property is used to change the text color of a webpage?

font-color

color

text-color

background-color

Answer explanation

The correct CSS property to change the text color of a webpage is 'color'. The other options, 'font-color' and 'text-color', are not valid CSS properties, while 'background-color' changes the background, not the text.

4.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

In CSS, which property is used to set the color of text on a webpage?

font-size

color

background-color

text-align

Answer explanation

The 'color' property in CSS is specifically used to set the color of text on a webpage. Other options like 'font-size', 'background-color', and 'text-align' serve different purposes, making 'color' the correct choice.

5.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

In the CSS box model, which of the following is not part of the content area?

Padding

Border

Margin

Content

Answer explanation

In the CSS box model, the content area consists of the content itself, along with padding and border. Margin, however, is the space outside the border and is not considered part of the content area.

6.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What is the purpose of using a viewport meta tag in an HTML document for mobile devices?

To define the layout and size of elements on different screen sizes

To set the font size for mobile devices

To adjust the background color on mobile devices

To enable JavaScript on mobile devices

Answer explanation

The viewport meta tag is essential for mobile devices as it defines the layout and size of elements, ensuring they are displayed correctly on various screen sizes. This helps create a responsive design.

7.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Which of the following is the correct way to write a JavaScript function that alerts 'Hello World' when executed?

function alert('Hello World');

function HelloWorld() { alert('Hello World'); }

function alert() { alert('Hello World'); }

function() { alert('Hello World'); }

Answer explanation

The correct choice is 'function HelloWorld() { alert('Hello World'); }' because it defines a named function that, when called, executes the alert. The other options are either syntactically incorrect or do not define a callable function.

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?