============================================================================================================= www.sanonline.com DHARMA COMPUTERS TECHNICAL PAPER JAVA (Conducted on 4-7-98) 1) The size of the integer variable 2) Pick up the Correct Statement a) Unsigned int is available in Java b) Unsigned int is not availble in Java c) No unsigned concept in Java d) None 3) The Operator is not availble in Java a) instanceof b) >>> c) >> d) None 4) All objects of String class holds a) Constant stings b) Variable length strings c) All of the above d) None 5) StringBuffer object reserves an extra space of a) 2 bytes b) 4 bytes c) 16 bytes d) 32 bytes 6) in & out are a) classes in Java.lang package b) objects inside System class c) Represents STDIN & STDOUT d) Used for I/O with files 7) Java.util Package does not contain a) Bignum b) Date c) Vector d) None 8) The Size of Vector object is a) 100KB b) 1024KB c) Limited only by the resource available d) Unlimited 9) Pick the odd one out in terms of Size issue a) StringBuffer b) Vector c) HashTable d) String 10) SezuenceInputStream a) Merges more than one streams into a single Stream b) Reads one Stream c) Raises in EUFException at the end of the each Stream d) Reads more than one stream without giving EOFException in the middle 11) When the Exception occurs a) Exception continues with the next statement after giving an error b) Skips the block , executes all the Catch blocks c) Skips the block , executes respective Catch block and executes finally block. d) None. 12) Pick the Correct Statement: a) if(!Password.equals("Dhrama"))Invalid user Exception b) if(!Password.equals("Dhrama"))Invalid user Exception c) Both a & b d) None 13) Pick the method not available in DataInputStream a) writeInt() b) writeChar() c) writeLine() d) WriteLong() 14) Ab object of InputStream can not write to a) file b) string c) socket d) none 15) The method not available in Applet a) start() b) destroy() c) appletInfo() d) suspend() 16) The default Layout is a) GridLayout b) BorderLayout c) CardLayout d) GridBagLayout 17) The interface is a) instance as an abstract class b) Can be used for Implementation Inheritance c) Is another class d) Can be used Multiple Inheritance 18) Pick the Correct statement a) There is no parent and child thread concept in JAVA b) Parent thread waits for all the child threads to execute c) 2 threads are accesing the same object at the same time. d) None 19) Java.net package does not contain a) Socket b) URL Connection c) DatagramPacket d) URLDecoder 20) What can't be done using URL Class a) Read a file from Server b) Load a Web document to the browser c) Write to a file in the Server d) Rubber technique 21) The best way to avoid flickering in animation is a) override the Paint b) override the uadate() c) Double buffering d) Rubber_band technique 22) Java.awt.Graphics class does not a) drawstring() b) draw3Drect() c) draw3Doval() d) drawPolygon() 23) The Garbage Collector will be called when the a) Object is destroyed b) finalize() method is invoked c) finally block is executed d) gc() method is called 24) Standalone application cab be executed by a) extending the class from the object b) extending the class from the Applet c) includes the function public static void main(String a[]) d) implementing a thread 25) Pick the wrong statement a) Java is platform Independent b) Java is platform dependent when JNI is used c) Java thread execution depends on JDK Implementation d) Programs written in Java are bigger in sixe than C++ programs CYBERCASH TECHNICAL ' C++ ' PAPER Conducted on dt:8-5-98 1. Definition of Linked List. 2. What is the meaning of Test *t; (Test is the' class ') 3. Definition Pass by value & pass by definition. 4 When B class is privately derived from a base class A ,the derived class object Can access the ---------------------------------- a) private members of the B class b) public members of the B class c) protected members of the B class d) both b & c. 5 A base class pointer can access the members of derived class pointer (T/ F ) 6 Class hierarchy means --------------------------- 7. What is Pointer ? 8. Define Virtual Function ? 9 It is useful for sometimes that we can't create objects of a class ( T / F ) 10. What does meaning of this statement ? " Warning : A reference variable can reference to local object " a) Syntax error b) Linker error c) Runtime error d) * 11. Fine Output main() { fun1(); fun2(); fun3(); printf(" HELLO "); } a) HELLO b) Linker error c) Run time error d) Syntax error e) Aborts the program 12. Can we Overload this ' >= ' Operaror 13. Tell me the meaning of ' &ref ' 14. a = 32 ; this->a = 32 ( T / F ) 15. ' SREE SOFT 'C++ TECHNICAL PAPER (20 MIN) conducted on dt: 10-4-98 1. Tell OUTPUT : Int j = 1 //**/2 ; if(j==1) printf("string 1") else printf("String 2"); 2. Tell OUTPUT : j=0; While(j!=-1) { cin>>I; cout<.cpp/.ramesh" Can we give we path like this ! will it be compiled ? 8. Tell me the Meaning of the following: Foo & const y; Const Foo & y; INTERVIEW QUESTIONS : 1. When we will use static data ? 2. I don't want to change the data in this function even I am using reference operator in the following function . Void method( Foo & a ) { } 3. class A { public int a; } class B : public A { } class C : public B { } In this above inheritance using C object we can't use the varible HOW ? It means ' p ' is the object of ' C ' then if we have done like this p.a = 100 We have to get compile_time error . HOW ? 4. and asked some Questions on 'JAVA' no Questions on Project. CATS C&C++ paper conducted on dt: --5-98 1) Advantage if iostream.h over stdio.h a) Better safety b) Extensibility c) Subclassble d) All 2) A question on the swap a) i is a pointer to X b) i is a copy of X c) i is X d) none 3) void print(char *s) { while(*s) { putchar(*s); ++s; } } main(void) { char msg[] = "Hello there"; while(*msg) { putchar(*msg); ++msg; } print(msg); } 4) #define square(x) x * x printf("%d",sqare(3+3)); a) 36 b) 15 c) 36.0 d) error 5) char ch = 128; printf("%x",ch); a) ff80 b) 80 c) 128 d) -80 6) char *msg = "Hello there"; strcpy(msg,"How"); printf("%s\n",msg); 7) main(int c, char *v[]) { int i; for(int I=1; I