Microdata MCQ Questions and Answers
Microdata MCQs : This section focuses on "Microdata" in Html. These Multiple Choice Questions (MCQs) should be practiced to improve the Html skills required for various interviews (campus interview, walk-in interview, company interview), placement, entrance exam and other competitive examinations.
1. ___________ is a standardized way to provide additional semantics in your web pages.
A. metadata
B. microdata
C. minidata
D. webdata
View Answer
Ans : B
Explanation: Microdata is a standardized way to provide additional semantics in your web pages.
2. Does microdata consists of a group of name-value pairs.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: True, microdata consists of a group of name-value pairs.
3. Microdata introduces ______ global attributes.
A. 3
B. 4
C. 5
D. 6
View Answer
Ans : C
Explanation: Microdata introduces five global attributes which would be available for any element to use and give context for machines about your data.
4. Which attribute is used to create an item?
A. itemtype
B. itemid
C. itemprop
D. itemscope
View Answer
Ans : D
Explanation: itemscope : This is used to create an item. The itemscope attribute is a Boolean attribute that tells that there is Microdata on this page, and this is where it starts.
5. Which attribute is global identifier for the item?
A. itemtype
B. itemid
C. itemprop
D. itemscope
View Answer
Ans : B
Explanation: itemid : This attribute is global identifier for the item.
6. Each name-value pair is a ?
A. items
B. class
C. property
D. object
View Answer
Ans : C
Explanation: The groups are called items, and each name-value pair is a property.
7. Which of the following is true if the property value of a name-value pair added by an element with an itemprop attribute is a meta element?
A. The value is the item created by the element
B. The value is the value of the element’s value attribute, if it has one, or the empty string otherwise
C. On getting, if the element has a datetime content attribute, the IDL attribute must return that content attribute’s value
D. The value is the element’s textContent
View Answer
Ans : B
Explanation: When the property value of a name-value pair added by an element with an itemprop attribute which is a meta element then the value is the value of the element’s value attribute, if it has one, or the empty string otherwise. The “itemprop” attribute is a global attribute which adds properties to item.
8. The ___________ of an item is the value of its element’s itemid attribute.
A. token
B. typed item
C. global identifier
D. scope
View Answer
Ans : C
Explanation: The global identifier of an item is the value of its element’s itemid attribute, if it has one, resolved relative to the element on which the attribute is specified. If the itemid attribute is missing or if resolving it fails, it is said to have no global identifier. The “typed item” creates new item.
9. Which of the following is true if the property value of a name-value pair added by an element with an itemprop attribute is a data element?
A. The value is the value of the element’s value attribute if it has one, or the empty string otherwise
B. The value is the item created by the element
C. The value is the element’s datetime value
D. The value is item’s scope
View Answer
Ans : A
Explanation: The “itemprop” attribute is a global attribute which adds properties to item. When the property value of a name-value pair added by an element with an itemprop attribute which is a data element then the value is the value of the element’s value attribute if it has one, or the empty string otherwise.
10. To add a property to an item, the itemprop attribute is used on one of the item's descendants.
A. Yes
B. No
C. Can be yes or no
D. Can not say
View Answer
Ans : A
Explanation: Yes, To add a property to an item, the itemprop attribute is used on one of the item's descendants.
Discussion