Some companies certainly ask for these puzzles. Speci ally Microsoft. present are my favorite puzzles.
1. Write a Hello innovation program in C without utilize a semicolon.
2. Write a C++ program without utilize any loop (if, for, charm etc) to print numbers from 1 to 100 and 100 to 1;
3. C/C++ : Exchange two numbers without using 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 using multiplication (*) operator.
6. C/C++ : Write a function in several(predicate) ways that will return f(7) = 4 and f(4) = 7
7. Remove duplicates in array
8. Finding if there is any loop inside coupled 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. Needless to say, hardly echoing the actual source file is not allowed.
12. From a pool of numbers (four 1s, four 2s .... four 6s), each player selects a number and adds it to the total. Once a number is used, it must 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 write all the possible sub groups of this group.
C/C++ Questions
These are seek questions. Personally I hate asking questions related to code. If you penury some 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. Difference 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. Can 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, order it on our website: Orderessay
If you want to get a full essay, wisit our page: write my essay .
No comments:
Post a Comment