0% found this document useful (0 votes)
21 views16 pages

java

The document provides detailed information about a small multinational company with 600 employees, offering Agile PLM solutions and a salary of 2.5 lakh per annum. It outlines the interview process, including technical questions in Java and C++, as well as the structure of the written test and the technical and HR interview experiences of candidates. Additionally, it includes various quantitative and analytical questions that candidates may encounter during the recruitment process.

Uploaded by

swoobhai
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views16 pages

java

The document provides detailed information about a small multinational company with 600 employees, offering Agile PLM solutions and a salary of 2.5 lakh per annum. It outlines the interview process, including technical questions in Java and C++, as well as the structure of the written test and the technical and HR interview experiences of candidates. Additionally, it includes various quantitative and analytical questions that candidates may encounter during the recruitment process.

Uploaded by

swoobhai
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 16

About compeny:

It is a small mnc with total no. of employees 600 worldwide and with 60 members in Bangalore.their
clients are 1250 in number.they give solutions for improving product lifecycle. Agile PLM solution is their
trade name. they are offering a salary of 2.5lack per annum with stock options in addition. they give good
importance to good acadamics.the interview is only personal and most simple for
high percentage getters. this compeny name is not in the cmm level 5 list. the test contains 60qns
Duration: 1hr.
30 qns from c++,30 qns from java.the qns are objective type may have more than one ans

java:
(1)find out three keywords
(a)synchronized
(b)implement
(c)throws
etc

(2)which are not keywords


(a)NULL
(b)synchronize
etc

(3)two to three questions on legal array declaration


(a)int a[][]=new int[3][3];
(b)int[] a[]=new int[3][3];
(c)int a[3][4]=new int[3][4];wrong
(d)int[3][4] a=new int[3][4];wrong
(e)int a[][]=new int[3][4];

(4)++i+++j is equivalent to
(a)i+j+1
(b)i+j+2
(c)i+j
(d)can't be compiled(correct)

(5)the content of the array after execution of following statement:int a[][]=new int[3][3];
(a)all elements contain zeroes

(6)find legal statements


(a)int a=30;
(b)float f=1.4;(error)
(c)double d=34.5;
(d)byte b=128;(error)

(7)find illegal statements


(a)int i='2';
(b)char a=12;

(8)some 5 qns on collection interfaces

(9)to find the length of array


(a)arr.length-1
(b)arr.length(correct)
(c)arr.length()

(10)write code for accessing array length without assigning it to another variable

(11)recursion is
(a)any function which refer itself

(12)the sorting method which don't generally use recursion


(a)heap sort
(b)bubble sort(ans)
(c)quick sort
(d)bubble sort
(13)one qn regarding abstract

(14)some 2 qns on hash table

C++:

(1)the difference b/w pure virtual fn.& virtual fn.


(a)pure virtual fn. is initialized to zero.
(b)

(2)virtual destructors are used for


(a)

(3)find legal statement


(a)cout>>"name">>endl;
(b)cout<<"name<
(c)cout<<"name"<

(4)find the o/p of the program


void main()
{
int a=10;b;
if(a<=10)
b=4;
if(a>10)
b=5;
cout<
}
(a)it don't be compiled
(b)it compiles and o/ps 10 4(ans)

(5)a qn on copying or assigning

(6)early or static binding means


(a)at runtime
(b)at compiletime(ans)

(7)one qn on global variables,one qn on globally declared static variable

(8)two qns on "vector" type

(9)the branch of a tree which has no childs is called

(10)when a node c is inserting b/w nodes a and b how many pointer will be modified
(a)2(check)

TCS : Technical Interview

1. what is ddl & dml command


2. give an example for each

3. what is normalization

4. what r the different normalization methods

5. Is there any compiler in oracle

6. what is the name of that compiler

7. what is an operating system

8. what r the functions of operating system

9. what is dead lock

10. what r the ways to avoid deadlock

11. what is bankers algorithm

12. oops concept

13. difference between c++ and java

14. what do u mean by inheritance

15. what do u mean by access specifier

16. what is polymorphism

17. sdlc

18. what do u mean by fuction overloading

