ExamVeda
Login
Home
1
All attribute declarations begin with the keyword ____________ followed by the element name, attribute name, attribute type, and default data information.
Discuss
Answer & Solution
Answer: Option C
Solution:
Option C is the correct answer.

In an HTML or SGML Document Type Definition (DTD), attribute declarations begin with the keyword ATTLIST. An ATTLIST declaration specifies the attributes that are allowed for a particular element, along with each attribute's type and default value.

The general syntax of an attribute list declaration is:

<!ATTLIST element-name attribute-name attribute-type default-value>

Why Option A is incorrect:

XML (Extensible Markup Language) is a markup language, not the keyword used to declare attributes in a DTD. Although XML supports DTDs, attribute declarations within a DTD still use the ATTLIST keyword.

Why Option B is incorrect:

SGML (Standard Generalized Markup Language) is the markup language standard from which HTML was originally derived. It defines the concept of DTDs, but SGML itself is not the keyword used to declare attributes. The actual declaration keyword is ATTLIST.

Why Option D is incorrect:

Option D is incorrect because ATTLIST is the standard keyword used for attribute declarations in SGML and DTD-based document definitions.

Therefore, all attribute declarations begin with the keyword ATTLIST, making Option C the correct answer.
2
The ________ declaration specifies which characters and delimiters may appear in the application.
Discuss
Answer & Solution
Answer: Option B
Solution:
SGML (Standard Generalized Markup Language) is a standard for how to specify a document markup language or tag set. Such a specification is itself a document type definition (DTD).
3
The __________ defines the syntax of markup constructs and include additional definitions such as character entity references.
Discuss
Answer & Solution
Answer: Option D
Solution:
The DTD defines the syntax of markup constructs. The DTD may include additional definitions such as character entity references.
4
A/An _________ is essentially a macro that allows a short name to be associated with replacement text.
Discuss
Answer & Solution
Answer: Option A
Solution:
Reserved characters in HTML must be replaced with character entities. Characters, not present on your keyboard, can also be replaced by entities.
5
The ___________ keyword begins the declaration of attributes that an element may take. It is followed by the name of the element in question, a list of attribute definitions, and a closing.
Discuss
Answer & Solution
Answer: Option A
Solution:
In HTML 4.01, the !DOCTYPE declaration refers to a DTD, because HTML 4.01 was based on SGML. The DTD specifies the rules for the markup language, so that the browsers render the content correctly.
6
The __________ begins with a series of parameter entity definitions.
Discuss
Answer & Solution
Answer: Option A
Solution:
The HTML DTD begins with a series of parameter entity definitions. A parameter entity definition defines a kind of macro that may be referenced and expanded elsewhere in the DTD. These macros may not appear in HTML documents, only in the DTD. Other types of macros, called character references, may be used in the text of an HTML document or within attribute values.
7
The ______________ parameter identifies a character encoding, which is a method of converting a sequence of bytes into a sequence of characters.
Discuss
Answer & Solution
Answer: Option C
Solution:
To display an HTML page correctly, a web browser must know the character set (character encoding) to use.
8
A model group contains the names of the elements that a tag may enclose.
Discuss
Answer & Solution
Answer: Option A
Solution:
Most HTML and XHTML elements enclose content. If a content model is declared, it is enclosed within parentheses and known as a model group.
9
Which event is fired as the mouse is moving over an element when a drag is occurring?
Discuss
Answer & Solution
Answer: Option A
Solution:
This event is fired as the mouse is moving over an element when a drag is occurring. Much of the time, the operation that occurs during a listener will be the same as the dragenter event.
10
The _________ event is fired on the element where the drop occurred at the end of the drag operation.
Discuss
Answer & Solution
Answer: Option B
Solution:
The drop event is fired on the element where the drop occurred at the end of the drag operation. A listener would be responsible for retrieving the data being dragged and inserting it at the drop location.