Programming Puzzles Some companies certainly ask for these puzzles. Speci ally Microsoft. infix argon my favorite puzzles. 1. draw up a Hello aim program in C without utilize a semicolon. 2. Write a C++ program without utilize any loop (if, for, appropriate etc) to print patterns from 1 to 100 and 100 to 1; 3. C/C++ : Exchange two numbers without victimization a temporary variable. 4. C/C++ : Find if the tending(p) number is a power of 2. 5. C/C++ : regurgitate x by 7 without victimization multiplication (*) operator. 6. C/C++ : Write a function in several(predicate) ways that get out return f(7) = 4 and f(4) = 7 7. Remove duplicates in tramp 8. Finding if there is any loop inside united list. 9. Remove duplicates in an no key access database without using an array 10. Convert (integer) number in binary without loops. 11. Write a program whose printed output is an exact copy of the source. uncalled-for to say, hardly echoing the actual source file is not allowed. 12. From a pool of numbers (four 1s, four 2s .... four 6s), each thespian selects a number and adds it to the be. Once a number is used, it must(prenominal) be removed from the pool. The winner is the person whose number makes the total personify 31 exactly. 13. Given an array (group) of numbers drop a line all the possible sub groups of this group.
C/C++ Questions These argon seek questions. Personally I hate asking questions associate to code. If you penury or so old question papers of some Indian IT industries , You many find it here 1. What is the output of printf(%d) 2.! What will play if I say delete this 3. leaving in the midst of C expression and C++ structure. 4. Diffrence between a grant operator and a copy constructor 5. What is the difference between overloading and overridding? 6. Explain the need for virtual(prenominal) Destructor. 7. elicit we have Virtual Constructors? 8. What are the different types of polymorphism? 9. What are Virtual Functions? How to implement...If you lack to get a full essay, place it on our website: OrderCustomPaper.com
If you want to get a full essay, visit our page: write my paper
No comments:
Post a Comment