Tuesday, December 8, 2009
I did not understand the storage of float in C/C++ until I have executed this program by accident.
#include<iostream.h>
#include<conio.h>
void main()
{
int i;
clrscr();
float f=0.7;
cout.precision(10);
cout<<f;
getch();
}
OUTPUT
0.6999999881
Now I understand the program
if(0.7f==0.7)
printf("I love you");
else
printf("I hate you");
The output is I hate you. I was under the false impression that it was due to the size. but it is not. It is due to the precision actually.
0.7=0.7000000000 which is not equal to 0.7f=0.6999999881!
Now it makes sense. I prepared so many questions like this for my Cognizant interview. But this is the only one that I remember now.
Labels: Programming
What will happen after 3 yrs from now if cognizant, infosys, tcs keep on recruiting at the current pace in India?
Labels: Fun
December 7, 2009
Me and Karthi had planned to under-perform in Infosys. To get into Accenture. Karthi woke me up at 7:00 AM. Then I was exploring my new Nokia 5800 Xpress Music set and it became 7:50. I started to get ready in a hurry. It was 8:15. My mum scolded me for not having the breakfast and packed the breakfast into my lunch box. I took it and then left to college. It was 8:28 AM when I reached College. I entered the auditorium by 8:32 and the pre-placement talk of Infosys began at 8:40.
All I can say was, Sharanya who was from Infosys, gave a better speech to that of Mr. Vishnu of Cognizant. And Infosys's campus was like a five star hotel. Or some Sahara project. But I was not really impressed with the growth of the organisation when compared to Cognizant it was pretty low. Though it has more employees and is older of the two.
Then the test began. There was an application form to be filled. The designation was System Engineer. And the hall incharge was giving too many instructions to fill out a simple application form.
The test began at 11:00.
The test began. I got the information that the cut-off was 50% of the marks. So I marked 10 to 15 right and 5-10 wrong. In english. The exam was damn easy. If I had solved them seriously, I would have scored lot of marks for sure.
Then came Maths. There were 30 questions and time was 40 minutes. And all the questions were a real cakewalk. Here too I did the same(left few as I did in English). But for time pass I solved all the questions in the rough sheet.
After the test I called my dad. He said that since you marked 10 right, you have a chance of clearing the round. I was afraid whether I would clear. And after lunch Me, Karthi, John and Aravind Babu met our staffs and informed about our Cognizant placement. Then the results were announced. My fear became true. I was selected for the next round. I was confused whether I should perform well in the interview or not. I spoke with my parents and took a decision that, I should perform well in the interview.
"Fate only takes you so far, then it's up to you to make it happen"
All the persons were interviewed one by one. And I was the last person to be interviewed. I was initially in panel 7. Deja Vu of Cognizant. But then changed to panel 3. My interviewer was a lady who was about 45 years old.
It was the first time I was being interviewed by a lady. My guess is that she is a brahmin. She atleast looked like one :-)
Interviewer: Good evening. Take your seat.
Me: Good evening Ma'am.
Interviewer: Think you must be tired waiting so long.
Me: Not really Ma'am. I had a hearty lunch. And was just relaxing after that.
Interviewer: Did you perform well in the test?
Me: No ma'am.
Interviewer: Did you prepare well for the test?
Me: No Ma'am.
Interviewer: Then you must be lucky enough to attend this interview.
Me: Yes Ma'am. But I had been preparing aptitude since my semester holidays began on November 24. Too much of anything is good for nothing. So I stopped preparation on Friday and took some rest. Probably a weekend off.
Interviewer: Hmmm. I had gone through your resume. It appears that you have done lot of projects.
Me: Yes Ma'am. I am very interested in developing projects, because I like to explore different technologies and different domains.
Interviewer: Are they part of your academics.
Me: No ma'am. Developed them out of own interest.
Interviewer: You have consistently scored scored 90+ in tenth and plus 2. But it seems that you have lost around ten % of your marks in College. Do you think 81% is good or do you repent that you could have done better?
Me: Ma'am I am interested in projects and devote lot of time to that. But that doesn't mean I have had a serious dip in my marks. I want to maintain a balance. Where I learn technologies, domains as well as my syllabus. I planned to maintain a decent percentage and I hope I am doing that.
Interviewer: Other than Projects, what do you do?
Me: I write novels.
Interviewer: How many have you written?
Me: Two.
Interviewer: Best of the two?
Me: Mystic Murder.
Interviewer: Mystique or Mystic
Me: Mystic the one with the C.
Interviewer: Interesting. Any sports?
Me: Chess.
Interviewer: Anything outdoor.
Me: I play table tennis. Oh thats indoor too. Hmmm. I play gully cricket once in a while.
Interviewer: Tell me about any hurdle you faced during your projects.
Me: Spoke about PEARL. The requirement problem. Waterfall model, Win-Win Spiral model, importance of documentation and lot of such stuff.
Interviewer: How did you source this project?
Me: Spoke about my fracture and how I got this project.
Interviewer: So you source your projects out of accidents?
Me: Yes. But it would be better to say. I source my projects even out of accidents. I believe in the philosophy- All is for good. So my accident too was good. Because I learnt lot of things in that project. And even when I was being administered with local anesthesia. I was observing how an instrument was fed with data. The nurse was entering as Deepak Senthilkumar RTA Male 18 in my first name. Though there were text boxes provided for the entry of gender and age. And a checkbox for Road Traffic Accident (RTA). That's when I understood the use of data mining! And how the operators feed the data.
Interviewer: Are all your projects Software.
Me: No Ma'am. I had developed a project called Informative Bus Details for Public Transport office. Normally in any bus station, the driver has to get out of the bus, sign a register enter the in time and out time manually. but in this project, the driver would possess an RFID card. And the details would be detected when the card is in the proximity of 2 metres.
Interviewer: Seems like a novel idea. Have you applied patent for it.
Me: No Ma'am. I got that idea by browsing through internet. It is not my idea. I developed the project just to explore the possibility of COM port communication and interaction with hardware. But I have presented a paper called Graphentication of passwords. Explained it to her. Said, her that she could remember the figure 5 better than the letters 'five'. She agreed. And said that I am planning to implement it as a part of my final year project and planning to apply patent for this project.
Interviewer: Do you know how to apply patent?
Me: Yes Ma'am. In Government College of Technology Coimbatore, there is a department called Intellectual Property rights. I have to apply it through them.
Interviewer: Are the technologies .NET, J2EE part of your syllabus.
Me: No Ma'am. I have had C# .NET in my syllabus. But the projects were in VB .NET.
Interviewer: Did you attend any class for that?
Me: No ma'am. Google is my tutor. I download the tutorials and learn the language.
Interviewer: What about SEQUEL?
Me: Ma'am I have not heard the term. I dunno what it is.
Interviewer: You have mentioned the back end as My Sequel for couple of your projects.
Me: Oh! MySQL. Fine. I dint know that it was called as Sequel ma'am. I have learnt a subject called Database management Systems and in that I had a lab session. I learnt oracle there. MySQL and oracle have similar type of queries. But I prefer mysql because it is free and it can be easily integrated with PHP.
Interviewer: Did you do any project in that Database lab?
Me: Yes ma'am. It was a mini project. Where I had four members in my team. Since the time was less and everyone had to participate in it. It was a simple vb application to conduct a quiz.
Interviewer: You have decent percentage, develop projects, write novels. How do you find time for all this? You spend 8 hours in college. And you have to commute from your home to college.
Me: Ma'am most of the projects were developed on weekends and Semester holidays. Regrading the novels. I work with the plot during the semester and write it in the semester holidays. I have 40 days holidays usually. That's more than sufficient. And for academics, there are study holidays. And during internal exams itself I would have finished around 80% of the subject. So that's easy too.
Interviewer: You have mentioned three memberships. What have you done.
Me: I have been part of an event called Virtuoso 2008. I was part of the organising team for the events Best Manager and Software Presentation. Other than that, in the last semester we have conducted Intra Virtuoso an event for our juniors in IT and Computer Science.
Interviewer: This interview is about you. What's that we?
Me: Ma'am. We means, Me, and couple of my friends called Arun and Karthikeyan. To make a good cup of coffee we need three key ingredients, Milk, Sugar and the Coffee powder. Each one has it's own part. And to make that event successful we were the key ingredients. Each one had his own part. But because of the effect of synergy our collective effort was amplified much higher when compared to our individual efforts. There were totally nine events and we were part of all the nine events.
Interviewer: Name few events.
Me: C-Debugging, Cyber Cipher, Technical quiz, Web Desgining
Interviewer: Leave alone that we part. What was your contribution?
Me: In the past, there was lot of paper work involved in the event C-Debugging because all students would be interested in that. There will be lot of participants. hence more photocopies of the question paper. Further the correction was time consuming. To reduce all that, I developed a simple application in VB.NET for the prelims of that event. I took five days to develop it and two days to test it. Around 200 people participated in the test and the it was a success. Other than that, in an event called Cyber Cipher, my friend developed the application and I developed the Content for the application. Explained the Donald Duck level in Cyber Cipher and said there were totally 15 puzzles like that and I developed them.
Interviewer: I think I am done with you. Any questions?
Me: Yes Ma'am. I spoke with my seniors and my relatives before attending Infosys. They said that the training was over six months. But it was the best company to work for if you need immediate-onsite opportunity? In the pre-placement talk it was mentioned that the training was for just 16 weeks. Is it true? Is there some fast track to quickly finish the training and enter into project team.
Interviewer: Regarding training, it is for 28 weeks. 16 Weeks was before 2 years. And regarding fast track. Yes, you can enter into projects if you perform well during training, may be within 3 to 4 months. And regarding on-site opportunity, you need to be lucky to get. It depends on the business requirements and your luck. Any more questions?
Me: No Ma'am.
Interviewer: All the best Deepak. I had a very good time interviewing you.
Me: Thank you Ma'am. I had a good time too. May I know your good name Ma'am?
She thought for a second.
Interviewer: It's not the part of my protocol.
Me: Fine Ma'am. Thank you.
I don't remember how long the interview went. When I came our of the interview room, time was 7:12. From my classmate Gayathri Lakshmi's information, it seems that she went in at 6:40 PM. I was called within a minute she was called. So my guess is around half an hour. i still can't believe that this interview went for so long!
I didn't prepare a second for this interview. But may be because I was really relaxed for this interview, I think I gave my best ever performance in this interview. I have attended two mock interviews and Cognizant. I don't think I have ever spoken this much in any of the other interviews. May be my friend Gokul Krishna's words sub-consciously had an impact. After Cognizant interview I was speaking with him. I said that his English is better than mine. I usually think something then think the suitable words and speak and it results in a split second gap. Its not in case of Gokul. He said, "It's because you think and speak. I just speak". The split second gap was not there this time around.
Coming back to this interview, I thought I had given a really good performance and was confident of getting it except for the last part where she refused to disclose her name.
But she didn't refuse to pick me. After two hour wait my name was announced in the list of people who were selected.
Two placements in my hand. This was the day in my life I became really happy after 3 and a half years (After getting Admission into Kumaraguru College). 2009 is turning out to be a fabulous year. I was quite worried that I couldn't clear the Subex written round. I started to doubt on myself and my luck. And I was under enormous pressure of getting into Cognizant because, I was worried that 'if Cognizant doesn't pick me who's gonna pick me?' After that, Infosys happened like magic. I didn't comb my hair properly, my face was oily. I didn't wear my sentiment green socks and my sentiment white shirt :-( But my confidence level was pretty high.
When fate has decided to give something for you can't change it. Its all written already!
In the film-Matrix, there is a dialogue:
There is a difference between knowing the path and walking the path.
Knowing about Infosys interviews and attending it did have a difference!
Alas! Forgot to mention that this interview happened on December 7 and my lucky number is 7! Coincidence may be!
Labels: Deepak's Scribble, Interview Experience