Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


LG SOFT -nov 30,2006 campus paper

Answers were Sorted based on User's Feedback



LG SOFT -nov 30,2006 campus paper..

Answer / joy graceson

about lg soft paper: conducted on: 30/11/2006 at CDAC chennai


All are multiple choice (45 c questions, 15 aptitude) 1 hour duration

1. fseek() is used for:

2. calloc() returns -----

3. int a=10,b=3;
float c;
c=a/b;
printf("%f",c);

4. If we loose the head pointer in a linked list can we free the memory

5. main ()
{
struct asd{
struct asf{
int a;
int b;
};
int c;
}x;
}
a. compiler error
b. no error
c. rntime error
d. none
ans: a compiler error

6. struct {
char a;
long i;
char b;
char c;
}n;
how many bytes for the struuct in 32 bit compiler
(hint : it hav padding concept)
ans :12 bytes

7. int a=030;
printf("%d",printf("%o",a));


ans : 242

8. int a=1,b=2,c=3;
printf("%d%d",a,b,c);
what is the o/p?

ans : 1,2

9.syntax for passing command line arguments:

10. array definition

11. char a[]="ggfjg";
char b[];
b=a;
printf("%s%s",a,b);
what will b the o/p?

12. int a=5;
printf("%d%d%d",a,a<<2,a>>2);
o/p ?

ans:5201

13. main()
{
int i;
for(i=0;i<5;i++)
printf("%d",prime());
}
prime(){
static int i;
i=0;
return(i++);
}

14. unsigned in i=10;
while(i>=0)
i--;
how many times the loop will continue?
15. int a[]={0,1,2,3,4};
int *p;
p=a+4;
for(;p>=a;p--)
printf("%d",*p);
}
o/p?
ans:4 3 2 1 0
16.int i=1;
i=2*i++;
printf("%d",i);

17. wat is the declaration and initialization of a structure given below.

srtuct node{

18. A program based on strrchr()

19. given a tree...and asked to findout preorder


20.
rest of the questions are similar to the paper found in net for lg
like prgs based on memset, strrchr..etc.,

APTITUDE:


1. suppose two cars travel from same point in opposite directions and
travel 8m ,then each

car took left and travelled for 6m then what is the distance between the
two cars:

ans: 20

2. 64,16,4, 1/4, 1/16,---- fill in the next term

3. 4 years ago father was 9 times older than his son. after 2 years
father was 40.what is

the present age of his son

4. a monkey jumps 3ft up and fell down 2ft.Then in how many jumps does it
vud reach 20 ft

5. A person eats 100 bananas in 5 days.Each day he eats 6 more bananas
then how many

bananas did he ate on the first day

6. 'A' is taller than 'B'
'C' is shorter than 'A'
who is the shorter among B and C

7. P is a point in a line segment AB.then
given 4 conditons like AB>PA

8.



ABOUT INTERVIEW:
48 attended the test and 26 were shortlisted.... 2 tech interview and 1 hr
interview...
those who pass d 1st one vud go to next round
tech 1 lasted for around 30-50 min
tech 2 was for around 15 min
and hr is for 15 min

some of the questins which we remember are presented below:

1.about structure padding...write code and explain its advantage
(imp....that is important)

2.tell me about urself

3.about malloc,calloc ,realloc functions..there difference
vat do dey return (imp)

4.process and thread differnce...tell me example...which one is
advantageous

5.reverse linked list using recursion


6.recursion...its need and usage...we hav loop then y do v go for recursion

7.do u know any string functions...
yes sir...strcmp,strcpy...
then write ur own code for string compare without using predefined
functions..
to 1 guy dey asked strstr code of our own


8.what r the real time os u hav worked on.do u know anything abt rtlinux

9.about dangling pointer

10.about project (important)
like...
a) ur role
b) microcontroller used
c)about the coding...cross compilers used....microcontroller
features
d)what is cross compiler
e)what is RS232...what does 232 signify in it

11. about function pointers and its application

12.double linked list prg

13. complexities of diff sorting and searching algo

14.using realloc increase mem

15.i need to allocate 100 bytes...but this 100 bytes are not free
continuosly in memory..
then can u allocate it using malloc....
if u cant allocate vat does it return

16. there is a linked list a->b->c->d->e
i dont have the starting address node... i hav only the address of c.
i hav another new node n.write a function say callback() which gives
the output as
a->b->n->c->d->e

17. how to pass command line arguments

18.*p++ ,++*p what is d difference between them

19. -17 is given.find out the no. of 1's in -17 binary representation

20.what does malloc return if it fails

21.write about ARM architecture

22.why do v need cross compilers

23.tell me some thing about thumb instruction

24.what is semaphore...mutual exclusion

25.difference between mutex and semaphore

26.after calloc if we reallocte mem..but v dont hav sufficient mem...what
does it do...if it

allocates mem in some new page
who is going to take care of copying the contents of previous calloc to
this reallocated

mem

27.main()
{
char *p;
p=calloc(1,10);
strcpy(p,hello);
test(p);
printf("%s",p);
free(p);
}
test(char *q)
{
free(q);
}
what is d o/p and why?

28. insert a node in linked list

29.difference between #define and typedef

