GATE 2004 Computer Science and Information Technology (CS) Questions with Solutions

GATE 2004

199 questions

MCQ 1991-mark 199

Questions 196–199 of 199

Q196Web Technology1 markMCQ−0.33 if wrong
Given below are several usages of the anchor tag in HTML.
I.   <A HREF = "http://www.gate.ac.in/HTML/BASIC/testpage.html">Test Me</A>
II.  <A HREF = "/BASIC/testpage.html">Test Me</A>
III. <A HREF = "testpage.html">Test Me</A>
IV.  <A HREF = "testpage.html#test">Test Me</A>

Which of the above are valid?

Q197Web Technology1 markMCQ−0.33 if wrong
Consider an XML file called intro.xml and a document type definition (DTD) file intro.dtd as follows:
<?xml version = "1.0"?>
<!DOCTYPE myMessage SYSTEM "intro.dtd">
<myMessage>
       <message>Welcome to XML</message>
</myMessage>
intro.dtd
<! ELEMENT myMessage (message)>
<! ELEMENT message (#PCDATA)>

A validating parser will classify intro.xml as

Q198Web Technology1 markMCQ−0.33 if wrong
Which of the following objects can be used in expressions and scriplets in JSP (Java Server Pages) without explicitly declaring them?

Q199Web Technology1 markMCQ−0.33 if wrong
Which one of the following statements is FALSE?