19. they gav me some analytical problem and ask me 2 solve

TCS recruitment conducted on 29th Aug 04 Chennai

Discretion abt written Selection Process


Written Test:
Prepare from previous papers. It’s of the same pattern.Prepare wordlist from Barrons. There was
no psychometric test.We had only 1 and a half hr to complete the paper. For quants, we had to
write the answers and were not of multiple choices. Logical questions were bit tough.Main
problem is the time shortage to complete it fully.

Interview

There were around 8 - 10 panels for tech intrw held at TCS, Karapakkam, Chennai.Environment
was excellent.
People from TCS were very soft and had a cheerful face.

In my panel, two persons of age around 35 – 40 yrs interviewed me.Tech intrw was held for
around 55 min. Slightly drilling but easy.After clearing tech, I attended HR where one young
man interviewed me.It went for half an hour exactly.Most of them were only personal questn and
some tech Qs.On my time slot, 5 ppl attended in that same panel and only 2 cud get thro.

For another friend, the tech held for just 10min.They asked 2 gen. Qs like where he is from
(Ambattur) and how he reached that office.Then 2 tech Qs 1) Shannons theory ? Ans: “I don’t
know”2) Diff betn up85 & 86. He told correctly.He got selected.

So, it depends on ur luck to get a good panel.

Technical Interview

1. Introduce ur self.

2. First person started…..


He asked my mark sheets from which Qs were poured from various subj I’d studied in my BE
(ECE) syllabus………

3. Favourite subj.?
Digital

4. How abt mp?


Draw the architecture of 8085?Explain each block?Interrupts and its types? Flags?
5. Write a program to multiply 2 nos?Diff betn MOV & MVI?Diff betn 85 & 86And some
more………?Latest mp used?

6. Next person started…..Whats inside a CPU of PC? Inside processor? Whats a MODEM?
working?
If 2 PCs connected to a server using 2 MODEMs, what is the fn of each modem?

7. Back from first person……meanwhile the 2nd person was going through my marksheets
and certificates.

Lets move 2 ur fav subj…Digital -Draw the diag of OR and NOR? OR internal ckt diag ?
I managed to draw a diag which is logically correct ( with 2 transistors …..)

Universal gates? Why? Draw OR using NOR gates? What is multiplexed?

8. Slowly deviated to analog-Describe abt transistor? Types? Types of BJT? Diag for NPN
and PNP?
Differentiate where they r used?
Uses of transistor according to mode of opn.?
Uses of diode?
How it is used as rectifier?
Zener diode?
What is bias?
What is thyristor?
SCR? Where used?
Diff betn thyristor & transistor?
And some more………………

9. Then programming…… How good u r with programming? I know only C.


Asked me to write a pgm.
I’m not well versed with programming. I know only conceptually.
Why pointers? Answered
Luckly, they skipped the topic.
10. Then……Network Topologies? Bus, ring…
What u know in networking?
I know only the basics as this was not choosen as our elective.

Then whats ur elective?


Biomedical……..
(I think the person was good in that subj.)

11. I was caught …………He fired several questions like…


How ECG working?
Stethoscope working?
BP ? and more…………………
How pressure converted to signal?
Transducers?

12. Then came to the project…Explain ur proj.


I explained clearly with proj report.
Some Qs on project.
I myself added that I did with 3 other students from different states and could manage to
complete the project successfully.

13. Finally general Qs…You did a proj in digital design and why do u want to come to
software?
Why not hardware?
What guarentee u give that u won’t shift to hardware after 2 yrs saying u don’t like S/w?
Another person asked what u studied in Engineering economics & mgmt?
R u interested in this subj?
I frankly said it’s a bit boring subj. ‘coz there is nothing to learn and this is the subj where we
write stories.They smiled.
If we put u in proj dealing with mgmt,…..difft from what u’ve studied in BE, r u ready to do
that?

U said it’s a boring subj. & now ready to switch over to that ?
First of all, working at TCS itself is a great pleasure and it would be my duty to develop interest
in that subject and shine well in that area.
Finally they asked ‘any Qs 2 us’?
Yes sir!
On what electronics related proj r u working currently?
Then I smiled and said ‘then there is a chance for me to get into electronics based s/w projects’.

