Friday, May 18, 2012
0
HCL Comnet Placement Paper-2 2012
Welcome to HCL Comnet Placement Paper 2012. Here you will find HCL Comnet Placement Paper Pattern and Download questions of HCL Comnet Placement Paper February 2012 with Answers & Solutions. Company :- HCL. Category :- Placement Papers. Location :- Gurgaon - Delhi / NCR HCL Comnet Placement Paper February 2012:- 1. There were 36 chairs. how many ways can they be placed such that all rows have equal no. of chairs and atleast three chairs are there in each row and there are atleast three rows. Ans:- 5 ways. 2. There are 27 balls, of which 1 is heavier. given a balance how many times you need to weigh to find out the odd ball. Ans:- 3 Weighs. 3. Product of three consecutive nos. 210. What is the sum of two least numbers Ans:-11. 4. Whether all recusive pgm can be writtten iteratively? Ans:- yes 5. What is the type of the variable b in the following declaration? #define FLOATPTR float* FLOATPTR a,b; a) float b) float pointer c) int d) int pointer 6. In the following code; #include<stdio.h> main() { FILE *fp; fp= fopen("trial","r"); } fp points to: a) The first character in the file. b) A structure which contains a "char" pointer which points to the first character in the file. c) The name of the file. d) None of the above. 7. Perimeter of the back wheel = 9 feet, front wheel = 7 feet on a certain distance, the front wheel gets 10 revolutions more than the back wheel .What is the distance? Ans : 315 feet. 8. In the following code, is p2 an integer or an integer pointer? typedef int* ptr ptr p1,p2; Ans. Integer pointer 9. Point out the error in the following program main() { const int x; x=128; printf("%d",x); } Ans. x should have been initialized where it is declared. 10. What would be the output of the following program? main() { int y=128; const int x=y; printf("%d",x); } a) 128 b) Garbage value c) Error d) 0 |
Subscribe to:
Post Comments (Atom)
0 Responses to “HCL Comnet Placement Paper-2 2012”
Post a Comment