For Placement Papers & Interview Questions Of Other Companies, Register At http://jobspert.
com
LG Soft India Placement Paper Feb 2009
Hai to all , this is mahesh , today we have given lg soft company written exam . total 83 members attended the exam , the cut off was 60% through out the academic career , the pattern is , one written exam , two technical rounds , one hr . written test contains 45 c language bits and 15 aptitude questions. Total 60 marks , duration is one hour.total 40 members cleared the exam . some of the questions are given below , C-LANGUAGE BITS : All bits are based on basics , totally not tough technical paper .just time management , I have given some answers for some , as for I know , don,t completely demand on that , i.e questions r correct , answers are some r correct and some r partly correctly. 1.#include void main() { char *p="the"; char *pp="hai"; int o=strcat(p,pp); printf("\n%d",o); } ANS : Run time error No complile error 2.#include void main() { int a[4]={123,2,3,4}; char *p; p=a; printf("\n%d",*((int*)p+1)); } ANS : o/p is 2 . because in printf statement char pointer increments and converted to integer pointer and prints the value in the addrees i.e 2 3.#include void main() {
For Jobs Anywhere In India, Register At http://jobspert.com
For Placement Papers & Interview Questions Of Other Companies, Register At http://jobspert.com int a[5]={111,222,333,444,555}; int *p=a; int *pp=p; printf("\n%d",*(pp+3)); } ANS : 444 4. struct { char a; char m; int i; char *p; char b; char c; }n; how many bytes for the struuct in 32 bit compiler (hint : it hav padding concept)i.e among all highest data item is int which takes 4 bytes , so complier allocates memory in multiples of 4 .for first two chars occupy 2 bytes , and next 2 bytes of free memory and next 5-8 for integer , 9-12 pointer , 13-14 last two chars and 15-16 according to structure padding ans :16 bytes 5.printf("%d",-1<<4); ANS:f f f f f f f 0 6:char *a="hello"; a[0]=,H,; pritnf("%s",a); ANS : run time error. 7. #define CUBE(X) x++*x++*x++ Main() { Int a,b=3; a=CUBE(b); Printf("%d",a); } Ans: 27
For Jobs Anywhere In India, Register At http://jobspert.com
For Placement Papers & Interview Questions Of Other Companies, Register At http://jobspert.com 8.when array is passed as parameter to a function , the address of the first element of the array is passed. 9.main() Int i=1; If(i) { Int i=2; Printf("%d",i); } Printf("%d",i); } Ans: 2 1 10. for(;;) printf("%d",1); ans: infinite loop printfing 1 11.main() Int a,b=2,c=4; If(a=3!=3) Printf("%d",b); Else Printf("%d",c); Ans : 4 12. Main() { Int u=9,b=2; If(u=7) Printf("%d",b); Else Printf("%d",u); Ans: 2 13. Main() int a[]={1,2}; int *p=a; p=(int *)malloc(20); printf("%d",p);
For Jobs Anywhere In India, Register At http://jobspert.com
For Placement Papers & Interview Questions Of Other Companies, Register At http://jobspert.com ans: garbabe value 14. Uninitialized Static variables store in basic storage segment . APTITUDE QUESTIONS 1. 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 ANS :- 1/64 3. 4 years ago father was 9 times older than his son. after 2 years father was 42.what is the present age of his son. ANS :- SON :8 , FATHER : 40 4. a monkey jumps 3ft up and fell down 2ft.Then in how many jumps does it vud reach 20 ft ANS :- 18 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 ANS :- 8 6. ,A, is taller than ,B, ,C, is shorter than ,A, who is the shorter among B and C ANS :- can,t tell. 7. P is a point in a line segment AB.then given 4 conditons like___ a. AP=AB b. AP>AB C. AB>AP ANS :- c
For Jobs Anywhere In India, Register At http://jobspert.com
For Placement Papers & Interview Questions Of Other Companies, Register At http://jobspert.com
8.ANOTHER QUESTION on ages simple one. 9.venky in a class is 45 th good , 46 bad person total how many students in class. ans: 90 students 10. Find out Odd diagram from four diafgrams 11. Water in glass then which of the following is the corresponding one Mail Envelope Book Pen Ans: I to dint understand the question 12.remaining four bits r from reasoning like data interpretation. And ...
For Jobs Anywhere In India, Register At http://jobspert.com