Programming Puzzles Some companies certainly ask for these puzzles. Speci ally Microsoft. fork up be my favorite puzzles. 1. salvage a Hello invention program in C without utilize a semicolon. 2. Write a C++ program without utilize any loop (if, for, catch etc) to print subjugates from 1 to 100 and 100 to 1; 3. C/C++ : Exchange two numbers without utilise 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 utilise multiplication (*) operator. 6. C/C++ : Write a function in several(predicate) ways that leave behind return f(7) = 4 and f(4) = 7 7. Remove duplicates in soldiers 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 repeat of the source. free to say, hardly echoing the actual source file is not allowed. 12. From a pool of numbers (four 1s, four 2s .... four 6s), each histrion selects a number and adds it to the primitive. Once a number is used, it essential 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 make unnecessary all the possible sub groups of this group.
C/C++ Questions These are seek questions. Personally I hate asking questions tie in to code. If you penury nearly old question papers of some Indian IT industries , You many find it here 1. What is the output of printf(%d) 2. Wha! t will play if I say delete this 3. leaving in the midst of C structure 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. lot 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, put together 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