Filter interviews by
I appeared for an interview before Jul 2021.
I applied via Naukri.com and was interviewed before Mar 2021. There were 2 interview rounds.
I applied via Referral and was interviewed before Aug 2020. There were 4 interview rounds.
I applied via Naukri.com and was interviewed before Jan 2020. There were 4 interview rounds.
GS Lab interview questions for popular designations
Interprocess communication in OS allows processes to exchange data and synchronize their actions.
IPC mechanisms include shared memory, message passing, and sockets.
Shared memory allows processes to access the same region of memory.
Message passing involves sending and receiving messages through a communication channel.
Sockets use network protocols to enable communication between processes on different machines.
IPC can b...
Code to print the first 10 even numbers starting from 2
Use a loop to iterate through the numbers
Check if the number is even using the modulo operator
Print the number if it is even and increment the count
Stop the loop once 10 even numbers have been printed
Kernel is compiled using a compiler toolchain and build system.
Kernel source code is written in C language
Compiler toolchain compiles the source code into object files
Object files are linked together to create a kernel image
Build system manages the compilation and linking process
Kernel configuration options are set using make menuconfig or similar tools
Virtualization is the creation of a virtual version of something, such as an operating system, a server, a storage device, or network resources. Cloud computing is the delivery of computing services—including servers, storage, databases, networking, software, analytics, and intelligence—over the Internet (the cloud) to offer faster innovation, flexible resources, and economies of scale.
Virtualization creates a virtual ...
Solution for the Reader Writer problem
Use semaphores to control access to shared resources
Readers can access the resource simultaneously
Writers must have exclusive access to the resource
Prefer readers over writers to avoid starvation
Implement a queue to manage access requests
Process is an instance of a program while thread is a subset of a process.
Process is a program in execution while thread is a subset of a process that can execute independently.
Processes are heavyweight while threads are lightweight.
Processes have their own memory space while threads share the same memory space.
Examples of processes are web browsers, text editors, etc. while examples of threads are GUI thread, network
To create a process, use a programming language or software. To end it, use task manager or command line.
To create a process, use a programming language like Java or Python
To create a process, use software like Visual Studio or Eclipse
To end a process, use task manager on Windows or activity monitor on Mac
To end a process, use command line with 'kill' command on Unix-based systems
Our project is a mobile app that helps users track their daily water intake and reminds them to drink more water.
Allows users to set daily water intake goals
Tracks water intake through manual input or integration with fitness trackers
Sends reminders to drink water throughout the day
Provides visual representation of daily water intake progress
Offers personalized recommendations for optimal hydration
Allows users to conne...
Get interview-ready with Top GS Lab Interview Questions
DLL operations are used to share code and resources between multiple programs.
DLLs can be loaded at runtime using LoadLibrary() function.
Functions from a DLL can be accessed using GetProcAddress() function.
DLLs can be unloaded using FreeLibrary() function.
DLLs can be used to implement plugins in software applications.
DLLs can be used to share resources such as icons, images, and sound files.
Oops features are used to improve code reusability and maintainability.
Encapsulation: Hiding implementation details of a class
Inheritance: Creating a new class from an existing class
Polymorphism: Ability of objects to take on multiple forms
Abstraction: Focusing on essential features of an object
Examples: Creating a subclass from a superclass, using interfaces to implement multiple inheritance
Different searching algorithms have different time and space complexities.
Linear search has O(n) time complexity
Binary search has O(log n) time complexity
Hashing has O(1) time complexity
Depth-first search and breadth-first search are used in graph traversal
A* search algorithm is used in pathfinding
Uniform-cost search is used in finding the shortest path in a weighted graph
Queue and stack can be implemented using linked list by defining appropriate operations.
For queue, we can define operations like enqueue and dequeue.
For stack, we can define operations like push and pop.
In both cases, we need to maintain a pointer to the head of the linked list.
To find minimum path from one city to other city
Use Dijkstra's algorithm or A* algorithm to find the shortest path
Create a graph with cities as nodes and distances as edges
Implement the algorithm in code to get the minimum path
Consider factors like traffic, tolls, and road conditions if applicable
Interprocess communication in OS allows processes to exchange data and synchronize their actions.
Shared memory
Message passing
Sockets
Pipes
Signals
Code to find the sum of all even numbers in an array
Create a variable to store the sum
Loop through the array and check if each number is even
If the number is even, add it to the sum variable
Return the sum variable
Kernel is compiled using a toolchain that includes a compiler, linker, and other tools.
Kernel source code is written in C language
The toolchain compiles the source code into object files
The linker links the object files to create a kernel image
The kernel image is loaded into memory during boot process
Various configuration options can be set during compilation
Virtualization is the creation of a virtual version of something, such as an operating system, server, storage device, or network resource. Cloud refers to the delivery of computing services over the internet.
Virtualization allows multiple operating systems to run on a single physical machine, increasing efficiency and flexibility.
Cloud computing provides on-demand access to a shared pool of computing resources, such a...
Solution to the classic Reader Writer problem in concurrent programming.
Use semaphores to control access to shared resources.
Readers can access the resource simultaneously, but writers must have exclusive access.
Implement a queue to ensure fairness in accessing the resource.
Use locks to prevent race conditions and ensure atomicity.
Consider using condition variables to signal when the resource is available.
A process is an instance of a program while a thread is a subset of a process.
A process has its own memory space while threads share memory space.
Processes are heavyweight while threads are lightweight.
Processes can communicate with each other through inter-process communication while threads can communicate directly.
Examples of processes include web browsers, text editors, and media players while examples of threads i...
Normalization is the process of organizing data in a database to reduce redundancy and dependency.
Normalization helps in improving data consistency and accuracy.
There are different types of normalization such as 1NF, 2NF, 3NF, BCNF, and 4NF.
1NF ensures that each column in a table contains atomic values.
2NF eliminates partial dependencies by creating separate tables for related data.
3NF eliminates transitive dependencie...
Synchronization in OS refers to the coordination of multiple processes or threads to ensure data consistency and avoid conflicts.
Synchronization is necessary when multiple processes or threads access shared resources.
It involves the use of synchronization primitives such as locks, semaphores, and monitors.
Synchronization can prevent issues such as race conditions, deadlocks, and livelocks.
Examples of synchronization in...
Code for tic-tac-toe game using array of strings.
Create a 3x3 array of strings to represent the game board
Use a loop to alternate between players and prompt for input
Check for win conditions after each move
Display the final board and winner or tie message
Java code is compiled into bytecode which can run on any platform with a JVM installed.
Java code is compiled into bytecode which is platform-independent
Bytecode can be executed on any platform with a JVM installed
JVM provides a layer of abstraction between the code and the underlying hardware
Java libraries are also platform-independent
Code for any sorting algorithm
Choose a sorting algorithm based on the requirements
Common sorting algorithms include bubble sort, insertion sort, selection sort, merge sort, quick sort
Implement the chosen algorithm in the programming language of choice
Test the algorithm with sample input data to ensure correctness
Developed a web-based platform for online shopping
Used HTML, CSS, JavaScript, and PHP for front-end and back-end development
Implemented secure payment gateway integration
Incorporated user authentication and authorization features
Designed a responsive and user-friendly interface
Conducted testing and debugging to ensure smooth functionality
Top trending discussions
Some of the top questions asked at the GS Lab interview -
The duration of GS Lab interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 40 interviews
Interview experience
based on 409 reviews
Rating in categories
Senior Software Engineer
790
salaries
| ₹9 L/yr - ₹32 L/yr |
Software Engineer
762
salaries
| ₹4 L/yr - ₹16.2 L/yr |
Lead Software Engineer
257
salaries
| ₹11 L/yr - ₹36.8 L/yr |
Softwaretest Engineer
98
salaries
| ₹3.5 L/yr - ₹11.2 L/yr |
Software Developer
95
salaries
| ₹4.8 L/yr - ₹18 L/yr |
One Network Enterprises
ITC Infotech
CMS IT Services
KocharTech