30.about memory leakage

31.how to shrink d size using realloc

32.difference between function prototype nad declaration

33.swapping two variables using call by reference without using 3rd
varaible

34.can u write OS programs in application layer and run it

35.latest technologies in wireless

36. when a prg is written how does it get stored in memory...like where
does static variable

get stored

37.



HR ROUND:

1.tell me about urself(asked in every round)

2.tell me about ur educational background

3.what is the effect of IT on common man
i said it doesn't had a gr8 impact on every common man....he said that
der r few
affects...tell me 3 examples abt it...but dont try to prove me wrong

4.ur strategy to work

5.what did u gain from ur college life

6.what still remains with u after ur college life

7.what is embedded system

8.give me 3 examples abt embedded sys

9.ur expected salary

10.do u hav any query with u to ask

11. why do u want to b an engineer

12.why do u hav a year gap in between

13.brief me about IT industry

14.what r ur achievements

15.why should i hire u

16.why do u hav variations in ur b.tech % ..what went wrong


17.tell the name of CEO of any 5 companies and CEO of lg

18.

for some of them they hav asked questions which are irrelevant like:

a) how many bones does a human have

b)what is C6H6

c)about periodic table...inert gases...etc.,



Finally they hav chosen 5 from the shortlisted 26 for the job.

Thanx to all my classmates who helped me to write the questions asked to
them.

Hope these questions are useful to all the job aspirants...


Best of luck.....

Is This Answer Correct ?    1 Yes 0 No

LG SOFT -nov 30,2006 campus paper..

Answer / pallavi agnihotro

placement pepers of lgsoft hiring in the vector institute
hyd

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Placement Papers Interview Questions

InterGraph Placement Papers ------ Intergraph placement Paper 1

1 Answers   InterGraph,


nomura

1 Answers   Apple, Nomura, TCS,


Verifone PLACEMENT PAPERS ------ Verifone Placement Paper 2

1 Answers   Verifone,


Google Campus Selection Procedure Chennai

2 Answers   Google, PRS Group,


ANZ PLACEMENT PAPERS ------ placement paper 1

2 Answers   ANZ,


Question papers of bpcl

3 Answers   BPCL Bharat Petroleum, Usha Martin,


Persistent Placement Paper (Dec 2 2010)

2 Answers   Persistent,


RAMCO PLACEMENT PAPERS ---- Placement Paper 4

1 Answers   Ramco,


SNAPDEAL QUESTIONS 1. A train is going at a speed of 60kmph towards Delhi and returned back at a speed of 30kmph. What is its average speed? ANS : (2*30*60)/(30+60) = 40kmph 2. How many different 4 letter words can be framed that have at least one vowel? ANS : 264 - 214 (total no of 4 digits words – no of words with no vowels) 3. Write an algorithm to find out a number from an array of numbers where only one number occurs once and rest all occurs twice. ANS : XOR all the numbers ,you will get the number with single occurrences . 4. Which among the following have the product of the distance between opposite sides of a regular polygon and it side equals one fourth of the area. A. hexagon B. octagon C. n=16 D. n=18 ANS : n=16.(area of regular polygon = apothem*perimeter/2 Apothem = distance between opposite sides/2 Area = (opp_side_dist * n * a )/4 Product of opp_side_dist and side of reg. polygon = opp_side_dist * a For n= 16 the ration becomes 1:4 5. Which of the following cannot be a relation between two variables? ANS = 4th diagram. 6.what will be the output of this program Void print (int n) { If (n>0) { printf(“hello”); print(n-1); } printf(“world”); } ANS : N times hello followed by N+1 times world. 7. Which among the following cannot be used for future prediction? ANS : 4th Diagram. 8. There are 25 horses. We have to find out the fastest 3 horses In one race maximum 5 horses can run. How many such races are required in minimum to get the result. ANS : 7 races (A. first run all horses = 5 races, eliminate 4th 5th of all races. B. Run horses who came 1st in those 5 races = 1 race , the horse coming first is the fastest Run horses a. 2nd and 3rd with the fastest horse (in first time race A) b. 2nd and 3rd coming horse in B. c. The horse who came 2nd with the horse(who came 2nd in race B) in race A You will have the fastest 3 horses.) 9. In a game of rolling dice you are given 2 dice and you have to roll them. Whatever is the outcome the player will win that many dollars. What should the game owner charge each player (optimum) so that he doesn’t have to bear any loss? ANS : $7 10. We have a function REV(“string”,m,n).This function is capable of reversing the caharacters in the string from mth location to nth location. e.g. REV(“abcd”,2,3) &#61672; the output will be acbd We need to swap a string from a position,e.g. SWAP(“abcdefg”,4) &#61672; output needs to be efgabcd. How can the REV function used do this. ANS : L = string length,N= position given in SWAP function. SWAP(“abcdefg”,4) = REV(REV(REV(“abcdefg”,N+1,L),1,N),1,L).

1 Answers   SnapDeal,


Type of descriptive paper for bank exam

1 Answers  


HCL placement papers ---------placement paper 2

3 Answers   HCL,


placement papers of panacea biotech ltd., mohali. for RA

2 Answers   Nandi, Panacea,


Categories