Hi, Please give me the answers to the following questions. ____________________________________________________________
1. In Java,what happens when activating an object in POA?
2. In Java,Converting Character into corresponding
integer values.
char c=A; int i=c; (True of False)
3. In Java,when a primitive data type is a member of a class, it is guaranteed to get a defalut value if you do not initialize it.(T or F)
4. In Java,An implementation can provide more than one server activation mode, state whether the given statment is True of False.
5. In c++,will Private inheritance retain all the public variables their public status
6. Anonymous classes cannot be passed as (____) (i) Argument to function (ii)cannot have a constructor or destructor (iii) cannot be returned an return value from function. a) all b) i and ii c)i and iii d) ii and iii
7. To convert from a basic type to a user defined class, you would most likely use a) a built in conversion. b) one argument constructor c) an overload = operation d) a conversion function that is member of a class
8. To execute fields from serialization, in a serializable from serialization, mark the fields with ________ modifier.
9. In c++, class A{ public: A(){ cout<<"constructor of A called"<<"endl;} i=0; ~A(){ cout<<"destructor of A called"<<"endl; } void say(){ cout<<"Say() method called"<<endl; } }; int main() { A *a =0; a->say(); delete(a); } a) compiler error b)constructor of called,saymethod called,destructor of A called. c) Runtime error d)Say()method called.
10.In c++,what is a pointer to a constant?
11.#include<iostream.h> main() { int i; cout<<i; } a) 0 b) Garbage value c)Segmentation fault d)Compile error saying it is not intialised
12. int &max(int &x,int &y) { if (x>5) return x; else return y; } if a=5 and b=10, then what is the value of max(a,b)=-1. a) compile error b)Runtime error c) a=-1 d)b=-1
13. In java RTTI can tell precise type of the object, but its type must be know at compile time a) False,it can detect type at runtime. b) False, not necessarily but type should be declared before runtime c) True d) False
14. __________POA policy has to be sent to ________value where you want to use a servant locator?
a) use_servant_managers, NON_RETAIN b)NON_RETAIN c) use_servant_managers, USER_ID d)None.
15. A ________small piece of code that allows a client component to access a server component. a)skeleton b)A client stub c)DLL d)sockets.
16. An IOR cannot contain multiple profile bodies for the same protocol. State whether the given statement is True or False
17. Transaction service is built on the capability of _____service for controlling access to individual objects. a) Trading b)Life cycle c) Concurrences d) Externalisation.
18. What is the opposite term for "Incarnating" and object? a) "Etheredlizing " and object b) "Deactivating c)Destroying d)Replacing.
19. Which among the following is wrong? a) you cannot access an outer-class object from an object of a static innerclass. b) Inner class can have a static data. c) Inner class cannot have static inner class d) you do not need an outer class object in order to create an object of a static inner class.
20. During conversion of UDT from JDBC type to a java type(or) vice-versa which mapping is used? a)Standard b)Custom c)either of the two d) neither of the two.