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: 26
Q301:
Which part of the URL specifies the path at the server?
A. host
B. scheme
C. domain
D. path
Correct Answer: D
Chapter: 26
Q302:
Fill in the blank: URL encoding replaces non-ASCII characters with a "%" followed by _________.
A. hexadecimal digits
B. letters
C. symbols
D. spaces
Correct Answer: A
Chapter: 26
Q303:
What does URL encoding use to represent a space?
A. 0.2
B. +
C. %space
D. 0.3
Correct Answer: A
Chapter: 26
Q304:
Fill in the blank: The URL encoding for a space is either "+" or _______.
A. 0.2
B. %space
C. %0A
D. 0.32
Correct Answer: A
Chapter: 26
Q305:
What is the purpose of URL encoding?
A. To convert non-ASCII characters to ASCII
B. To shorten URLs
C. To encrypt URLs
D. To add spaces to URLs
Correct Answer: A
Chapter: 26
Q306:
Fill in the blank: The "file" scheme in a URL is used for addressing _________.
A. files on your computer
B. web pages
C. secure documents
D. network resources
Correct Answer: A
Chapter: 26
Q307:
Which URL scheme is used for non-encrypted web pages?
A. https
B. ftp
C. file
D. http
Correct Answer: D
Chapter: 26
Q308:
Fill in the blank: URL encoding converts characters into a format that can be _________.
A. transmitted over the Internet
B. encrypted
C. printed out
D. downloaded
Correct Answer: A
Chapter: 26
Q309:
Which part of the URL specifies the name of a document or resource?
A. path
B. domain
C. filename
D. host
Correct Answer: C
Chapter: 26
Q310:
Fill in the blank: The URL encoding for a space can also be represented as ________.
A. +
B. %space
C. %0A
D. 0.32
Correct Answer: A
Chapter: 27
Q311:
What does XHTML stand for?
A. EXtensible HyperText Markup Language
B. eXtended HyperText Markup Language
C. EXternal HyperText Markup Language
D. eXtra HyperText Markup Language
Correct Answer: A
Chapter: 27
Q312:
Fill in the blank: XHTML is _______ than HTML.
A. stricter
B. more lenient
C. similar
D. less complex
Correct Answer: A
Chapter: 27
Q313:
Which of the following is a requirement for an XHTML document?
A. The DOCTYPE is optional
B. The xmlns attribute is optional
C. The <html>, <head>, <title>, and <body> elements are optional
D. XHTML elements must be properly nested
Correct Answer: D
Chapter: 27
Q314:
Fill in the blank: XHTML elements must always be ________.
A. closed
B. open
C. formatted
D. minimized
Correct Answer: A
Chapter: 27
Q315:
What is required at the start of an XHTML document?
A. <html> element
B. <body> element
C. DOCTYPE declaration
D. <head> element
Correct Answer: C
Chapter: 27
Q316:
Fill in the blank: In XHTML, empty elements must be ________.
A. closed
B. self-contained
C. optional
D. ignored
Correct Answer: A
Chapter: 27
Q317:
What is the correct way to close a line break in XHTML?
A. <breakup>
B. <br />
C. <break>
D. <linebreak>
Correct Answer: B
Chapter: 27
Q318:
Fill in the blank: CSS is used for describing the ________ of a document written in a markup language.
A. content
B. presentation
C. structure
D. behavior
Correct Answer: B
Chapter: 27
Q319:
What does a CSS selector do?
A. Specifies the style of an HTML element
B. Defines a style rule in CSS
C. Selects an HTML element to be styled
D. Declares CSS property values
Correct Answer: C
Chapter: 27
Q320:
Fill in the blank: In CSS, property names and values are separated by ________.
A. colon
B. semicolon
C. comma
D. space
Correct Answer: A

Test Your Knowledge

Take a timed quiz on Fundamentals of Front End Development

🚀 Start Quiz Now