Persistent Interview Experience Online
Persistent Interview Experience Online
Persistent Interview Experience Online
// means remaining
questions.
Batch : 2021
kya akarekjflkdsj
skdlfjsldkfjskldfjsd
fsjdklfjsdlfjksjflksdfjsdklfjsdlfkksldfj
sdfjsjdkffffffffffffjl
fjskldffffffffffffffffffj
Technical Round:
2. What is RDBMS ?
8. Array vs Pointer.
9. What is Pointer in C.
13. C vs C++.
HR Round:
1. Your have 1 candle that can burn 1 hour, how will you know 30 minutes are
up?.
3. Why Persistent?
6. If you are in testing phase in Whatsapp then what will you check that is
critical to fight.
Candidate Name: Harish Jain
Technical Round:
Hello all my interview started with my introduction, after that they saw my
resume which was uploaded by me during application from they told me they will
start from Java python and then c, c++, concepts. He started with java
3. Size of array
The query was to find the 7th highest salary and grade of employee from employee
table, grade table and salary table.
Overall the interview was good at last he asked me do I have any question for him.
Technical Round:
I had done with my interview, interviewer asked me data structures and 5 programs
and OOPs concept
//3. Use the stack to print the 2nd highest duplicate element in string.
Technical Round:
1. What is Constructor ?
7. DNS Server
9. Linked list
Rounds :
1. Online Test
2. Technical Round - I
3. Technical Round - II
4. HR Round
Technical Round:I
Technical Round:II
Rounds :
1. Online Test
2. Technical Round - I
3. Technical Round - II
4. HR Round
Technical Round:I
Technical Round:II
1) Tell me about yourself.
5) Drop, truncate, delete query to find odd ids from employees table.
6) Acid properties ?
7) TCP and IP ?
HR Round:
2) Why Persistent ?
5) What would you do if we put you in a different domain rather than your
interest ?
// glassdoor.com
Dynamic Polymorphism, Memory layout / leaks. OOPS Concept. Stack unwinding. Basic
data structures. Floyd Cycle Detection algorithm etc.
Explain encapsulation.
Explain object oriented aspect of a language.
Consider a matrix is converted to cube and you push it once...how will you execute
the code?
What kind of data structure does fb use for keeping track of followers
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.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.