HR Interview

1. Introduce urself other than in application.


I told abt my positives and ideologies.While I was saying the 2nd point of my ideology, my
throat got chocked ‘coz of fear.
Are u alright? Yes sir. I’m slightly nervous.Its OK.

2. Whats ur hobbies?
Playing Tennis and chess.
In chess, how its scored?
I said we’ve checkmate the opponent king.
He poured more Qs on chess.
I said, I used to play chess only with computer just as a time pass and not serious with that.
How many squares r there in a chess board?
1st I said ‘100’ and then said ‘sorry 64’.

3. How abt tennis? How many sets are played in a match?How it is scored?
said 0, 15, 30, 45, game.I made a damn mistake of saying 45 instead of 40.
He again asked to check and I was still stubborn with my ans.
What is game point? match pt? Deuce?
Who is ur fav. tennis player?Why?
But, Pete Sampras everytime defeats Agassi?
Whats ESPIRIT (Dept. assocn)?

4. What u’ve done?


Arranged VLSI conference.
Whats VLSI?
More than 1 million transistors per chip.
Explain sth abt VLSI.

5. No. of zeros in a million?6


No. of zeros in a lakh?
Got struck (due to tension) and started counting from units digit in mind.Then said 5. I frankly
told him, ‘I need to count by fingers
He laughed..

6. Whats ur fav. subj? Digital


Describe OR & NOR gate in a sentence form
What is the IC no. for AND gate?
which co. produces such chips?

7. Where do u see urself after 3 yrs ?


Whats ur ambition?
Why TCS?(He really got stunned with my knowledge abt TCS)
What way u can provide a s/w that is useful to the community as well as TCS?
I gave some ideas like cognition tech for blind ppl and web-based applns,……
Why s/w?
Stressed the importance of software with egs.
What efforts u made to get into Software?
Any thing u did for the community welfare?
I gave a finishing touch. As of now, I cud help only physically. I think, if I’m being selected and
once if I join TCS, I can help ppl even monitorily.

8. Finally, Any Qs to me?


Yes sir!
Whats the training period? 45 days
Whether I can avail transportation facilities from TCS? yes
Whether u do any electronics related proj @ Chennai? No. Its done at Hyd only.
Thanked him and smiled my way back home with great confidence.
Quantitative Questions

1 If g (0)=g (1)=1 And g (n)= g (n-1) + g (n -2) find g (6);


Ans: g(6) = 13
Sol:
G(0) = 1
G(1) = 1
G(2) = G(1) + g(0) = 2
G(3) = g(2) + g(1) = 3
G(4) = g(3) + g(2) = 5
G(5) = g(4) + g(3) = 8
G(6) = g(5) +g (4) = 13
2 A plane moves from 9?N40?E to 9?N40?W. If the plane starts at 10 am and takes 8 hours to reach the
destination, find the local arrival time?
Ans:
The time is calculated on the basis of longitude. (Based on sunrise)Sun rises earlier in calcutta than in
Mumbai.
The 40 degrees east and 40 degress west are calculated form 0 degrees. The plane has travelled
westwards by
40+ 40 = 80 Degrees. (WEST) For each degree there is a difference of 4 Minutes The difference in
timings is
320 Minutes behind.As per the starting point time 10.00 AM the flight should have reached at 6.00 PM.
Reducing 320 Minutes from it we get 12.40 PM local time at the destination
3 Given $ means Tripling and % means change of sign then,find the value of $%$6-%$%6 ANS: -72
4 The size of a program is N. And the memory occupied by the program is given by M = square root of
100N. If
the size of the program is increased by 1% then how much memory now occupied ? Replace N by (N +
N/100) and solve.
5 16 litre can, 7 litre can,3 litre can,the customer has to be given 11 litres of milk using all the three cans
only
explain?
Sol: 16 litre Full initially 16-7 = 9 in 16 litre , 7 in 7 litre.7 to 3 to 16 (twice) than 15 in 16 litre1 in 7 litre
0 in 3 litre 1 in 7 litre can to 3 litre can 15 in 16 litre can 0 in 7 litre can and 1 in 3 litre can.From 15 in
16litre
can to 7 litre can Than 8 in 16 litre can 7 in 7 litre can and 1 in 3 litre can From 7 in 7 litre ad 2 to 3 litre
can
Than 8 in 16 litre can 5 in 7 litre can 3 in 3 litre can 3 to 16 litre can than 11 in 16 litre can 5 in 7 litre
can
and 0 in 3 litre can.
6. A traveler walks a certain distance. Had he gone half a kilometer an hour faster \, he would have walked
it in
4/5 of the time, and had he gone half a Kilometer an hour slower, he would have walked 2 ½ hr longer.
What
is the distance?
a) 10 Km b) 15 Km c) 20 Km d) Data Insufficient Ans: b)
Sol: distance == speed x time
st == (s + .5) x .8t -------------------(1)
st==.8st +.4t
. 2st==.4t
s== 2KM
st== (s - .5)x(t+150) ------------------(2)
Sustituting you will get the distance as 15 KMs

