Fundamentals of Front End Development MCQs with Answers
Practice important Fundamentals of Front End Development MCQs with answers and explanations.
Chapter: 34
Q381:
What is the default size of 1em if the default browser text size is 16px?
A. 8px
B. 12px
C. 16px
D. 20px
Correct Answer:
C
Chapter: 34
Q382:
How do you ensure accessibility while setting font sizes in CSS?
A. Always use absolute sizes like px
B. Use relative sizes like em
C. Use fixed sizes like pt
D. Avoid setting font sizes
Correct Answer:
B
Chapter: 34
Q383:
Which property should be used to specify the indentation of the first line of a paragraph?
A. text-indent
B. font-size
C. text-align
D. margin-left
Correct Answer:
A
Chapter: 35
Q384:
Which CSS property is used to change the color of a link?
A. text-decoration
B. background-color
C. color
D. font-style
Correct Answer:
C
Chapter: 35
Q385:
What is the purpose of the a:link selector in CSS?
A. To style a visited link
B. To style a link when hovered over
C. To style a normal, unvisited link
D. To style a link when clicked
Correct Answer:
C
Chapter: 35
Q386:
Which link state is styled when the user mouses over the link?
A. a
B. a
C. a
D. a
Correct Answer:
C
Chapter: 35
Q387:
What does the a:visited selector style in CSS?
A. A normal, unvisited link
B. A link the user has visited
C. A link when the user mouses over it
D. A link the moment it is clicked
Correct Answer:
B
Chapter: 35
Q388:
Which CSS property is commonly used to remove underlines from links?
A. font-style
B. text-decoration
C. color
D. background-color
Correct Answer:
B
Chapter: 35
Q389:
How do you remove the underline from a normal, unvisited link in CSS?
A. a
B. a
C. a
D. a
Correct Answer:
C
Chapter: 35
Q390:
Which CSS property would you use to specify the background color for links?
A. text-decoration
B. background-color
C. font-weight
D. text-align
Correct Answer:
B
Chapter: 35
Q391:
In the code a:hover {text-decoration: underline;}, what happens when the user mouses over the link?
A. The link text will be bolded
B. The link text will be underlined
C. The link text will change color
D. The link background will change
Correct Answer:
B
Chapter: 35
Q392:
Which of the following is the correct CSS syntax to set a background color for an unvisited link?
A. a
B. a
C. a
D. a
Correct Answer:
B
Chapter: 35
Q393:
How would you remove the underline from a visited link in CSS?
A. a
B. a
C. a
D. a
Correct Answer:
C
Chapter: 35
Q394:
Which link state is styled with the a:active selector in CSS?
A. A normal, unvisited link
B. A link the user has visited
C. A link when the user mouses over it
D. A link the moment it is clicked
Correct Answer:
D
Chapter: 35
Q395:
What does the a:hover selector do when applied to a link?
A. Changes the text color of the link
B. Changes the background color of the link
C. Underlines the link text when hovered
D. Removes the underline from the link text
Correct Answer:
C
Chapter: 35
Q396:
Which of the following is NOT a valid link state in CSS?
A. a
B. a
C. a
D. a
Correct Answer:
C
Chapter: 35
Q397:
Which link state will be styled by the following CSS: a:link {color: #FF0000;}?
A. Unvisited links
B. Visited links
C. Hovered links
D. Active links
Correct Answer:
A
Chapter: 36
Q398:
What does the list-style-type property in CSS specify?
A. The position of the list item markers
B. The image used as a list item marker
C. The type of list item marker
D. The color of list item markers
Correct Answer:
C
Chapter: 36
Q399:
Which HTML tag is used to create an unordered list?
A. <ul>
B. <ol>
C. <li>
D. <list>
Correct Answer:
A
Chapter: 36
Q400:
What is the default list item marker for an unordered list?
A. Numbers
B. Letters
C. Bullets
D. Roman numerals
Correct Answer:
C