LG-Soft Placement Paper |   14732

LG-Soft Placement Paper

                                          LG-Soft - Model Placement Paper

Aptitude Questions:

1. Find the least number of students in an exam so that the percentage of successful students should be 76.8%:

(a) 500
(b) 250
(c) 125
(d) 1000

2. Aman sends a certain quantity of rice for 30 girls in a hostel. One day some girls were absent. Therefore, the quantity of rice was spent in the ratio of 6: 5. How many girls were present on that day?

(a) 24
(b) 20
(c) 15
(d) 25

3. What is the ratio of buy price and sell price if there is deep loss of 12 1/(2 )%

(a) 7 : 8
(b) 8: 7
(c) 2: 25
(d) 25: 2

4. Find H.C.F. of 3/5, .36, .24

(a) .04
(b) 2
(c) .4
(d) None of the above

5. Simplify:

(1.3*1.3*1.3-1)/(1.3*1.3+1.3+1)

(a) .3
(b) 31/3
(c) ..3
(d) 1

6. Statements:

All fruits are vegetables. All pencils are vegetables. All vegetables are rats.

Conclusions:
1. All fruits are rats.
2. All pencils are rats.
3. Some rats are vegetables.

A. None follows
B. Only I and II follow
C. Only II and III follow
D. Only I and III follow
E. All follow

7. The jacket is impervious to water.

A) Dirty
B) Pure
C) Impenetrable
D) Favorable

8. The officer received _____ official letter from _____ Ministry of IT in _____ Central Government.

A) A, the, an
C) An, the, the
B) A, an, the
D) An, an, the

9. Raman is sitting to the immediate left of Harry but not next to Kamal. Mahesh is sitting to the right of Kamal. If the four friends are sitting in a circle who is sitting to the immediate right of Harry?

(1) Mahesh 
(2) Kamal
(3) Raman 
(4) Harry
(5) Cannot be determined

10. If 1 is subtracted from the last digit of each of the above numbers the sum of the digits of how many of them are prime numbers?

(1) None 
(2) Two
(3) One 
(4) Three
(5) All five

11. If the digits in each of the above numbers are written in reverse order which will be the second highest number?

(1) 251 
(2) 359
(3) 487 
(4) 526
(5) 972

12. Find the output of the following program

int *p,*q;
p=(int *)1000;
q=(int *)2000;
printf("%d",(q-p));
Ans: 500

13. A power station generates 500MW of power and exhausts 800MW as waste heat into the environment. What is the efficiency of the power station?

a) 61.5%
b) 38.5%
c) 62.5%
d) 23% 

14. Among M, N, T, P and R each having different weight, who is the heaviest ?
I. T is heavier than P and M but lighter than N who is not the heaviest.
II. M is lighter than P.

15. How is D related to T ?
I. D’s brother is father of T’s sister.
II. T’s brother is son of D’s brother.

Technical Questions:

1.
main()
{
{
unsigned int bit=256;
printf(“%d”, bit);
}
{
unsigned int bit=512;
printf(“%d”, bit);
}
}

a. 256, 256
b. 512, 512
c. 256, 512
d. Compile error

2.
main()
{
int i;
for(i=0;i<5;i++)
{
printf("%d\n", 1L << i);
}
}

a. 5, 4, 3, 2, 1
b. 0, 1, 2, 3, 4
c. 0, 1, 2, 4, 8
d. 1, 2, 4, 8, 16

3.
main()
{
signed int bit=512, i=5;
for(;i;i--)
{
printf("%d\n", bit = (bit >> (i - (i -1))));
}
}

a. 512, 256, 128, 64, 32
b. 256, 128, 64, 32, 16
c. 128, 64, 32, 16, 8
d. 64, 32, 16, 8, 4

4.
main()
{
signed int bit=512, i=5;
for(;i;i--)
{
printf("%d\n", bit >> (i - (i -1)));
}
}

a. 512, 256, 0, 0, 0
b. 256, 256, 0, 0, 0
c. 512, 512, 512, 512, 512
d. 256, 256, 256, 256, 256

5.
main()
{
if (!(1&&0))
{
printf("OK I am done.");
}
else
{
printf(“OK I am gone.”);
}
}

a. OK I am done
b. OK I am gone
c. compile error
d. none of the above

6.
main()
{
if ((1||0) && (0||1))
{
printf("OK I am done.");
}
else
{
printf(“OK I am gone.”);
}
}

a. OK I am done
b. OK I am gone
c. compile error
d. none of the above

7.
main()
{
signed int bit=512, mBit;
{
mBit = ~bit;
bit = bit & ~bit ;
printf("%d %d", bit, mBit);
}
}

a. 0, 0
b. 0, 513
c. 512, 0
d. 0, -513
8.
main()
{
int i;
printf("%d", &i)+1;
scanf("%d", i)-1;
}

a. Runtime error.
b. Runtime error. Access violation.
c. Compile error. Illegal syntax
d. None of the above

9.
main(int argc, char *argv[])
{
(main && argc) ? main(argc-1, NULL) : return 0;
}

a. Runtime error.
b. Compile error. Illegal syntax
c. Gets into Infinite loop
d. None of the above

10.
main()
{
int i;
float *pf;
pf = (float *)&i;
*pf = 100.00;
printf("%d", i);
}

a. Runtime error.
b. 100
c. Some Integer not 100
d. None of the above

11.
main()
{
int i = 0xff;
printf("%d", i<<2);
}

a. 4
b. 512
c. 1020
d. 1024

12.
#define SQR(x) x * x
main()
{
printf("%d", 225/SQR(15));
}

a. 1
b. 225
c. 15
d. none of the above

13.
union u
{
struct st
{
int i : 4;
int j : 4;
int k : 4;
int l;
}st;
int i;
}u;

main()
{
u.i = 100;
printf("%d, %d, %d",u.i, u.st.i, u.st.l);
}

a. 4, 4, 0
b. 0, 0, 0
c. 100, 4, 0
d. 40, 4, 0

14.
union u
{
union u
{
int i;
int j;
}a[10];
int b[10];
}u;

main()
{
printf("%d", sizeof(u));
printf("%d", sizeof(u.a));
printf("%d", sizeof(u.a[0].i));
}

a. 4, 4, 4
b. 40, 4, 4
c. 1, 100, 1
d. 40 400 4

15.
main()
{
int (*functable[2])(char *format, ...) ={printf, scanf};
int i = 100;
(*functable[0])("%d", i);
(*functable[1])("%d", i);
(*functable[1])("%d", i);
(*functable[0])("%d", &i);
}

a. 100, Runtime error.
b. 100, Random number, Random number, Random number.
c. Compile error
d. 100, Random number
 

feedback