Pregunta de entrevista de Informatica

First technical round ==================== 1)Difference between static linking, dynamic linking, dynamic loading 2)How to detect if machine is big endian or little endian 3)Project discussion and questions on that 4)Design question - Consider a system with multiple nodes. There will be one master system, basically work load manager. Work load will be slipt accross the system. When work gets executed on any machine,logging will be done on that machine. Design a system so that, all logs are merged together and present in master system. With minimal i/o and network usuage. Merging should be done using time as criteria. And what if system time of all nodes are not in sync? 5)What is the difference between 32-bit and 64-bit application? If my hardware is 64-bit and software is 32-bit, Would recommend my 32-bit to convert to 64? Justify the answer. Whats the actual difference between 32-bit and 64-bit application. So many questions on this topic. Second technical round ====================== 1) func() { static int i=5; i++; if (if i==6)cout<<" First thread - 6"; if (if i==7) cout<<"second thread-7"; } If two threads calls this function. What will be the output? What all outputs can we expect? If we have to get a determined output? What should be done (ans-locking)? 2) char *str1 ="hello\n"; char *str2="worl\n"; strcpy(str1,str2); cout<<str1<<str2; What will happen? 3) char str[]="hello"; char *str2="world"; strcpy(str,str2); cout<<sizeof(str)<<sizeof(str2); what will happen? there are two many things to discuss in above code...it may look simple, but it's not 4)convert float f=95.7 to a character string "95.7" 5) what is virtual function?abstract class? real world example 6) Complete code for merge sort 7)what is flag should be used for static and dynami compiling 8)if I have a software and I have linked it to a third party library. Third party library keeps updating to new version. Now should I update my software everytime when that thirds party library gets changed? Third technical discussion ====================== This guy was really strong in C++ and wanted a complete answer without even leaving a "." at the end. what is virtual function? how is it implemented internally? gave few cases and asked what happens for virtual function. discussed this topic for quiet sometime. Dynamic casting. When it will return null? I gave some exmaple but he was not very convinced how RTTI is implemented internally Design LRU caching? time complexity for accessing, and freeing up nodes in LRU