7. A ship leaves on a long voyage. When it is 18 miles from the shore, a seaplane, whose speed is 10 times
that of
the ship is sent to deliver mail. How far from the shore does the seaplane catch upo with the ship?
a) 24 miles b) 25 miles c) 22miles d) 20 miles Ans:
(d-18)==st
d=st
d=(d-18)
180== 9d
8. In a circular race track of length 100 m, three persons A, B and C start together. A and B start in the
same
direction at speeds of 10 m/s and 8 m/s respectively. While C runs in the opposite at 15 m/s. When will
all the
three meet for the first time on the after the start?
a) After 4 s b) After 50 s c) After 100 s d) After 200 s Ans : c)
Sol: Since the track is a circular track A and B will meet every 50 seconds. ie 100/(10-8) Since it is a
multiple
of 50 they will be meeting at the starting point every 50 Seconds. if you multiply 15 x 50 you will get
750 and
after the second 50 it will be 1500.All of them will meet at the starting point after 100s
9 Amal bought 5 pens, 7 pencils and 4 erasers. Rajan bought 6 pens, 8 erasers and 14 pencils for an
amount
which was half more than what Amal had paid. What % of the total amount paid by Amal was paid for
pens?
a) 37.5% b) 62.5% c) 50% d) None of these Ans : b) 62.5%
Sol: You can observe from the question that for additiion of 1 pen 7 pencils and 4 erasers rajan pays 50
%
more.It implies that the cost of 4 pens is 50% of the total amount paid by Amal. Therefore cost of 5
pens will
be 62.5% of the total cost.
10. A non stop bus to Amritsar overtakes an auto also moving towards Amritsar at 10 am. The bus reaches
Amritsar at 12.30 pm and starts on the return journey after 1 hr. On the way back it meets the auto at
2 pm. At
what time the auto will reach Amritsar?
a) 2.30pm b) 3.00pm c) 3.15pm d) 3.30pm Ans : b) 3.00pm
Sol: let the distance between the meeting point of Auto at 10.00 Am and Amritsar be d The bus takes
2.5
Hours(150 minutes) to reach amritsar from that point. The bus commences its return journey at 1.30
PM and
meets auto at 2.00 PM. The bus has thus travelled 30 Minutes. The bus would have covered 30/150 d
The auto has covered (1-1/5)d during the period. is 4/5th of the distance has been covered in 4 hours
(2.00
PM -10.00 AM) The remaining 1/5th distance will be covered in 1 hour. The auto will reach Amritsar at
3.00
PM
11. The cost of one pencil, two pens and four erasers is Rs.22 while the cost of five pencils, four pens and
two
erasers is Rs.32.How much will three pencils, three pens and three erasers cost?
Sol:
x + 2y + 4z == 22
5x + 4y + 2z == 32
Solving we get 3x + 2 y == 14 and y + 3z == 13, Adding both we get 3x + 3y +3z == 27 Ans : 27
12. The lowest temperature in the night in a city A is 1/3 more than 1/2 the highest during the day. Sum of
the
lowest temperature and the highest temperature is 100 degrees. Then what is the low temp?
Sol:
(1/2 + 1/3x1/2)t + t == 100
solving we get t == 60 ie the highest temperature is 60 and the lowest is 40.
Ans : 40 degrees
13. Javagal, who decided to go to weekened trip should not exceed 8 hours driving in a day. The average
speed of
forward journey is 40 miles/hr.Due to traffic on sundays, the return journey's average speed is 30 m/h.
How far
he can select a picnic spot?
a) 120 miles b) between 120 and 140 miles c) 160 miles Ans: 120 miles
Sol:
The answer given by you appears to be wrong. The question is not clear regarding the day on which
the
onward trip is carried out. If it is on a Saturday the maximum distance that can be travelled is 8 x 30
== 240
miles.However if both the onward and return trips are carried out on Sunday the answer is Between
120 and
140 Miles. The time taken for both the trips is 8 hours.
3 x 40 =0
4 x30 =0.
One more hour can be utilised for travelling and more than 120 miles can be covered.
14 The total expense of a boarding house are partly fixed and partly variable with the number of boarders.
The
charge is Rs.70 per head when there are 25 boarders and Rs.60 when there are 50 boarders. Find the
charge
per head when there are 100 boarders.
a) 65 b) 55 c) 50 d) 45
Ans : b)
Sol: The total cost for 25 boarders is 25 x 70 = 50 ,The total cost for 50 boarders is 50 x 60 == 3000,
The difference is 1250 for 25 boarders.,The variable cost per boarder is Rs 50
For additional 50 boarders the increase in total cost is 50 x 50 == 2500,Therefore total cost for 100
boarders
is 3000 + 2500 == 5500. The charge per head works out to Rs 55.
15. A car has run 10000 miles using 5 tyres interchangably,To have a equal wornout by all tyres. how many
miles
each tyre should have run. Ans: 4000 miles/tyre
Sol:
According to me the answer given is wrong. A car runs on four wheels. The aggregate distance
covered by the
four wheels is 10000 x 4 == 40000 miles. Since 5 tyres are used interchangably the distance covered
by each
tyre will be 40000/5 == 8000 miles.
16. In 80 coins one coin is counterfiet what is minimum number of weighings to find out counterfiet coin
Ans: 4 weighings.
27 27 26
999998
333332
11111
17. There are two trees in a lawn. One grows at a rate 3/5 of the other in 4 years. If the total growth of
trees is 8 ft.
What is the height of the smaller tree after 2 years Ans: 1 1/2 feet (Less than 2 feet).
Sol: After four years the combined height of the two trees is 8 ft.the ratio at that point is 3/5 : 1
therefore 3/5x + x == 8, solving x == 5 The height of the smaller tree after 4 years is 3 ft
At the end of two years it would have been 3/2 ft.
18 A building with height D shadow upto G. What is the height of a neighbouring building with a shadow of
C
feet.
Sol: Using the similar triangle property y == D/G X C

