Round 1-Telephonic
1. Memory layout in C
2. Tell me about signalling protocols. Explain them.->SIP,MGCP
3. Diff between process and thread
4. Explain all OOPs concepts
5. How 2 threads communicate with each other
6. What is mutex and semaphore? Which one you used
7. Diff between TCP and UDP
8. Have you worked on socket programming ? which sockets you used?
When TCP and UDP sockets are used?
9. Can we allocate memory to all the members of union?
10. Explain Aricent project
11. Design a class for Teleconference system. He gave me one scenario
Scenario- where there is host who can start and stop the conference,
12. What is memory leaks? When it will happen
13. Have you used wireshark.
14. Linux command for changing file access mode, kill process, check process running on system, check available space on disk.
15. Difference between stack and queue? Where you have used it?
16. Diff between vector and list? When to use where?
17. Command for collecting wireshark logs on linux- >tcpdump, netlogger
18. What is unicast and multicast
19. I want to execute one function when system boots up. What I will do to achieve that?
20. How to do DB connectivity in C++?
21. Can we deallocate memory of an obj. outside the function block where it is created?-> no
22. I want to pass 10 value in an function how can I do it?->pass by val and ref.
23. Explain complete execution of program ie. Compilation, linking, execution
Round 2-Face to Face
1. Mirror image of tree
2. Find 3rd last element in singly linked list, in single iteration where link list has n nodes.
3. How to do database connectivity in C++?
4. Sql query- Calculate avg all the subject of each student in student db
Check following schema
Stud_id sub Marks
1 A 60
1 B 98
1 C 55
2 A 45
5. Output for following program. Does it will work? Give Segmentation fault?
#include <stdio.h>
#include<iostream>
using namespace std;
void fun(char* x)
{
int i;
for(i=0;i<100;i++)
{
*x=(char)(i+1);
cout<<*x<<"\t";
x++;
}
}
int main()
{
char c[]="abcdefgh";
fun(c);
return 0;
}
6. You know farmvilla game on facebook. You have to design class for that where you will call methods to draw object like man, tractor, car, bird, tree etc.-> use virtual fun concept
7. What will be the generic fun for base class->Drawable, because we are drawing obj over here.
8. How system will decide that it has to execute derived class method not base class at runtime polymorphism. How runtime polymorphism work.
9.Here Cental DB is Shared by all the 6 cluster N0 to N5. These cluster have there own cache memory. These cluster are in same network and can communicate with each other by using some network layer protocol. Here load balancer allocate object to these cluster and depending on unique key ie. Object having key 0 will be send to cluster0 only and so on. To process that object cluster will take some parameters from central DB process the obj and result will again be saved in central DB. Load balancer don’t have its own memory.
Note-1: Here object having same key have same result almost all the time.It might change once in a while.
Note-2: Lets consider we have obj-1 having key=1, according to our design it will go at cluster-1, but if load on that cluster is >90%. Load balancer will send that obj to some other cluster(eg. Cluster-3) as well, but this will happen only in this condition. In normal condition obj-1 will go to cluster-1 only
9.1. How to reduce transaction from cluster to db?
9.2. In Note-2 Scenario if the result of object is updated, this time it will update result in central db as well. But when after some time the load on cluster-1 comes to normal state and this time obj1 will be send to cluster-1 according to our architecture, now this time it has old copy of result in its cache and it will return old result which is wrong. How to rectify this situation.
9.3. Through which protocol cluster-3 send broadcast msg ?