Skip to main content

Fundamentals of Front End Development MCQs with Answers

Practice important Fundamentals of Front End Development MCQs with answers and explanations.

Chapter: 22
Q261:
Fill in the blank: The combination of RGB values rgb(255,255,255) results in _______.
A. Red
B. Green
C. Blue
D. White
Correct Answer: D
Chapter: 22
Q262:
What is the hexadecimal color code for green?
A. #00FF00
B. #0000FF
C. #FF0000
D. #FFFF00
Correct Answer: A
Chapter: 22
Q263:
Fill in the blank: To specify a color in HTML using hexadecimal format, you use #RRGGBB where RR, GG, and BB are _______.
A. color names
B. decimal values
C. hexadecimal values
D. percentages
Correct Answer: C
Chapter: 23
Q264:
What does the <title> element in HTML specify?
A. Document color
B. Page title
C. Page background color
D. Page layout
Correct Answer: B
Chapter: 23
Q265:
Fill in the blank: The <meta> element can be used to define the _______ of a web page.
A. author
B. style
C. layout
D. navigation
Correct Answer: A
Chapter: 23
Q266:
What is the default behavior if the <head> tag is omitted in HTML5?
A. Browsers will display content as usual
B. Browsers will ignore content before <body>
C. Browsers will add a default <head>
D. Browsers will crash
Correct Answer: C
Chapter: 23
Q267:
Fill in the blank: The <link> element is commonly used to link to _______.
A. JavaScript files
B. external style sheets
C. internal style sheets
D. meta data
Correct Answer: B
Chapter: 23
Q268:
What attribute of the <meta> element is used to specify character encoding?
A. charset
B. name
C. content
D. type
Correct Answer: A
Chapter: 23
Q269:
Fill in the blank: The <base> element defines the base URL and base _______ for all relative URLs.
A. title
B. target
C. color
D. style
Correct Answer: B
Chapter: 23
Q270:
What does the meta http-equiv="refresh" attribute do?
A. Sets the page's title
B. Refreshes the page after a specified time
C. Links to an external stylesheet
D. Defines the author of the page
Correct Answer: B
Chapter: 23
Q271:
Fill in the blank: Omitting the <html> and <body> tags can produce errors in older browsers such as _______.
A. Chrome
B. Firefox
C. IE9
D. Safari
Correct Answer: C
Chapter: 23
Q272:
What is the purpose of the rel attribute in the <link> element?
A. To define the relationship between the page and an external resource
B. To specify the media type of the link
C. To set the target for the link
D. To set the color of the link
Correct Answer: A
Chapter: 23
Q273:
Fill in the blank: To add style rules in HTML, you can use the <style> element within the <head> or directly in the _______ tag.
A. <body>
B. <footer>
C. <script>
D. <link>
Correct Answer: A
Chapter: 24
Q274:
What is the HTML entity for displaying the less than sign (<)?
A. >
B. <
C. &
Correct Answer: B
Chapter: 24
Q275:
Which HTML entity would you use to display the Greek letter Delta (Δ)?
A. δ
B. Δ
C. Ε
D. Γ
Correct Answer: B
Chapter: 24
Q276:
Fill in the blank: To display the ∑ symbol in HTML, you would use the entity _______.
A. ∇
B. ∑
C. ∏
D. &exists;
Correct Answer: B
Chapter: 24
Q277:
What is the correct HTML entity for displaying the Greek letter Alpha (Α)?
A. Α
B. &AlphaSymbol;
C. &GreekAlpha;
D. &GreekLetterAlpha;
Correct Answer: A
Chapter: 24
Q278:
Fill in the blank: HTML entities are used to display characters that are _______ in HTML.
A. not available
B. hidden
C. reserved
D. not supported
Correct Answer: C
Chapter: 24
Q279:
What is the purpose of the &nbsp; entity in HTML?
A. To add a space that will not be broken
B. To add a normal space
C. To add a non-breaking line
D. To add a special character
Correct Answer: A
Chapter: 24
Q280:
Fill in the blank: To display the mathematical symbol for "empty set" (∅), use the HTML entity _______.
A. ∅
B. ∉
C. ∏
D. ∑
Correct Answer: A

Test Your Knowledge

Take a timed quiz on Fundamentals of Front End Development

🚀 Start Quiz Now