19 Find the no of possible palindromes for the following:


1.tyghhty six (g will be the center)
2.tyhhhtyh twelve (hh, tt, yy as centre
20 2,20,80,100,?? The answer C is not given. It could be 139
21 2* 10, 20*(10/5 sq/10), 80*( 4/4 sq/10), 100 *(1.6/3 sq/10)
A) 121 B) 116 C) D) NONE
22. 10,16,2146,2218,??
Ans: 2290
Sol: Since the answer is not given , I am not able to match my working. My answer to the question is
2290.
16 * 16 is 256 ( the sum of the three digits is 13) That 13 is being maintained in 4 digit number by
retaining the f
irst and last digits for the first number in the serial
23 There are 10 coins. 6 Coins showind head. 4 showing tail. Each coin was randomly flipped (not tossed).
Seven
times successively. After flipping the coins are 5 heads and 4 tails. One is hidden. what will be the
hidden coin
holds?
Ans: The coin will have tail

24 What is the diff in times btwn clk1 and clk2.


1.both show same time 6 hrs back.
25 1 clk gains 1 min an hr,clk2 gains 2 min an hour.like that The difference will be 6 MIN

1 I participated in a race.1/5th of those who are before me are equal to 5/6th


of those behind me.what were the total number of contestants in the
race? (3 Marks)

