The CODE value in an tag must name a class file that is in the same directory as the calling HTML page.

Each statement below is either TRUE or FALSE. Choose the most appropriate one and
ENTER in the “tear-off” sheet attached to the question paper, following instructions
therein.

2.1 The CODE value in an <APPLET> tag must name a class file that is in the same directory as the calling HTML page.
2.2 It is possible to use the File class to list the contents of the current working directory.
2.3 If a frame uses a GridLayout manager and does not contain any panels, then all the
components within the frame are of the same width and height.
2.4 An abstract class can be final also.
2.5 Exceptions can be caught or rethrown to a calling method.
2.6 Subclasses’ methods can access all members/ attributes of the superclass.
2.7 The Vector class provides the capability to implement a growable array of objects.
2.8 In Java, an array can store different types of values.
2.9 In UML, Component structure diagram shows process view of the use case model.
2.10 A parameterized class is actually not a class, it is a template.

Consider the following class definitions:

1.5 Consider the following class definitions:
class mathstest
{
Student student1;
}
class Student
{
String name;
}
This code represents:
A) an ‘is a’ relationship
B) a ‘has a’ relationship
C) both
D) neither

What is the error in the following class definition?

1.4 What is the error in the following class definition?
abstract class MyTest
{
abstract sum (int x, int y) { }
}
A) Class header is not defined properly
B) Constructor is not defined
C) Method is not defined properly
D) No error

Consider the following code

1.3 Consider the following code
if ( number >= 0)
if (number > 0)
System.out.println(“Number is positive”);
else
System.out.println(“Number is negative”);
What will be the output if number is equal to 0?
A) Number is negative
B) Number is positive
C) Both A) and B)
D) None of the above