Filter interviews by
Clear (1)
I applied via Walk-in and was interviewed before Oct 2022. There were 3 interview rounds.
To find missing number, duplicate, largest and smallest elements, and multiple duplicates in an array.
To find missing number, calculate the sum of all numbers from 1 to 100 and subtract the sum of the given array.
To find duplicate, use a hash set to store elements as you iterate through the array and check for duplicates.
To find largest and smallest elements, initialize variables with the first element and update them ...
To reverse an array of strings, iterate through the array and swap elements from start to end.
Iterate through the array using two pointers, one starting from the beginning and the other from the end.
Swap the elements at the two pointers and move the pointers towards the center until they meet or cross each other.
To find the median in 2 arrays of strings, merge the arrays, sort them, and then calculate the median.
Merge the two arrays into one array
Sort the merged array
Calculate the median based on the length of the array (odd or even number of elements)
Array is a fixed-size collection of elements of the same data type, while ArrayList is a dynamic collection that can grow or shrink in size.
Array is a static data structure with a fixed size, while ArrayList is a dynamic data structure that can resize itself.
Arrays can hold primitive data types and objects, while ArrayList can only hold objects.
Arrays are faster than ArrayList for accessing elements, but ArrayList is m...
Top trending discussions
I applied via Naukri.com and was interviewed in Aug 2020. There were 3 interview rounds.
I applied via Recruitment Consultant and was interviewed in Nov 2020. There were 3 interview rounds.
I applied via Company Website and was interviewed before Feb 2020. There was 1 interview round.
I applied via Campus Placement and was interviewed in Oct 2020. There were 4 interview rounds.
Bubble sort is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements and swaps them if they are in the wrong order.
Start from the first element and compare it with the next element
If the next element is smaller, swap them
Repeat this process for all elements in the array
Continue this process until no more swaps are needed
A program to print all prime numbers
Take input from user for range of numbers
Loop through the range and check if each number is prime
Print the prime numbers
Hashmap is a data structure that stores key-value pairs and allows constant time access to values based on their keys.
Hashmap uses a hash function to map keys to indices in an array.
Collisions can occur when multiple keys map to the same index, which can be resolved using techniques like chaining or open addressing.
Examples of hashmap implementations include Java's HashMap class and Python's dict type.
Inheritance is a mechanism in object-oriented programming where a new class is created by inheriting properties of an existing class.
Inheritance allows code reuse and promotes code organization.
The existing class is called the parent or superclass, and the new class is called the child or subclass.
The child class inherits all the properties and methods of the parent class and can also add new properties and methods.
For...
I applied via Company Website and was interviewed in Oct 2020. There were 3 interview rounds.
Recursion is a process in which a function calls itself. Inheritance is a mechanism in OOP where a class inherits properties of another class. Heap is a region of memory used for dynamic memory allocation.
Recursion can be used to solve problems that can be broken down into smaller sub-problems.
Inheritance allows for code reuse and helps in creating a hierarchy of classes.
Heap is used for dynamic memory allocation in la...
I applied via Walk-in and was interviewed in Mar 2021. There was 1 interview round.
I applied via Naukri.com and was interviewed before Nov 2020. There were 3 interview rounds.
Angular has several lifecycle methods that are called at different stages of a component's life.
ngOnInit() - called after the component is initialized
ngOnChanges() - called when the component's input properties change
ngDoCheck() - called during every change detection cycle
ngAfterViewInit() - called after the component's view has been initialized
ngOnDestroy() - called just before the component is destroyed
Pipes are a feature in Angular that allow for data transformation before displaying it in the view.
Pipes are used to format data in the view
They can be used to filter, sort, and transform data
Examples include the date pipe, currency pipe, and uppercase pipe
Global error handling in Angular can be done using ErrorHandler class.
Create a class that implements the ErrorHandler interface
Override the handleError() method to handle errors globally
Provide the ErrorHandler class in the providers array of AppModule
Use the error handling service to log errors or display error messages
Custom directives are a way to extend HTML with new attributes and functionality.
Types of custom directives are attribute, element, and class directives.
Attribute directives modify the behavior of existing HTML elements.
Element directives create new HTML elements.
Class directives modify the behavior of existing HTML elements based on their class.
To create a custom directive, use the directive() method of the AngularJS ...
based on 1 interview
Interview experience
Java Developer
31
salaries
| ₹0 L/yr - ₹0 L/yr |
Digital Marketing Executive
14
salaries
| ₹0 L/yr - ₹0 L/yr |
Trainee
13
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Developer
12
salaries
| ₹0 L/yr - ₹0 L/yr |
Softwaretest Engineer
10
salaries
| ₹0 L/yr - ₹0 L/yr |
Besant Technologies
IIHT
Jetking Infotrain
NIIT