Tip 1: Prepare data structures and algorithms along with problem-solving
Tip 2: Prepare at least two projects to have some knowledge of the development
Tip 3: Be confident while giving the interviews and be interactive throughout the interview
Tip 1: Don't include irrelevant information in your resume just to fill the page.
Tip 2: Focus on showcasing 2 or 3 quality projects and list only the technologies and programming languages you are confident in.
It was around 2 pm.
I was sitting alone in the Room.
I was very much confident.
The interviewer asked 1 coding problem and some questions on OS, DBMS, OOPs, and my projects.
Given a linked list and a head pointer pointing to the first element in the linked list return a pointer pointing to the middle element of the list.
Step 1: Take two pointers slow and fast.
Step 2: While slow moves one step forward, fast moves two steps forward.
Step 3: When fast reaches the end, slow happens to be in the middle of the linked list.
Given an integer array nums, return all the triplets [nums[i], nums[j], nums[k]] such that i != j, i != k, and j != k, and nums[i] + nums[j] + nums[k] == 0.
Step 1: Sort the array
Step 2: Based on a + b + c = 0 we can say that b + c = -a and based on this we fix the element as a and then find b and c using two pointers lo and hi (same as in Two Sum Problem)
What is virtual memory?
Virtual Memory is a storage scheme that provides users with the illusion of having a very large main memory. This is achieved by treating a portion of secondary memory as the main memory.
What is a semaphore?
Semaphores are integer variables that are used to solve the critical section problem by using two atomic operations, wait and signal that are used for process synchronization.
What is a database?
A Database is a logical, consistent, and organized collection of data that can easily be accessed, managed, and updated.
What do you understand by Data Model?
The Data model is specified as a collection of conceptual tools for describing data, data relationships, data semantics, and constraints. These models are used to describe the relationship between the entities and their attributes.
What is data abstraction in DBMS?
Data abstraction in DBMS is a process of hiding irrelevant details from users. Because database systems are made of complex data structures so, it makes accessible the user interaction with the database.
It was around 5 pm.
I was alone in the room.
The interviewer was very helpful.
Given a tree write the code for the DFS traversal on the tree. Consider root node as 1.
Step 1 − First put 1 in the stack and mark it as visited.
Step 1 − Visit the adjacent unvisited vertex. Mark it as visited. Print it. Push it in a stack.
Step 2 − If no adjacent vertex is found, pop up a vertex from the stack. (It will pop up all the vertices from the stack, which do not have adjacent vertices.)
Step 3 − Repeat Step 1 and Step 2 until the stack is empty.
Given the head of a sorted linked list, delete all duplicates such that each element appears only once. Return the linked list sorted as well.
Step 1: Initialize two pointers, prev and curr, with the first and the second nodes of the linked list, respectively.
Step 2: While curr is not NULL, compare the value of curr and prev nodes.
Step 3: If they have the same value, update prev->next to curr->next and move curr to the next node.
Step 4: If they have different values, move both prev and curr to their next nodes.
Step 5: Return the head of the modified linked list.
What is a kernel?
Kernel is the core and most important part of a computer operating system which provides basic services for all parts of the OS.
Difference between process and thread? (Link)
Process: Processes are the programs that are dispatched from the ready state and are scheduled in the CPU for execution.
Thread: Thread is the segment of a process which means a process can have multiple threads and these multiple threads are contained within a process. A thread has three states: Running, Ready, and Blocked.
What is the concept of demand paging?
Demand paging specifies that if an area of memory is not currently being used, it is swapped to disk to make room for an application's need.
What do you mean by durability in DBMS?
Once the DBMS informs the user that a transaction has been completed successfully, its effect should persist even if the system crashes before all its changes are reflected on disk. This property is called durability.
Explain ACID properties.
ATOMICITY: Atomicity is more generally known as the "all or nothing" rule, which implies that all actions within a transaction are considered as one unit. They either run to completion or are not executed at all.
CONSISTENCY: This property refers to the uniformity of the data. Consistency implies that the database maintains consistency before and after the transaction.
ISOLATION: This property states that several transactions can be executed concurrently without leading to inconsistencies in the database state.
DURABILITY: This property ensures that once the transaction is committed, it will be stored in non-volatile memory, and a system crash will not affect it anymore.
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you select an element by class name in CSS?