i
Capgemini
Filter interviews by
Clear (1)
Binary search algorithm efficiently finds the target value in a sorted array.
Divide the array in half and compare the target value with the middle element.
If the target value is smaller, search the left half. If larger, search the right half.
Repeat the process until the target value is found or the subarray is empty.
Database optimization involves improving the performance of a database system by reducing response time and resource consumption.
Identify and eliminate redundant data
Index frequently queried columns
Normalize database schema
Optimize queries by using appropriate joins and filters
Use caching mechanisms to reduce database load
Use input validation, output encoding, and proper escaping to prevent XSS attacks.
Sanitize user input by validating and filtering all input data.
Encode output data to prevent malicious scripts from being executed.
Escape special characters in user input before displaying it on the website.
Implement Content Security Policy (CSP) to restrict the sources of content that can be loaded on your website.
I applied via Naukri.com and was interviewed in Aug 2020. There were 3 interview rounds.
I applied via Campus Placement and was interviewed before Feb 2020. There were 6 interview rounds.
I applied via Company Website and was interviewed before Feb 2020. There was 1 interview round.
I applied via Walk-in and was interviewed before Sep 2019. There were 5 interview rounds.
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 Naukri.com and was interviewed in Feb 2021. There were 3 interview rounds.
I applied via Walk-in and was interviewed in Mar 2021. There was 1 interview round.
I applied via Recruitment Consulltant and was interviewed before Apr 2021. There were 3 interview rounds.
Standard Aptitude questions
Based on strings and array
based on 1 interview
Interview experience
based on 1 review
Rating in categories
Consultant
55.2k
salaries
| ₹0 L/yr - ₹0 L/yr |
Associate Consultant
50.7k
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Consultant
46.3k
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Analyst
20.9k
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Software Engineer
20.3k
salaries
| ₹0 L/yr - ₹0 L/yr |
Wipro
Accenture
Cognizant
TCS