2010 Honeywell Placement Paper: 1. How many cubes have only one face painted? (1) 8 (2) 16 (3) 24 (4) 32 2. How many cubes have only two faces painted? (1) 0 (2) 16 (3) 24 (4) 32 3. How many cubes have only four faces painted? (1) 0 (2) 8 (3) 12 (4) 16 4. How many cubes have no faces painted? (1) 0 (2) 8 (3) 16 (4) 24 5. 'Win' is related to 'Competition' in the same way as 'Invention' is related to? (1) Discovery (2) Experiment (3) Trial (4) Laboratory 6. Which of the following is illegal (a)void v; (b)void *v; (c)void **v; (d)all are legal 7. #define int INTEGER/*line1*/ #define INTEGER int/*line 2*/ main() { INTEGER p=10;/*line 5*/ printf("%d",p); } o/p? (a) compiler error at line 1 (b) compiler error at line 2 (c) compiler error at line 5 (d) No error,prints 10 ans:c 8. main() { int counter=1; for(;;) { counter++; if(counter>9) break; } } in the above program (a)error b coz for should have parameters (b)error bcoz 2 semicolons in a for loop are invalid (c)no error,loop is executed once (d) no error ,loop is executed 10 times 9. main() { char str={ H , E , L , L , O , \0 } printf("%s/n",str+1); } o/p? (a)prints ELLO (b)prints HELLO (c)prints ILLO (i.e. H is incremented by 1) (d)... 10. Binary search tree is used in a) sorting b) searching c) indexing d) all the above 11. Given a tree..write the preorder traversal 12. Given an infix expression. write its postfix 13. First general purpose microprocessor a) 2002 b)4004 c)8080 d)8085 14. ____flag is not used in 8085 jump instructions 15. SNMP is used in which layer 16. Banker's algorithm is used for 17. Belady's anomaly is related to___ 18. How can u increase ports of a microprocessor? a)8255 b)8259 c)8253 d)8251 19 Which of the following maintains a constant time(best,worst,average)? a)searching b)sorting c)indexing d)none 20. In a database a table is stored not fully..it is an example of
No comments:
Post a Comment