Saturday, 18 May 2013

Technical Interview at TCS

Below is my technical interview at TCS where I was the first one to get selected among 55 students chosen from our college.

H: interviewer
I:myself


H: Ok tell me about urself ?
I: Besides all the information given in my curriculum vitae , I am consistent as u can see from academics marks . I can converse well with people . I can work better in a team . The fundamental principle of my life is that “Successful peop;e have the ability to read between the lines” . I like to do things in an innovative way .
H(interrupting me): Ok , tell me the last thing u have done innovatively , anything even outside academics ?
I:Sir , one day one of my friends texted me a msg “ Hay , Have u done my work ?” and after so much of scrolling down it was written “99% of the people will call u on reading the first line .Fortunately u r not among them .”
Now what common people will do ? They will just look at the msh , laugh and keep the mobile in the pocket . But I did something different.
I texted her “Ur work is over but there is some problem .” After so much of scrolling I wrote the same thing as was written by her i.e “99% of the ….” . !!!!!!!!!!!
H:In what u r expert subjects(OS and CN) or languages ?
I: Sir , languages and especially JAVA .
H:Ok Tell me what is polymorphism ?
I: It is the use of same thing for different purposes . There r two types of it . 1- Compile time (method overloading) 2-Run time (method over riding ).
H: Can u give me any real world example of polymorphism ?
I: Sir If in a class we have one add method taking two integer arguments , we can overload this add method which takes two float values .
H(interrupting me ): No No , I want real world eg . outside java
I: sorry sir , I don’t know .
H: Which books u referred ?
I: Complete Reference and Head First
H: It is given in Complete Ref
I:Sorry Sir , I don’t remember.
H:Write a code snippet describing use of Inheritance and Polymorphism ?
I:
Class A{
int add(int a,int b)
{
Return (a+b);
}
// overloading
Float add(float a, float b)
{
Return(a+b);
}
}
Class B extends A{
// over riding
int add(int a, int b){
return(a++ + b ++);
}
} // class B ends
H: U gave seminar on JDBC . Tell me how u represented .
I: Sir , first I explained why there was need for JDBC . Before JDBC , ODBC( open database connectivity ) by Microsoft was used . But ODBC drivers were written in platform dependent lang. like C, C++ etc . Also ODBC drivers need to be installed on the client . JDBC drivers(type 3 and type 4) are in java so platform independent .
H(interrupting me):ok ok , tell me how will u establish connection with DBMS in JDBC ?
I:DriverManager class has getConnection(String url ) method. When we call this method with proper url , it returns an Object of type Connection(an interface).
General format of url is :
Jdbc:subprotocol:subname
For eg: jdbc:odbc:www.hostname:port no/DSN
H: How can we find the hostname ?
I: Sir , We can find it using InetAddress class of java.net package .
H: Ya , that’s one solution . But I want non Java solution .
I: Sorry Sir , I don’t know .
H: What is Java bean ?
I:Java Bean is a java class following some conventional rules and which can be reused . We can create reusable components using java Beans .
H: Give me difference between Java class and java bean
I: Java Beans will hava getters and setters method for each property (fields).
H: Explain me how ?
I:
General Format :
Public T getN();
Public void setN(T);
Where T- Type
N-Name of property
H: If I tell u to work in PHP will u be able to do ?
I: Yes , sure
H: How much time will u take ?
I: One month
H(was surprised): One Month !!!!
I: OK,20 days
He smiled.
H: Ur interest is Android Mobile Application Development . From where u obtained the resources ?
I: code.google.com , android.developers.com , and wrox publication book on Android
H:ok , u can leave
I: Ok , It was pleasure meeting u .
H: me too .
I: Sir , I attended ur seminar on Cloud Computing which u gave two months back in our college .It was very interesting .
H: I was abt to ask that . But forgot . Ok Now I don’t want to ask . U can go.

No comments:

Post a Comment