2 Find the 3 digit number.Third digit is square root of first


digit.Second digit is sum of first and third digits.Find the
number
(3 Marks)

3This problem is of time and work type.i dont remember the exact
question.the question goes like this.some A and some B are able to produce
so many tors in so many hours.(for example 10 A and 20 B are able to
produce 30 tors per hour).Like this one more sentence was given.We have to
find out the rate of working of A and B in
tors/hour.
(4 Marks)

4 A and B play a game of dice between them.The dice consists of colours on


their faces instead of numbers.
A wins if both dice show same color.B wins if both dice show different
colors.one dice consists of 1 red and 5 blue.
what must be the color in the faces of other dice.(i.e how many blue and how
many red?).
Chances of winning for A and B are
even. (5 Marks)

5 A girl has 55 marbles.she arranges them in n rows.the nth row consists of


n marbles,the n-1th row consists of n-1 marbles and so on.what are the
number of marbles in nth row? (3 Marks)

6.This question is of anals type.The question goes like this. I dont remember
the question.some sentences reg tastes of people to poetry are given like all
who like A's Poem like the poems of B like this 7 or 8 sentences were given
questions were based on
this. (8 Marks)

7This question is also of anals types. Four persons are there A,B,C,D.each of
the for persons own either
P,Q,R,S. 10 sentences using if clause were given. we have to find out which
belongs to whom. (8 Marks)

8 This question involves oercentage.i dont remember the


question. (5 Marks)

9 problems on
ages. (6 Marks)

10 Problmes on time and


distance. (5 Marks)

NEWGEN PAPER

1. Which feature of Visual Basic. NET enable you to create multiple methods that have identical
names but different functionality?
Ans: Overloading

2. Which feature of Visual Studio. NET enables an organization to create interoperable


applications that can be accessed over multiple computing platforms?
Ans: Integrated Development Environment

3. Every Java file is saved with the extension .java (eg. prog. java). When it is compiled, the
same java file is converted to a .class file (prog. class) . What does a class file consists of?
a. ByteCode b. Unicode c. Asciicode d. Only text

4. IF is one control statements in Java, What is the syntax of IF statement?


Ans: If (condition) statement;

5. There is a mechanism that binds together code and the data it manipulates. This mechanism
keeps both code and data safe from outside interference and misuse of data. What is this
mechanism called?
a. Polymorphism b. Abstraction c. Encapsulation d. Inheritance

6. What is the functionality of Java Virtual Machine?


a. it saves a java program
b. it is an interpreter of a byte code.
c. it helps to convert a java file into a class file.

7. In the following line "public static void main (String args[ ])" What is the functionality of
public keyword?
a. prevents a member from being used by code outside its class.
b. allows a member to be accessed by a code outside a class in which it is not declared.
c. allows a member to be accessed by a code only by its inherited classes.
d. the member of a class is public with in its own package.

8. Java supports dynamic programming, and has the policy of "write once and use many times".
Identify the functionalities supported by Java?
a. multiple inheritance & polymorphism
b. polymorphism & structured programming.
c. multiple inheritance & structured programming
d. inheritance, polymorphism & multithreading.

9. To allow users to set values on a scale by moving a pointer along a visual scale in Visual
Basic. NET application and to use a control which allows users to avoid choosing a precise
numerical value. Which one of the following Visual Basic. NET control should be used?
The TrackBar control.

10. What is storage size of char datatype in vb .net?


Ans: 2 byte

11. Identify the option from the .NET Framework in which common services such as garbage
collection and security, are automatically provided.
Ans: the common language runtime environment
then something about OS, Unix like diff. between Unix & linux, which OS U use, why. what is
shell. about progs done in lab.

Dont try to fool them . One of my interviewer was a ex-student from WBUT. So they always
know the course.

Prototype of printf ? how to compile C progs in Linux., bytecode, What is OOPs, JVM .

Finally they gave me a C code to solve :-


if ( ..... exp ...)
printf ("World")
else
printf ("Hello")

To get output as "HelloWorld" ... what is exp ? ans - printf("Hello").

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy