WEB DEV. 25 Exam Sample Questions

WEB DEV. 25 Exam Sample Questions

12th Grade

50 Qs

quiz-placeholder

Similar activities

Game Design - Midterm Review - Semester B

Game Design - Midterm Review - Semester B

9th - 12th Grade

50 Qs

JAVASCRIPT QUIZ

JAVASCRIPT QUIZ

12th Grade

50 Qs

Java Basics Self-Check

Java Basics Self-Check

9th - 12th Grade

46 Qs

R093 iMedia Mix Up#2

R093 iMedia Mix Up#2

9th - 12th Grade

51 Qs

AP CSP Quizizz 1-6 - MONDAY U4L5 Conditionals

AP CSP Quizizz 1-6 - MONDAY U4L5 Conditionals

9th - 12th Grade

54 Qs

Frontend és JavaScript Kvíz

Frontend és JavaScript Kvíz

12th Grade

52 Qs

Advanced HTML5 & CSS3 Part IV

Advanced HTML5 & CSS3 Part IV

9th - 12th Grade

55 Qs

Digital Literacy Chapter 14 Review

Digital Literacy Chapter 14 Review

9th - 12th Grade

51 Qs

WEB DEV. 25 Exam Sample Questions

WEB DEV. 25 Exam Sample Questions

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Dana Gilbert

Used 1+ times

FREE Resource

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.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?

Discover more resources for Computers