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: 11
Q141:
What does the <bdo dir="rtl"> element do in HTML?
A. Defines text to be written from left to right
B. Defines text to be written from right to left
C. Defines text alignment
D. Defines text color
Correct Answer: B
Chapter: 11
Q142:
Fill in the blank: The <cite> element usually displays its content in _______.
A. Bold
B. Italic
C. Underlined
D. Normal
Correct Answer: B
Chapter: 11
Q143:
Which HTML element defines contact information and is usually displayed in italic?
A. <address>
B. <q>
C. <cite>
D. <bdo>
Correct Answer: A
Chapter: 11
Q144:
Fill in the blank: The <blockquote> element is often used for quotations and is usually _______.
A. Underlined
B. Indented
C. Colored
D. Bold
Correct Answer: B
Chapter: 11
Q145:
What does the cite attribute in the <blockquote> tag specify?
A. The author of the quote
B. The source of the quote
C. The date of the quote
D. The title of the quote
Correct Answer: B
Chapter: 11
Q146:
Fill in the blank: The <q> element usually inserts _______ around the content.
A. Parentheses
B. Quotation marks
C. Brackets
D. Dashes
Correct Answer: B
Chapter: 12
Q147:
Which HTML element is used to format keyboard input?
A. <code>
B. <samp>
C. <kbd>
D. <var>
Correct Answer: C
Chapter: 12
Q148:
What does the <code> element define in HTML?
A. Programming code
B. Keyboard input
C. Computer output
D. Mathematical variable
Correct Answer: A
Chapter: 12
Q149:
Fill in the blank: The <var> element is used to define a _______ in mathematical expressions.
A. Constant
B. Variable
C. Function
D. Expression
Correct Answer: B
Chapter: 12
Q150:
Which HTML element is used to define computer output?
A. <kbd>
B. <samp>
C. <code>
D. <var>
Correct Answer: B
Chapter: 12
Q151:
Fill in the blank: The <code> element is typically used to display _______ code.
A. HTML
B. CSS
C. Programming
D. Mathematical
Correct Answer: C
Chapter: 12
Q152:
What is the purpose of the <var> element in HTML?
A. To format programming code
B. To display keyboard inputs
C. To define a mathematical variable
D. To show computer output
Correct Answer: C
Chapter: 12
Q153:
Fill in the blank: The <kbd> element is used for displaying _______ input.
A. Programming
B. Keyboard
C. Sample
D. Variable
Correct Answer: B
Chapter: 12
Q154:
What HTML element would you use to display the following output: "demo.example.com login: Apr 12 09:10:17"?
A. <code>
B. <kbd>
C. <samp>
D. <var>
Correct Answer: C
Chapter: 12
Q155:
Fill in the blank: The <samp> element is used to define _______ output.
A. Sample
B. Keyboard
C. Programming
D. Variable
Correct Answer: A
Chapter: 12
Q156:
Which HTML element is appropriate for displaying a fixed-size font with variable spacing?
A. <code>
B. <var>
C. <samp>
D. <kbd>
Correct Answer: A
Chapter: 12
Q157:
Fill in the blank: The <samp> element typically contains _______ information.
A. Sample
B. Code
C. Keyboard input
D. Variable
Correct Answer: A
Chapter: 13
Q158:
How are comments added in HTML?
A. /* comment */
B. // comment
C. <!-- comment -->
D. # comment
Correct Answer: C
Chapter: 13
Q159:
What is the purpose of using comments in HTML?
A. To add visible notes
B. To document the HTML code
C. To display additional content
D. To change text color
Correct Answer: B
Chapter: 13
Q160:
Fill in the blank: HTML comments can be used to _______ lines of code for debugging.
A. Execute
B. Highlight
C. Hide
D. Display
Correct Answer: C

Test Your Knowledge

Take a timed quiz on Fundamentals of Front End Development

🚀 Start Quiz Now