Tip 1 : Don't leave any DSA topic; you may get questions from any topic
Tip 2 : Focus on fundamentals of core CS subjects like OS, CN, DBMS, OOP, as they are very important
Tip 3 : You must be aware of every detail about the projects you have mentioned in your resume
Tip 1: Do not put false things on your resume
Tip 2: You must be aware of every detail about the projects you have mentioned in your resume
There were total 60 mcq questions
1) Consider a virtual memory system with FIFO page replacement policy. For an arbitrary page access pattern, increasing the number of page frames in main memory will
a) Always decrease the number of page faults
b) Always increase the number of page faults
c) Some times increase the number of page faults
d) Never affect the number of page faults
2) In which one of the following page replacement policies, Belady’s anomaly may occur?
(A) FIFO
(B) Optimal
(C) LRU
(D) MRU
Out of all the 2-digit integers between 1 and 100, a 2-digit number has to be selected at random. What is the probability that the selected number is not divisible by 7?
a) 13/90
b) 12/90
c) 78/90
d) 79/90
1) Predict output of following:
#include
using namespace std;
int main()
{
int a = b = c = 0;
cout << a << "*" << b << "*" << c;
return 0;
}
2) Predict output of following:
#include
using namespace std;
class A
{
int id;
public:
A (int i) { id = i; }
void print () { cout << id << endl; }
};
int main()
{
A a[2];
a[0].print();
a[1].print();
return 0;
}
1) Explain SSD and HDD and difference between them
2) Different types of storage devices and their functioning
3) How is data stored in Data Centres, explain in detail
4) Explain recursion, DP, Optimisation



F(n) = F(n-1) + F(n-2),
Where, F(1) = F(2) = 1.
For ‘N’ = 5, the output will be 5.
Interviewer wanted me to start from recusion then use DP to solve the problem
1) Use Recursion
2) Use DP
3) Space Optimise the above solution



Given string of digits is 123456325. Now starting from the left, the first digit which is repeating is 3 as till 2nd 3 every digit is encountered 1st time and thus our answer for this input will be 3.
1) 2 coding problems on Linked Lists
2) Difference between Semaphore and Spin Lock
3) Deadlocks




1) Brute Force approach of using a map to store the nodes and the next/prev pointers



Input: linked list = [1 2 3 4] , k = 2
Output: 3 4 1 2
Explanation:
We have to rotate the given linked list to the right 2 times. After rotating it to the right once it becomes 4->1->2->3. After rotating it to the right again, it becomes 3->4->1->2.
1) Brute Force

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