Filter interviews by
I applied via Hirect and was interviewed in May 2022. There were 3 interview rounds.
Map and unordered map are implemented as associative containers in C++ STL library.
Map is implemented as a balanced binary search tree while unordered map is implemented as a hash table.
Map stores elements in a sorted order while unordered map does not guarantee any specific order.
Map has a logarithmic time complexity for insertion, deletion, and search operations while unordered map has an average constant time comple...
Virtual functions are functions that can be overridden in derived classes. Vtables are tables of function pointers used for dynamic dispatch.
Virtual functions allow for polymorphism and dynamic binding
Vtables are used to implement virtual functions
Method overriding is when a derived class provides its own implementation of a virtual function
Virtual functions are declared using the virtual keyword
Example: class Animal {...
Debugging C++ program with segmentation fault using GDB
Compile the program with -g flag to include debugging symbols
Run the program with GDB and set breakpoints at suspected functions
Use 'run' command to execute the program within GDB
Use 'backtrace' command to see the call stack when the segmentation fault occurs
Use 'print' command to inspect variables and memory addresses
Use 'core dump' command to generate a core dump
A singleton class is a class that can only have one instance created at a time.
Singleton classes are often used in situations where only one instance of a class is needed, such as for managing a database connection or a configuration file.
The singleton pattern is implemented by making the constructor of the class private and providing a static method that returns the single instance of the class.
Singleton classes can b...
A singleton class is a class that can only have one instance created throughout the lifetime of an application.
Create a private constructor to prevent external instantiation.
Create a private static instance of the class.
Create a public static method to access the instance.
Ensure thread safety by using synchronized keyword or static initializer.
Example: public class Singleton { private static Singleton instance = null; ...
Use C++ map or unordered_map to store key value pairs with same key
C++ map and unordered_map are associative containers that store elements in key value pairs
If the key is same for some entries, map will store only one entry while unordered_map can store multiple entries
Example: map
Example: unordered_map
To grep a value from a file with key=value format, use awk command with delimiter as '=' and search for the key.
Use awk command with delimiter as '=' to split the line into key and value
Search for the key in the key column and print the corresponding value column
Example: awk -F'=' '/key/ {print $2}' file.txt
I applied via Approached by Company and was interviewed before Sep 2021. There were 3 interview rounds.
Angular hooks are functions that allow developers to tap into the lifecycle of a component or directive.
Angular hooks are used to perform actions at specific points in the lifecycle of a component or directive
There are several types of hooks, including ngOnInit, ngOnChanges, and ngOnDestroy
ngOnInit is called once when the component is initialized
ngOnChanges is called whenever a data-bound input property changes
ngOnDest...
Explanation of directives, dependency injection, promise and observables, routing, interceptor, and communication between components.
Directives are markers on a DOM element that tell AngularJS to attach a specified behavior to that element.
Dependency Injection is a design pattern that allows a class to be injected with its dependencies rather than creating them itself.
Promises are objects that represent the eventual co...
I was asked to give amcat test as I had less than 3 years of experience.
I applied via Campus Placement and was interviewed in Jun 2019. There were 4 interview rounds.
posted on 13 Dec 2024
I applied via campus placement at Vellore Institute of Technology (VIT) and was interviewed in Nov 2024. There were 2 interview rounds.
OOP is a programming paradigm based on the concept of objects, which can contain data in the form of fields and code in the form of procedures.
OOP focuses on creating objects that interact with each other to solve problems.
Encapsulation: Objects can hide their internal state and require interactions through defined interfaces.
Inheritance: Objects can inherit attributes and methods from other objects.
Polymorphism: Objec...
Code a simple one
Use a basic programming language like Python or JavaScript
Create an array of strings
Print the array elements
I have worked on various projects including a web application for tracking inventory and a mobile app for managing tasks.
Developed a web application using React.js for tracking inventory levels and generating reports
Created a mobile app using Flutter for managing tasks and setting reminders
Implemented RESTful APIs for communication between frontend and backend systems
I am a software developer with 5 years of experience in Java, Python, and SQL.
5 years of experience in Java, Python, and SQL
Strong problem-solving skills
Experience working in Agile development environment
Passionate about learning new technologies
I want to work at msg global solutions because of their reputation for innovative solutions and collaborative work environment.
I am impressed by msg global solutions' track record of delivering cutting-edge software solutions to clients.
I am excited about the opportunity to work with a team of talented developers and collaborate on challenging projects.
I value the emphasis msg global solutions places on professional de...
I applied via Job Portal and was interviewed in Sep 2024. There were 4 interview rounds.
2 DSA question was asked
40 questions in 20 minutes
Generate all possible permutations of an array of strings
Use recursion to generate permutations
Swap elements to create different permutations
Base case: when array size is 1, return array as permutation
posted on 8 Mar 2024
I applied via campus placement at GLA Institute of Technology and Management, Mathura and was interviewed in Feb 2024. There were 4 interview rounds.
30min Pseudo Code,Ratio and Proportion
1 hour Array,HashMap
Program to check if a string is an Anagram or not
Create a function that takes in two strings as input
Sort the characters in both strings and compare if they are equal
Return true if they are anagrams, false otherwise
To connect MongoDB with a database, you need to use the MongoDB URI and a MongoDB client library.
Use the MongoDB URI to specify the connection details such as host, port, username, password, and database name
Install a MongoDB client library like Mongoose for Node.js or pymongo for Python
Use the client library to establish a connection to the MongoDB database and perform CRUD operations
An event listener is a function that waits for a specific event to occur and then triggers a response.
Event listeners are commonly used in web development to handle user interactions like clicks, keypresses, etc.
They are attached to specific elements and listen for events to occur on those elements.
Once the event occurs, the listener executes a callback function to respond to the event.
Example: Adding a click event lis...
Polymorphism is the ability of a function or method to behave differently based on the object it is acting upon.
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
There are two types of polymorphism: compile-time (method overloading) and runtime (method overriding).
Example: Inheritance in object-oriented programming languages like Java allows for polymorphism.
Use two pointers to swap characters in place
Initialize two pointers, one at the beginning of the string and one at the end
Swap characters at the two pointers and move them towards each other until they meet or cross
Repeat the process until the entire string is reversed
Use bitwise XOR operation to find the missing number in O(N) time complexity.
Iterate through the array and XOR all the elements with their indices and the array length.
The missing number will be the result of XORing all the elements with their indices and the array length.
Coding for international
posted on 19 Sep 2024
I applied via Job Portal
60mintues DSA level coding exam
posted on 25 Jul 2023
I applied via Campus Placement
It basic about all the common aptitude
It had a coding test where there was 2 questions
Count the number of alphabets in a given string.
Iterate through each character in the string and check if it is an alphabet using ASCII values.
Ignore spaces, numbers, and special characters while counting alphabets.
Example: 'Hello World!' has 10 alphabets.
I was interviewed before Dec 2023.
Online assessment with quantitative and qualitative questions
Some Tree traversal coding question
based on 8 reviews
Rating in categories
Software Developer
96
salaries
| ₹3.7 L/yr - ₹11.8 L/yr |
Senior Software Developer
56
salaries
| ₹6 L/yr - ₹21 L/yr |
Consultant
48
salaries
| ₹4.7 L/yr - ₹18 L/yr |
Senior Consultant
36
salaries
| ₹10 L/yr - ₹24 L/yr |
Senior Manager
34
salaries
| ₹14.1 L/yr - ₹29.4 L/yr |
TCS
Infosys
Wipro
HCLTech