Tip 1: Start learning Data Structures at least a year before your placements.
Tip 2: Focus on OOP concepts, such as inheritance.
Tip 3: Make sure you know everything about your project.
Tip 1: Mention only the things you are familiar with.
Tip 2: You should have at least two good projects.
The online assessment link was valid from 12 PM to 3 PM. I took the test in my room.
Ross, Chandler, and Joey have to pick 2 shapes each from the following 6 shapes: rectangle, square, circle, hexagon, rhombus, and star. Chandler does not pick the rectangle or square. Joey doesn't pick the square, rhombus, or hexagon. The person who picks the star does not pick the circle. If one of these three picks the hexagon and rhombus, what is the second shape that the person who picks the rectangle will choose?
Tip 1: The answer is either the circle or the star.
Tip 2: Joey does not pick the square, rhombus, or hexagon; therefore, Joey can pick the rectangle, circle, and star.
Tip 3: Similarly, you can analyze and provide an answer just like in Tip 2.





1. The array follows 0-based indexing, so you need to return 0-based indices.
2. If 'x' is not present in the array, return {-1 -1}.
3. If 'x' is only present once in the array, the first and last position of its occurrence will be the same.
Input: arr = [1, 2, 4, 4, 5], x = 4
Output: 2 3
Explanation: The given array’s 0-based indexing is as follows:
1 2 4 4 5
↓ ↓ ↓ ↓ ↓
0 1 2 3 4
So, the first occurrence of 4 is at index 2, and the last occurrence of 4 is at index 3.
Step 1: consider N-1, numbers of bowls
Array of size N-1, storing numbers of marbles in the missing bowl
Step 2: Write a function to find the last modified bowl
int solve(int N, int A[])
{
for (int i = N - 1; i >= 0; i--) {
if (A[i] != 9) {
return i + 1;
}
}
return 0;
}
Step 3: Write driver code and call the function
int main()
{
int A[] = { 3, 1, 4, 5 };
int N = sizeof(A) / sizeof(A[0]);
int result = solve(N, A);
cout << result << endl;
return 0;
}
The interview was on September 26, 2022, six days after the online assessment. It was scheduled for 4:15 PM.
Explain ACID properties in DBMS. (Learn)
Tip 1: Atomicity: The entire transaction takes place at once or doesn't happen at all.
Tip 2: Consistency: Integrity constraints must be maintained so that the database is consistent before and after the transaction.
Tip 3: Isolation: Ensures that multiple transactions can occur concurrently without leading to an inconsistent database state.
Tip 4: Durability: This property ensures that once the transaction has completed execution, the updates and modifications to the database are stored on disk and persist even if a system failure occurs.
How do you find the employee whose salary is the second highest?
Tip 1:
select *from employee
group by salary
order by salary desc limit 1,1;
Tip 2: learn these kinds of questions, these are mostly asked questions in an interview
Explain FCFS (Learn)
Tip 1: FCFS stands for First Come, First Served.
Tip 2: In the FCFS scheduling algorithm, the job that arrives first in the ready queue is allocated to the CPU, followed by the job that arrived second, and so on.
Tip 3: FCFS is a non-preemptive scheduling algorithm, meaning that a process holds the CPU until it either terminates or performs I/O.

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