Monday, October 19, 2009

FAQS

C  FAQS


  • General


    • How can I convert a number to a string?
    • How can I convert a string to a number?
    • When should a type cast be used?
    • What is the difference between NULL and NUL?
    • Differentiate between functions read() and write().
    • What is static memory allocation and dynamic memory allocation?
    • Is it possible to execute code even after the program exits the main() function?
    • Can include files be nested?
    • Difference between calloc and malloc?


  • Functions


    • How do I write a function that takes variable number of arguments?
    • Difference between printf and sprintf?


  • Pointers


    • How do you print an address?
    • What is a const pointer?
    • What is the difference between const char *p, char const *p, and char* const p?
    • What is garbage collection?
    • When should a far pointer be used?


  • Strings


    • Write a fucntion that will reverse a string.
    • How to use function strdup( ) in a program?


  • Macros


    • How do you override a defined macro?
    • How can you check to see whether a symbol is defined?
    • What is the benefit of using an enum rather than a #define constant?
    • What's the difference between a null pointer, a NULL macro, the ASCII NUL character and a null string?


Data Structures FAQS

  • Define Abstract data types (stack, queue, dequeue ... etch)
  • Describe Stacks and name a couple of places where stacks are useful.
  • What is the difference between Stack and Queue?
  • Define hashing
  • Describe one simple rehashing policy.
  • Describe Depth first Search algorithm.
  • What are the advantages and disadvantages of B-star trees over Binary trees?

C++ FAQS

  • What are C++ storage classes?
  • What is a Null object?
  • When does a name clash occur?
  • What is polymorphism?
  • What are proxy objects?
  • Difference between C structure and C++ structure?
  • What is Constructor ? How it is called ?
  • Differentiate between "new" and "malloc" ?
  • Difference between overloading and overriding?
  • Why doesn't C have nested functions?
  • Describe the main characteristics of static functions.
  • What is passing by reference?
  • When do use "const" reference arguments in function?
  • What is virtual function?
  • What is the use of 'using' declaration?
  • What is assignment operator?
  • What is copy constructor?
  • When are copy constructors called?
  • What is conversion constructor?
  • What is difference between template and macro??
  • When are temporary variables created by C++ compiler?
  • What is Memory alignment??
  • What do you mean by Stack unwinding?


* We will also add FAQS for other technology.
* If you would like to share any FAQs with us please do mail them to : pgaddam.blog@gmail.com

No comments:

Post a Comment