
WEB DEV. 25 Exam Sample Questions

Quiz
•
Computers
•
12th Grade
•
Hard

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
Similar Resources on Wayground
55 questions
UTS ASJ SEMESTER GANJIL 2023/2024

Quiz
•
12th Grade
51 questions
Digital Unit 4 - BIG QUIZ

Quiz
•
11th - 12th Grade
54 questions
Introduction to Java - Questionwell

Quiz
•
9th - 12th Grade
50 questions
Database Types Quiz

Quiz
•
12th Grade
48 questions
Business Letters

Quiz
•
10th Grade - Professi...
55 questions
2024 Final Exam Review PFGT

Quiz
•
9th - 12th Grade
55 questions
Science & Technology

Quiz
•
8th - 12th Grade
46 questions
Adobe Animate 2015

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade