A directory of Objective Type Questions covering all the Computer Science subjects. Here you can access and discuss Multiple choice questions and answers for various compitative exams and interviews.

41. An XML document that adheres to syntax rules specified by XML 1.0 specification in that it must satisfy both physical and logical structured, is called :
a. Well - formed
b. Reasonable
c. Valid
d. Sophisticated
View Answer Report Discuss Too Difficult!
Answer: (a).Well - formed

42. Which of the following statement(s) is/are TRUE regarding Java Servelets?

(a) A Java Servelet is a server-side component that runs on the web server and extends the capabilities of a server.
(b) A Servelet can use the user interface classes like AWT or Swing.
a. Only (a) is TRUE.
b. Only (b) is TRUE.
c. Both (a) and (b) are TRUE.
d. Neither (a) nor (b) is TRUE.
View Answer Report Discuss Too Difficult!
Answer: (a).Only (a) is TRUE.

43. Consider the following HTML table definition. This HTML code would render on screen as :
<table border=1>
<tr>
<td colspan=2> Text A </td>
</tr>
<tr>
<td> Text B </td>
<td> Text C </td>
</tr>
<tr>
<td rowspan=2> Text D </td>
<td> Text E </td>
</tr>
<tr>
<td> Text F </td>
</tr>
</table>
a. 1
b. 2
c. 3
d. 4
View Answer Report Discuss Too Difficult!
Answer: (c).3

44. Which of the following statements is/are TRUE?

(a) In HTML, character entities are used to incorporate external content into a web page, such as images.
(b) Once a web server returns a cookie to a browser, the cookie will be included in all future requests from the browser to the same server.
a. Only (a) is TRUE.
b. Only (b) is TRUE.
c. Both (a) and (b) are TRUE.
d. Neither (a) nor (b) is TRUE.
View Answer Report Discuss Too Difficult!
Answer: (d).Neither (a) nor (b) is TRUE.

45. Which of the following statements is/are TRUE regarding JAVA?

(a) Constants that cannot be changed are declared using the ‘static’ keyword.
(b) A class can only inherit one class but can implement multiple interfaces.
a. Only (a) is TRUE.
b. Only (b) is TRUE.
c. Both (a) and (b) are TRUE.
d. Neither (a) nor (b) is TRUE.
View Answer Report Discuss Too Difficult!
Answer: (b).Only (b) is TRUE.

46. What is the output of the following JAVA program?
Class Test
{
      public static void main (String [ ] args)
      {
            Test obj = new Test ( );
             obj.start ( );
       }
      void start ( )
      {
            String stra=”do”;
            String strb = method (stra);
            System.out.print(“:” + stra + strb);
      }
      String method (String stra)
      {
            stra=stra+”good”;
            System.out.print (stra);
            return “good”;
       }
}
a. dogood : dogoodgood
b. dogood : gooddogood
c. dogood : dodogood
d. dogood : dogood
View Answer Report Discuss Too Difficult!
Answer: (d).dogood : dogood

Page 5 of 5