LG Soft Written Test July 15, 2014


Posted on :11-03-2016

Technical:

Q1. print % character? 

a. printf(\%)
b. printf(\%)
c. printf(%%) 
d. printf(\%%) 


Q2. What is the output of the following program?

void func1(int (*a)[10]) 
printf(Ok it works); 
void func2(int a[][10]) 
printf(Will this work?); 
main() 
int a[10][10]; 
func1(a); 
func2(a); 

a. Ok it works 
b. Will this work? 
c. Ok it works Will this work?
d. None of the above 


Q3. What is the output of the following program?

main() 
printf(%d, %d, sizeof(c), sizeof(100)); 

a. 2, 2 
b. 2, 100 
c. 4, 100 
d. 4, 4 


Q4. What is the output of the following program?

main() 
int x=5; 
for(;x!=0;x--) { 
printf(x=%d , x--); } 

a. 5, 4, 3, 2,1 
b. 4, 3, 2, 1, 0 
c. 5, 3, 1 
d. none of the above 


Q5. What is the output of the following program?

main() 
int i; 
for(i=0;i<5;i++) 
printf(%d , 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 


Q6. What is the output of the following program?

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

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


Q7. What is the output of the following program?

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 


Q8. What is the output of the following program?

main() 
int i = 0xff; 
printf(%d, i<<2); 

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


Q9. What is the output of the following program?

main() 
char *a = Hello ; 
char *b = World; 
printf(%s, stract(a,b)); 

a. Hello
b. Hello World 
c. HelloWorld 
d. None of the above 


Q10. What is the output of the following program?

main() 
int i = 100; 
printf(%d, sizeof(sizeof(i))); 

a. 2 
b. 100 
c. 4 
d. none of the above 


Q11. What is the output of the following program?

main() 
int x=5; 
printf(x=%d , x--); } 

a. 5, 3, 1 
b. 5, 2, 1, 
c. 5, 3, 1, -1, 3 
d. —3, -1, 1, 3, 5 


Q12. What is the output of the following program?

main() 
char c; 
int i = 456; 
c = i; 
printf(%d, c); 

a. 456 
b. -456 
c. random number 
d. none of the above 


Q13. What is the output of the following program?

main() 
int c = 5; 
printf(%d, main|c); 

a. 1 
b. 5 
c. 0 
d. none of the above 


Aptitude:

Q14. Simplify:
(1.3*1.3*1.3-1)/(1.3*1.3+1.3+1)

a. 0.3
b. 3 1/3
c. -3
d. 1


Q15. 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


Q16. 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


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

a. 0.04
b. 2
c. 0.4
d. None of the above


Q18. 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


Q19. Find the perfect mirror image of figure (X) from the following four alternatives.


a. 1 
b. 2
c. 3 
d. 4


Q20. Find the perfect mirror image of figure (X) from the following four alternatives.


a. 1 
b. 2
c. 3 
d. 4



Q21. 
 


Q22. Statements:
All fruits are vegetables. All pencils are vegetables. All vegetables are rats.

Conclusions:
I. All fruits are rats.
II. All pencils are rats.
III. 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


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

a. A, the, an
b. An, the, the
c. A, an, the
d. An, an, the


Q24. What is the synonym of the underlined word: The jacket is impervious to water.

a. Dirty
b. Pure
c. Impenetrable
d. Favorable





Placement Papers for All Companies





FreshersLive - No.1 Job site in India. Here you can find latest 2023 government as well as private job recruitment notifications for different posts vacancies in India. Get top company jobs for both fresher and experienced. Job Seekers can get useful interview tips, resume services & interview Question and answer. Practice online test free which is helpful for interview preparation. Register with us to get latest employment news/rojgar samachar notifications. Also get latest free govt and other sarkari naukri job alerts daily through E-mail...
DMCA.com Protection Status