HTML Multiple Choice Questions & Answers on Microdata for Freshers

1. __________ is an HTML specification used to add more information to HTML tags.

a) Macrodata
b) Microdata
c) Minidata
d) Modifydata
Answer: b

Explanation: The Microdata spec provides a standardized syntax for additional semantic markup to your web pages to enhance the machine readability of your web pages.
2. The microdata model consists of groups of name-value pairs known as

a) Item
b) Property
c) Value
d) URL
Answer: a

Explanation: The microdata model consists of groups of name-value pairs known as items. Each group is known as an item. Each item can have item types, a global identifier (if the vocabulary specified by the item types support global identifiers for items), and a list of name-value pairs.
3. Every HTML element may have an ____________ attribute specified.

a) itemtype
b) relevant types
c) itemscope
d) none of the mentioned
Answer: c

Explanation: An element with the itemscope attribute specified creates a new item, a group of name-value pairs.
4. 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.
Answer: b

Explanation: The answer is self explanatory.
5. 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 time element ?

a) The value is the element’s datetime value.
b) The value is the value of the element’s content attribute, if any, or the empty string if there is no such attribute.
c) The value is the value of the element’s value attribute, if it has one, or the empty string otherwise.
d) The value is the element’s textContent.
Answer: a

Explanation: For date- and time-related data, the time element and its datetime attribute can be used.
6. The ___________ of an item is the value of its element’s itemid attribute.

a) token
b) typed item
c) global identifier
d) none of the mentioned
Answer: 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.
7. If the element has an itemscope attribute, it returns an __________ object with all the element’s properties.

a) itemscope
b) dom object
c) collection.namedItem
d) none of the mentioned
Answer: b

Explanation: When an HTML document is loaded into a web browser, it becomes a document object..
8. 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) None of the mentioned
Answer: a

Explanation: If the element is a data element, the value is the value of the element’s value attribute, if it has one, or the empty string otherwise..
9. Which method takes a string that contains an unordered set of unique space-separated tokens that are case-sensitive, representing types?

a) document.getItems
b) element.itemProp
c) collection.namedItem
d) none of the mentioned
Answer: a

Explanation: When called, the method must return a live NodeList object containing all the elements in the document, in tree order, that are each top-level microdata items whose types include all the types specified in the method’s argument, having obtained the types by splitting the string on spaces.
10. The goal of microdata is to create a unified way to define the data in a way any web crawler or reader implementation can read it.

a) True
b) False
Answer: a

Explanation: Microdata allows the user to create “custom” elements (sort of), to give a specific meaning to them.

Related

Linux Interview Questions and Answers on Linux Systems for Freshers

1. UNIX/Linux kernel is? a) Monolithicb) Microc) Exod) Nano Answer: a 2. Monolithic kernel a) is highly extensiblityb) has less run time overheadc) smaller than micro leveld) suitable for real t...

C# Questions & Answers on Fundamentals of Preprocessors for Freshers

1. Choose the symbol which begins a preprocessor directive in C#.NET? a) # b) ** c) * d) & Answer: a Explanation: #define, #elif, #else etc. 2. What is meant by preprocessor directive in C#...

Linux Filesystem Hierarchy Questions & Answers for Freshers

1. Operating system kernel must be located in a) /b) /bootc) either in / or in /bootd) none of the mentioned Answer: c 2. Which one of the following is a mount point for a temporarily mounted fil...

Post a Comment

emo-but-icon
:noprob:
:smile:
:shy:
:trope:
:sneered:
:happy:
:escort:
:rapt:
:love:
:heart:
:angry:
:hate:
:sad:
:sigh:
:disappointed:
:cry:
:fear:
:surprise:
:unbelieve:
:shit:
:like:
:dislike:
:clap:
:cuff:
:fist:
:ok:
:file:
:link:
:place:
:contact:

item