eMule Plus programmers’ requirements

1. Reverse a string (e.g. array of chars) in place. 2. Reverse a linked list. 3. Count all the bits that are on in a byte. 4. Let’s say we have (fixed size) array of bool, which is filled by false, except one element, which is true. You don’t have direct access to elements of that array, but have function, IsTrueElementInRange that accepts range of elements (e.g. from n to m) and returns true or false. What’s the best algorithm for finding true element using that function, and what’s its name? 5. Let’s say we have (fixed size) array of int, which is filled by numbers from 1 to 5. Calculate counts of each number in the array (e.g. how many 1′s there are in array, how many 2′s and so on). Calculation should be made in single array walk. 6. What’s the purpose of virtual destructor in C++? 7. What class is the base of all window classes in MFC? 8. What class is the base of most of other classes in MFC and what are the services it provides? 9. How do you walk through vector’s elements in STL? 10. Let’s say you created dialog in MFC, put RichEdit control on it, and dialog failed on create. What did you forget to do? 11. What happens if you call new operator to create some object and it fails because out of memory? 12. How do you synchronize two or more threads? 13. Implement simple read-write lock mechanizm, which allows multiple readers simultaneously, but only one writer (of course, while we write, noone can read until we finish). 14. What is the function you call to get new interface in COM? 15. What interface should COM object provide in order to be used in script languages, like VBScript, Javascript? 16. What does a sequence diagram represent? 17. What is the difference between a class and an object? 18. What are the following examples of: Factory, Prototype, Adapter, Bridge, Composite and Iterator? 19. What is a class factory and why would you want to use one? 20. How would you create a singleton in C++? (Show what should be in the .cpp and .h files.) Answer only those questions that you know
  • del.icio.us
  • Google Bookmarks
  • Reddit
  • StumbleUpon
  • Yahoo! Buzz

0 Responses to “eMule Plus programmers’ requirements”


Comments are currently closed.