Tip 1 : Prepared well for how to approach the solution of problem.
Tip 2 : Start with bruit-force approach and gradually optimize further.
Tip 1: Whatever you write in resume, make sure you are enough confident and ready to explain it in a detail.
Tip 2: Keep your resume as simple as possible. Don't go with highly designed format.
It was in the evening 08:00 PM. Environment was quite good and no any additional disturbance was there. Internet connectivity was also decent and I was very confident about this round.
Job Scheduling Algorithm were asked to solve and find the correct answer from the options.
Tip 1: Practice a lot of job scheduling algorithm based question.
Tip 2: Also look at the advantages of various job scheduling algorithm as there can be many theoretical MCQs
asked in Online Assessment.
#include union School {
int age, rollNo; double marks;};void solve() { union School sc; sc.age = 19; sc.rollNo = 82; sc.marks = 19.04; printf("%d", (int)sizeof(sc));}int main() { solve(); return 0;}
Debug the code and find the output.
The size of a Union is equal to the size of the largest variable which is a part of it. Here the variable is double which of size 8bytes.
#include
#include
void solve() {
char s[] = "Hello"; printf("%s ", s); char t[40]; strcpy(t, s); printf("%s", t);}
int main() { solve(); return 0;}
The strcpy() is a string library function of C, which copies the contents of one string into another string.
Ans: Hello Hello
- Interviewer was good and quite friendly. Interviewer has asked to Introduce myself.
- He asked me about Operating system questions.
-What is mutex?
- Difference between mutex and semaphores.
- How do deadlocks occur and how do prevent deadlocks?
- What is virtual memory and how it is achieved?
- What is the advantage of using thread over process?
- Then Interview jumped to OOPS concepts.
- What is Inheritance and Constructer.
Implement Runtime Polymorphism with Multilevel Inheritance
class Animal{
void eat(){System.out.println("eating");}
}
class Dog extends Animal{
void eat(){System.out.println("eating fruits");}
}
class BabyDog extends Dog{
void eat(){System.out.println("drinking milk");}
public static void main(String args[]){
Animal a1,a2,a3;
a1=new Animal();
a2=new Dog();
a3=new BabyDog();
a1.eat();
a2.eat();
a3.eat();
}
}


Difference between mutex and semaphores
How do deadlocks occur and how do prevent deadlocks?
What is the advantage of using thread over process?
What is mutex?
It was a Technical + Managerial kind of round.
- Interviewer told me to introduce myself first.
- Started asking question based on my resume.
- Explain all the projects in detail
- OS questions like what is Segmentation, tell me the memory management techniques
- Some puzzle they have asked from gfg 20 top puzzles.
- Do you have any questions from me



Assume that the Indexing for the linked list always starts from 0.
If the position is greater than or equal to the length of the linked list, you should return the same linked list without any change.
The following images depict how the deletion has been performed.


The fast solution is to copy the data from the next node to the node to be deleted and delete the next node. Something like this:
It is important to note that this approach will only work if it is guaranteed that the given pointer does not point to the last node. Because if it is the last node, then you don’t have a next node to copy the data from.
struct Node *temp = node_ptr->next;
node_ptr->data = temp->data;
node_ptr->next = temp->next;
free(temp);



Consider the integer N = 45 whose binary representation is 101101. The resulting number formed after swapping each even bit with its adjacent bit to the right will be 30 (011110) in this case.
Given an integer 'n' and two positions, i and j, you must swap the ith and jth bits of the number n.
You can solve this problem using the same logic we used in the last problem. The property of XOR - (a^b)^b = a or (a^b)^a = b.
We first extract the ith and jth bit and perform XOR. We then shift this XOR result in both the ith and jth positions to create a mask. We take this mask and complete the final XOR with the number n to get our final result.
what is Segmentation, tell me the memory management techniques

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?