UGC NET JULY 2018 (Computer Science And Applications Paper-II)
(Question 1-2)
Q1. The definition in an XML document are said to be _____________ when the tagging system and definitions in the DTD are all in compliance.
(1) well-formed
(2) reasonable
(3) valid
(4) logical
Answer : (3)
Reason : XML Document Type Declaration, commonly known as DTD.
Q2. Consider the JavaScript Code:
If M is the number of alert dialog boxes generated by this JavaScript code and Dl, D2, ...., DM
represents the content displayed in each of the M dialog boxes, then :
(1) M3; Dl displays "12"; D2 displays "6"; D3 displays "12".
(2) M-3; Dl displays "6"; D2 displays "12"; D3 displays "6".
(3) M:2; D! displays "6"; D2 displays "12".
(4) M:2; Dl displays "12"; D2 displays "6".
Answer : (4)
(Question 1-2)
Q1. The definition in an XML document are said to be _____________ when the tagging system and definitions in the DTD are all in compliance.
(1) well-formed
(2) reasonable
(3) valid
(4) logical
Answer : (3)
Reason : XML Document Type Declaration, commonly known as DTD.
An XML document can be defined as:
- Well-formed: If the XML document adheres to all the
general XML rules such as tags must be properly nested, opening and
closing tags must be balanced, and empty tags must end with '/>',
then it is called as well-formed.
OR - Valid: An XML document said to be valid when it is not only well-formed, but it also conforms to available DTD that specifies which tags it uses, what attributes those tags can contain, and which tags can occur inside other tags, among other properties.
Q2. Consider the JavaScript Code:
var y = "12";
function f(){
var y ="6";
alert(this.y);
function g(){alert(y);}
g();
}
f();
If M is the number of alert dialog boxes generated by this JavaScript code and Dl, D2, ...., DM
represents the content displayed in each of the M dialog boxes, then :
(1) M3; Dl displays "12"; D2 displays "6"; D3 displays "12".
(2) M-3; Dl displays "6"; D2 displays "12"; D3 displays "6".
(3) M:2; D! displays "6"; D2 displays "12".
(4) M:2; Dl displays "12"; D2 displays "6".
Answer : (4)
0 comments:
Post a Comment