Question A Ire
Question A Ire
1) 2) 3) 4) 5) 6) 7) 8) 9)
Implement Copy Constructor and assignment operator definition syntax. Explain purpose of copy constructor. Explain usage of virtual keyword. What is Abstract base class? Can my class have a function with equal to zero without the definition? Explain the virtual pointer and virtual table concept. Function overloading concept I have a file with strings "ABC","CDE","EFG","ABC","123","456","EFG". I want you to take this input and create a Hash map with key as the string and the value as the number of times the string is present in the file. 10) Example: "ABC" key has value "2" since it is present twice in the file. 11) What is the default access specified of the constructor created by the compiler. 12) What is shallow copy vs. deep copy? 13) Detect whether there is a loop in the single linked list. 14) Given a single linked list change it to a circular linked list. 15) Delete a node in a double linked list. 16) Insert a node in the binary search tree? 17) Difference between semaphore and mutex? 18) What types of IPC's used in your product? 19) What is the purpose of select() function in socket programs? 20) What is the queue size of the message queue used in the program? 21) Static keyword usage in a class and its purpose? 22) When to use register variables? 23) Extern variables storage space in a memory segment? 24) What types of casting are you aware and used in C++ \ 25) static_cast,const_cast,reinterpret_cast and dynamic_cast explain 26) How casting is done in C? 27) Explain the memory model? 28) How to decode the core dump and explain the header fields in the core dump? 29) Explain any memory issues which cropped up during the FR or IR implementation 30) What will you do if the Heap memory is full? How will you design to overcome this issue? 31) Why the copy constructor requires a reference as argument? 32) Difference between struct and union. 33) Given a struct with struct abc{ char a:1,int b:2,long c:4,..} 34) Interview will ask how much space will be allocated by the compiler for this struct and why? 35) (U should explain the bit padding stuff and how to make use it efficiently) 36) RTOS vs. ordinary OS
37) Char *a = String, Is it possible for me to change the value .If not why? 38) What is the use of double pointer when single pointer itself will suffice? 39) Pass by value vs. Pass by reference 40) Template example very rarely asked 41) If you know Standard template library classes then they will some apis in it and ask to do some exercise. 42) Singleton design pattern and other types if you know they will ask on it. 43) What is Thread and process? 44) How to create child process? 45) File system calls basics? 46) How to create only a single instance/many instance of singleton pattern 47) What is Aggregation and what is composition. When to use which one? 48) Basic OOPS concepts Abstraction, Encapsulation ,Polymorphism 49) Implement a final class in C++ 50) UML Diagrams if you know they will ask some questions on it.
UNIX Basics 1) Process command and thread if you know tell them 2) Grep command with options 3) Ls command with options 4) Vi command shortcuts and some questions related to vi string replace etc Debugger GDB options Multi Debugger options SQL 1) 2) 3) 4)
Primary key vs. foreign key What is 1:1 relationship and 1:1 table Type of join and its usage Stored procedure