CUSTOMER_CODE SMUDE DIVISION_CODE SMUDE

advertisement
CUSTOMER_CODE
SMUDE
DIVISION_CODE
SMUDE
EVENT_CODE
SMUJAN15
ASSESSMENT_CODE MC0078_SMUJAN15
QUESTION_TYPE
DESCRIPTIVE_QUESTION
QUESTION_ID
4904
QUESTION_TEXT
Explain the following
a.primitive data type
b.naming variable
c. declaring method in java
d.main method
a. Primitive data types (2.5 marks)
b. Naming variables (2.5 marks)
SCHEME OF EVALUATION
c. Declaring method in India (2.5 marks)
d. Main method (2.5 marks)
QUESTION_TYPE
DESCRIPTIVE_QUESTION
QUESTION_ID
4906
QUESTION_TEXT
Explain the following special string operations with example
a. get chars ()
b. charAt ()
c. compareTo ()
d. concat ()
e. replace ()
SCHEME OF
EVALUATION
a. Get chars () :
b. Charat () :
c. Compareto () :
d. Concat () :
e. Replace () :
each point should be explained with example each operation
carries 2 marks
QUESTION_TYPE
DESCRIPTIVE_QUESTION
QUESTION_ID
72815
QUESTION_TEXT
Explain the “String Buffer” class in Java with all its supporting
methods.
SCHEME OF
EVALUATION
String Buffer is a peer class of string that provides much of the
functionality of strings.
Strings Buffer defines three constructors. They are
String Buffer()
Sting Buffer (int size)
String Buffer (string str)
The default constructor reserves room for 16 characters without
reallocation.
1. The current length of a string buffer can be found via the length
() method while the total allocated capacity can be found through the
capacity () method.
2. If you want to preallocate room for a certain number of
characters after a string buffer has been constructed you use ensure
capacity () to set the size of the buffer,.
3. To set the length of the buffer within a string buffer object use
set length ()
4. The of a single character can be obtained from a string buffer
via the char A+() method.
5. To copy a substring of a string buffer into an array use the get
chars () method.
6.The append() method concatenates the string representation of any
other type of data to the end of the invoking string buffer object.
7. The insert() method
8. Java 2 adds to string buffer the ability to delete character using
the methods delete() & delete char A+().
9. Replace () method
10. Java 2 also adds the substring() method, which returns a
portion of a string buffer.
String substring (int start Index)
String substring (int start Index, int end Index)
(Each method 1 mark)
QUESTION_TYPE
DESCRIPTIVE_QUESTION
QUESTION_ID
72819
QUESTION_TEXT What do you mean by CORBA? Explain its architecture?
SCHEME OF
EVALUATION
The Common Object Request Broker Architecture is a standard
architecture for distributed object systems.
The services that an object provides are given by its interface.
Interfaces are defined in OMG’s interface definition language (IDL).
The figure graphically depicts a request. A client holds an object
reference to a distributed object. The object reference is typed by an
interface. In the figure, the object reference is typed by the Rabbit
interface. The Object Request Broker, or ORB, delivers the request to
the object and returns any results to the client. In the figure, a jump
request returns an object reference typed by the AnotherObject
Interface.
The ORB is the distributed service that implements the request to the
remote object.
The ORB implements location transparency.
The ORB implements programming language independence for the
request. The client using the request can be written in a different
programming language from the implementation of the CORBA
object.
QUESTION_TYPE
DESCRIPTIVE_QUESTION
QUESTION_ID
109004
QUESTION_TEXT
Explain the different stream classes.
–
SCHEME OF
EVALUATION
FileInputStream and FileOutputStream Classes
–
Classes
–
BufferedInputStream and BufferedOutputStream
DataInputStream and DataOutputStream Classes
–
Classes
ByteArrayInputStream and ByteArrayOutputStream
QUESTION_TYPE
DESCRIPTIVE_QUESTION
QUESTION_ID
109006
QUESTION_TEXT
What is an operator? What are the different types of operations
in Java? Explain?
Definition (1 mark)
For explaining any 3 operators (3 × 3 = 9 marks)
SCHEME OF
EVALUATION
1.
Arithmetic operators
2.
Logical operators
3.
Assignment operators
4.
Comparison operators
Download