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

Hyderabadi IBM Test And Interview - 2007 Feb 15

1 Answers   IBM,


TCS PLACEMENT PAPERS -------------- Placement Paper 3

1 Answers   TCS,


CTS Placement Paper sql-plsql

1 Answers   CTS,


INFOSYS PLACEMENT PAPERS ----- Placement Paper 11

1 Answers   Infosys,


Infosys paper may 22nd 2007

21 Answers   Infosys,






Cisco placement papers -----------placement paper 1

4 Answers   Cisco,


INFOSYS PAPER - 11 JUN 2006 - CHENNAI

1 Answers   Infosys,


SATYAM PLACEMENT PAPERS

2 Answers   Satyam,


NIC Placement Papers

27 Answers   BM, Honeywell, NIC, Puneet,


database management systems

2 Answers   Infosys,


Accenture Interview rounds and Placement Procedure

2 Answers   Accenture, Infosys,


igate papers

2 Answers   CTS,


Categories