Thursday, August 30, 2007

TECHNICAL INTERVIEW

C- QUESTIONS
  1. What does static variable mean?

  2. What is a pointer?

  3. What is a structure?

  4. What are the differences between structures and arrays?

  5. In header files whether functions are declared or defined?

  6. What are the differences between malloc() and calloc()?

  7. What are macros? what are its advantages and disadvantages?

  8. Difference between pass by reference and pass by value?

  9. What is static identifier?

  10. Where are the auto variables stored?

  11. Where does global, static, local, register variables, free memory and C Program instructions get stored?

  12. Difference between arrays and linked list?

  13. What are enumerations?

  14. Describe about storage allocation and scope of global, extern, static, local and register variables?

  15. What are register variables? What are the advantage of using register variables?

  16. What is the use of typedef?

  17. Can we specify variable field width in a scanf() format string? If possible how?

  18. Out of fgets() and gets() which function is safe to use and why?

  19. Difference between strdup and strcpy?

  20. What is recursion?

  21. Differentiate between a for loop and a while loop? What are it uses?

  22. What are the different storage classes in C?

  23. Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?

  24. What is difference between Structure and Unions?

  25. What the advantages of using Unions?

  26. What are the advantages of using pointers in a program?

  27. What is the difference between Strings and Arrays?

  28. In a header file whether functions are declared or defined?

  29. What is a far pointer? where we use it?

  30. How will you declare an array of three function pointers where each function receives two ints and returns a float?

  31. what is a NULL Pointer? Whether it is same as an uninitialized pointer?

  32. What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?

  33. What does the error 'Null Pointer Assignment' mean and what causes this error?

  34. What is near, far and huge pointers? How many bytes are occupied by them?

  35. How would you obtain segment and offset addresses from a far address of a memory location?

  36. Are the expressions arr and &arr same for an array of integers?

  37. Does mentioning the array name gives the base address in all the contexts?

  38. Explain one method to process an entire string as one unit?

  39. What is the similarity between a Structure, Union and enumeration?

  40. Can a Structure contain a Pointer to itself?

  41. How can we check whether the contents of two structure variables are same or not?

  42. How are Structure passing and returning implemented by the complier?

  43. How can we read/write Structures from/to data files?

  44. What is the difference between an enumeration and a set of pre-processor # defines?

  45. what do the 'c' and 'v' in argc and argv stand for?

  46. Are the variables argc and argv are local to main?

  47. What is the maximum combined length of command line arguments including the space between adjacent arguments?

  48. If we want that any wildcard characters in the command line arguments should be appropriately expanded, are we required to make any special provision? If yes, which?

  49. Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?

  50. What are bit fields? What is the use of bit fields in a Structure declaration?


C++ QUESTIONS

  1. What is a class?
  2. What is an object?
  3. What is the difference between an object and a class?
  4. What is the difference between class and structure?
  5. What is public, protected, private?
  6. What are virtual functions?
  7. What is friend function?
  8. What is a scope resolution operator?
  9. What do you mean by inheritance?
  10. What is abstraction?
  11. What is polymorphism? Explain with an example.
  12. What is encapsulation?
  13. What do you mean by binding of data and functions?
  14. What is function overloading and operator overloading?
  15. What is virtual class and friend class?
  16. What do you mean by inline function?
  17. What do you mean by public, private, protected and friendly?
  18. When is an object created and what is its lifetime?
  19. What do you mean by multiple inheritance and multilevel inheritance? Differentiate between them.
  20. Difference between realloc() and free?
  21. What is a template?
  22. What are the main differences between procedure oriented languages and object oriented languages?
  23. What is R T T I ?
  24. What are generic functions and generic classes?
  25. What is namespace?
JAVA QUESTIONS

  1. What is the difference between an Abstract class and Interface?
  2. What is user defined exception?
  3. What do you know about the garbage collector?
  4. What is the difference between java and c++?
  5. In an htm form I have a button which makes us to open another page in 15 seconds. How will you do that?
  6. What is the difference between process and threads?
  7. What is update method called?
  8. Have you ever used HashTable and Directory?
  9. What are statements in Java?
  10. What is a JAR file?
  11. What is JNI?
  12. What is the base class for all swing components?
  13. What is JFC?
  14. What is the difference between AWT and Swing?
  15. Considering notepad/IE or any other thing as process, What will happen if you start notepad or IE 3 times ? Where three processes are started or three threads are started?
  16. How does thread synchronization occur in a monitor?
  17. Is there any tag in htm to upload and download files?
  18. Why do you canvas?
  19. How can you know about drivers and database information ?
  20. What is serialization?
  21. Can you load the server object dynamically? If so what are the 3 major steps involved in it?
  22. What is the layout for toolbar?
  23. What is the difference between Grid and Gridbaglayout?
  24. How will you add panel to a frame?
  25. Where are the card layouts used?
  26. What is the corresponding layout for card in swing?
  27. What is light weight component?
  28. Can you run the product development on all operating systems?
  29. What are the benefits if Swing over AWT?
  30. How can two threads be made to communicate with each other?
  31. What are the files generated after using IDL to java compiler?
  32. What is the protocol used by server and client?
  33. What is the functionability stubs and skeletons?
  34. What is the mapping mechanism used by java to identify IDL language?
  35. What is serializable interface?
  36. What is the use of interface?
  37. Why is java not fully objective oriented?
  38. Why does java not support multiple inheritance?
  39. What is the root class for all java classes?
  40. What is polymorphism?
  41. Suppose if we have a variable 'I' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?
  42. What are virtual functions?
  43. Write down how will you create a Binary tree?
  44. What are the traverses in binary tree?
  45. Write a program for recursive traverse?
  46. What are session variable in servlets?
  47. What is client server computing?
  48. What is constructor and virtual function? Can we call a virtual function in a constructor?
  49. Why do we use oops concepts? What is its advantage?
  50. What is middleware? What is the functionality of web server?

Operating System Questions

  1. What are the basic functions of an operating system?
  2. Explain briefly about, processor, assembler, compiler, loader, linker and the functions executed by them.
  3. What are the difference phases of software development? Explain briefly?
  4. Differentiate between RAM and ROM?
  5. What is DRAM? In which form does it store data?
  6. What is cache memory?
  7. What is hard disk and what is its purpose?
  8. Differentiate between Complier and Interpreter?
  9. What are the different tasks of Lexical analysis?
  10. What are the different functions of Syntax phase, Sheduler?
  11. What are the main difference between Micro-Controller and Micro- Processor?
  12. Describe different job scheduling in operating systems.
  13. What is a Real-Time System ?
  14. What is the difference between Hard and Soft real-time systems ?
  15. What is a mission critical system ?
  16. What is the important aspect of a real-time system ?
  17. If two processes which shares same system memory and system clock in a distributed system, What is it called?
  18. What is the state of the processor, when a process is waiting for some event to occur?
  19. What do you mean by deadlock?
  20. Explain the difference between microkernel and macro kernel.
  21. Give an example of microkernel.
  22. When would you choose bottom up methodology?
  23. When would you choose top down methodology?
  24. Write a small dc shell script to find number of FF in the design.
  25. Why paging is used ?


No comments: