Filter interviews by
Typical DSA questions
I applied via Company Website and was interviewed in May 2022. There was 1 interview round.
I applied via Naukri.com
I appeared for an interview before Mar 2021.
Round duration - 60 Minutes
Round difficulty - Easy
In this round, I was first asked a simple coding question related to Recursion and then the interviewer switched the topic of discussion towards Java and OOPS and towards the end of the interview I was also asked some questions revolving around DB2 and DBMS.
Determine if a given string 'S' is a palindrome, considering only alphanumeric characters and ignoring spaces and symbols.
The string 'S' should be evaluated in a case...
Check if a given string is a palindrome after removing special characters, spaces, and converting to lowercase.
Remove special characters and spaces from the input string
Convert the string to lowercase
Check if the modified string is a palindrome by comparing characters from start and end
JVM allocates 5 types of memory areas: Method Area, Heap, Stack, PC Register, and Native Method Stack.
Method Area stores class structures and static variables.
Heap is where objects are allocated.
Stack holds method-specific data and references.
PC Register stores the address of the current instruction being executed.
Native Method Stack is used for native method execution.
CURSOR in COBOL is used to navigate through a result set in a database program.
Declare a CURSOR in the Working-Storage section of the COBOL program
Open the CURSOR to fetch data from the database
Use FETCH statement to retrieve rows from the result set
Process the fetched data as needed
Close the CURSOR when done with the result set
To find the number of rows and eliminate duplicate values in a DB2 table, you can use SQL queries.
Use the COUNT function to find the number of rows in the table.
To eliminate duplicate values, use the DISTINCT keyword in your SELECT query.
You can also use the GROUP BY clause to group rows with the same values and then use aggregate functions like COUNT to find the number of unique rows.
Normalization is the process of organizing data in a database to reduce redundancy and improve data integrity. Denormalization is the opposite process.
Normalization involves breaking down a table into smaller tables and defining relationships between them to reduce redundancy.
Denormalization involves combining tables to reduce the number of joins needed for queries, sacrificing some normalization benefits for performan...
A correlated subquery is a subquery that references a column from the outer query, allowing for more complex filtering and data retrieval.
Correlated subqueries are executed for each row processed by the outer query.
They can be used to filter results based on values from the outer query.
Example: SELECT * FROM table1 t1 WHERE t1.column1 = (SELECT MAX(column2) FROM table2 t2 WHERE t2.column3 = t1.column3);
Round duration - 50 Minutes
Round difficulty - Medium
This round had questions primarily from Spring Boot and Java. The interviewer was quite friendly and helped me with small hints when he felt I was stuck. Overall, this round went preety well.
Major differences between @RequestMapping and @GetMapping in Spring Boot
1. @RequestMapping can be used for all HTTP methods, while @GetMapping is specific to GET requests.
2. @RequestMapping allows for more customization with parameters like method, headers, and produces/consumes, while @GetMapping is more concise.
3. @GetMapping is a specialized version of @RequestMapping with method set to GET by default.
4. Example: @R...
Spring Boot is a framework that simplifies the development of Java applications by providing pre-configured settings and tools.
Spring Boot eliminates the need for manual configuration by providing defaults for most settings.
It includes embedded servers like Tomcat, Jetty, or Undertow, making it easy to run applications without deploying WAR files.
Spring Boot also offers a wide range of plugins to enhance development pr...
MVC in Spring is a design pattern that separates an application into three main components: Model, View, and Controller.
Model represents the data and business logic of the application.
View is responsible for rendering the user interface based on the data from the Model.
Controller handles user input, processes requests, and updates the Model accordingly.
Spring MVC provides annotations like @Controller, @RequestMapping, ...
Spring Boot is a framework that simplifies the development of Java applications by providing production-ready features out of the box.
Auto-configuration: Spring Boot automatically configures the application based on dependencies added to the project.
Embedded server: Spring Boot includes an embedded Tomcat, Jetty, or Undertow server for running applications without needing to deploy to a separate server.
Actuator: Built-...
Lambda expressions are anonymous functions that can be passed as arguments to methods or stored in variables.
Lambda expressions are written using the -> operator.
They can have zero or more parameters.
They can have zero or more statements.
They can be used to implement functional interfaces in Java.
Example: (a, b) -> a + b
Standard Java pre-defined functional interfaces include Function, Consumer, Predicate, Supplier, etc.
Function: Represents a function that accepts one argument and produces a result. Example: Function<Integer, String>
Consumer: Represents an operation that accepts a single input argument and returns no result. Example: Consumer<String>
Predicate: Represents a predicate (boolean-valued function) of one argument...
Abstract class can have both abstract and non-abstract methods, while interface can only have abstract methods.
Abstract class can have constructors, fields, and methods, while interface cannot have any implementation.
A class can only extend one abstract class, but can implement multiple interfaces.
Abstract classes are used to define common characteristics among subclasses, while interfaces are used to define a contract...
The super keyword is used to refer to the parent class of a subclass.
Used to call methods or access fields from the parent class
Helps in achieving method overriding in inheritance
Can be used to call the constructor of the parent class
Round duration - 30 Minutes
Round difficulty - Easy
This was a Technical Cum HR round where I was first asked some basic Java related concepts and then we discussed
about my expectations from the company , learnings and growth in the forthcomig years. I would suggest be honest and
try to communicate your thoughts properly in these type of rounds to maximise your chances of getting selected.
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
Capita interview questions for designations
I appeared for an interview in Dec 2018.
Sorting using JCL and COBOL
JCL can be used to submit a COBOL program for sorting
COBOL program can use SORT verb to sort data
Sorting can be done based on specific fields or criteria
COBOL program can use SORT-RETURN to check the status of the sort operation
Cursor is a database object used to manipulate data in a result set.
Cursor is used to fetch a set of rows from a result set.
It allows the application to move forward and backward through the result set.
Cursor can be declared and opened in SQL.
It can be used to update or delete rows in a result set.
Cursor can be closed explicitly or implicitly.
Use SQL query with WHERE clause to filter out low values while fetching data from DB2 table
Use SELECT statement to fetch data from table
Add WHERE clause with condition to filter out low values
Example: SELECT * FROM table_name WHERE column_name > 10
Use ORDER BY clause to sort the data in ascending or descending order
Display values from a table with alternate value
Use a loop to iterate through the table values
Use an if-else statement to check for alternate values
Display the alternate values using a different formatting or color
Consider using CSS or JavaScript to enhance the display
Get interview-ready with Top Capita Interview Questions
I appeared for an interview before Apr 2021.
Round duration - 60 Minutes
Round difficulty - Medium
In this round, I was first asked a simple coding question related to stack and recursion followed by an SQL query. After this, I was grilled on some fundamental concepts of Java, OOPS and Java 8.
Reverse a given stack of integers using recursion. You must accomplish this without utilizing extra space beyond the internal stack space used by recursion. Additionally, you ...
Reverse a given stack of integers using recursion without using extra space or loop constructs.
Use recursion to pop all elements from the original stack and store them in function call stack.
Once the stack is empty, push the elements back in reverse order using recursion.
Make use of the top(), pop(), and push() stack methods provided.
Use the SQL JOIN clause to combine two tables based on a related column.
Use the JOIN clause to specify the columns from each table that should be used for the join
Common types of joins include INNER JOIN, LEFT JOIN, RIGHT JOIN, and FULL JOIN
Example: SELECT * FROM table1 JOIN table2 ON table1.column = table2.column
JVM allocates 5 types of memory areas: Method Area, Heap, Stack, PC Register, and Native Method Stack.
Method Area stores class structures, method data, and runtime constants.
Heap is where objects are allocated and garbage collected.
Stack stores method-specific data and local variables.
PC Register holds the address of the JVM instruction currently being executed.
Native Method Stack is used for native method execution.
Standard Java pre-defined functional interfaces include Function, Consumer, Predicate, Supplier, etc.
Function: Represents a function that accepts one argument and produces a result.
Consumer: Represents an operation that accepts a single input argument and returns no result.
Predicate: Represents a predicate (boolean-valued function) of one argument.
Supplier: Represents a supplier of results.
Lambda expressions are anonymous functions that can be passed as arguments to methods or stored in variables.
Lambda expressions are concise and do not require a name.
They can be used to implement functional interfaces.
They can capture variables from their enclosing scope.
Syntax: (parameters) -> expression or (parameters) -> { statements; }
Example: (int a, int b) -> a + b
Optional class in Java provides a way to handle null values more effectively.
Prevents NullPointerException by explicitly checking for null values
Encourages developers to handle null values properly
Provides methods like isPresent(), ifPresent(), orElse() for better null value handling
Improves code readability and maintainability
Example: Optional<String> optionalString = Optional.ofNullable(str);
Round duration - 60 Minutes
Round difficulty - Medium
This round was majorly inclined towards Spring Boot and Hibernate and the questions can be answered only if you have some prior experience in working with these tech stacks.
Spring Actuator is a set of production-ready features to help monitor and manage your application.
Provides insight into application's health, metrics, and other useful information
Enables monitoring and managing of application in real-time
Helps in identifying and troubleshooting issues quickly
Can be easily integrated with other monitoring tools like Prometheus or Grafana
The @Transactional annotation in Spring JPA is used to manage transactions in database operations.
Ensures that a method is executed within a transaction context
Rolls back the transaction if an exception is thrown
Controls the transaction boundaries
Spring Batch is a lightweight, comprehensive framework for batch processing in Java.
Spring Batch provides reusable functions for processing large volumes of data.
It supports reading, processing, and writing data in chunks.
It includes features like transaction management, job processing, and job scheduling.
Example: Using Spring Batch to process and import large CSV files into a database.
The @RequestMapping annotation is used to map web requests to specific handler methods, while @RestController is used to define RESTful web services.
The @RequestMapping annotation is used to map HTTP requests to specific handler methods in a controller class.
It can be used to specify the URL path, HTTP method, request parameters, headers, and media types for the mapping.
Example: @RequestMapping(value = "/hello", method...
setMaxResults() limits the number of results returned by a query, while setFetchSize() sets the number of rows to fetch in each round trip to the database.
setMaxResults() is used to limit the number of results returned by a query.
setFetchSize() sets the number of rows to fetch in each round trip to the database.
setMaxResults() is typically used for pagination purposes.
setFetchSize() can improve performance by reducing ...
Hibernate provides several concurrency strategies like optimistic locking, pessimistic locking, and versioning.
Optimistic locking: Allows multiple transactions to read a row simultaneously, but only one can update it. Uses versioning or timestamp to check for conflicts.
Pessimistic locking: Locks the row for exclusive use by one transaction, preventing other transactions from accessing it until the lock is released.
Vers...
Session interface in Hibernate is used to create, read, update, and delete persistent objects.
Session interface is used to interact with the database in Hibernate.
It represents a single-threaded unit of work.
It is lightweight and designed to be instantiated each time an interaction with the database is needed.
Session interface provides methods like save, update, delete, get, load, etc.
Example: Session session = session
Round duration - 30 Minutes
Round difficulty - Easy
This is a cultural fitment testing round. HR was very frank and asked standard questions. Then we discussed about my
role.
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
I applied via Naukri.com and was interviewed in Oct 2017. There were 4 interview rounds.
Yes
Implemented OOPs concepts in the project using Stream API
Utilized Map in Collections to implement OOPs principles
Used Stream API to apply functional programming concepts in the project
The @Transactional annotation is used in Spring JPA to manage transactions in database operations.
The @Transactional annotation is used to mark a method or class as transactional.
It ensures that all database operations within the annotated method or class are executed within a single transaction.
If an exception occurs, the transaction is rolled back, and changes made within the transaction are not persisted.
The @Transa...
A controller to handle POST requests in a Spring REST API.
Create a new class annotated with @RestController
Define a method in the class annotated with @PostMapping
Use @RequestBody annotation to bind the request body to a parameter
Implement the logic to handle the POST request
Return the response using ResponseEntity
Annotations used in web services, pagination, exception handling in Spring
Web services in Spring can be annotated with @RestController or @Controller
Pagination can be achieved using @PageableDefault and @PageableParam
Exception handling can be done using @ExceptionHandler and @ControllerAdvice
I appeared for an interview in Sep 2016.
Developed a web application for tracking student attendance and performance
Used React.js for front-end development
Implemented RESTful APIs using Node.js and Express for back-end
Utilized MongoDB for database storage
Integrated authentication and authorization features for secure access
I am a passionate software engineer with experience in developing web applications using various technologies.
Experienced in developing web applications using HTML, CSS, JavaScript, and frameworks like React and Angular
Proficient in backend development with Node.js and databases like MongoDB and MySQL
Familiar with version control systems like Git and deployment tools like Docker
Strong problem-solving skills and ability
My hobbies include hiking, playing guitar, and reading science fiction novels.
Hiking in local trails and national parks
Playing acoustic and electric guitar in a band
Reading books by authors like Isaac Asimov and Philip K. Dick
Cognizant offers diverse projects, global exposure, and a strong focus on employee growth and development.
Cognizant provides opportunities to work on diverse projects, allowing for a broad range of experience.
The company has a global presence, offering exposure to different cultures and markets.
Cognizant emphasizes employee growth and development through training programs and career advancement opportunities.
Engineering allows me to solve complex problems, innovate, and create solutions that have a real impact on society.
Engineering provides a platform to apply scientific knowledge to practical problems.
It involves critical thinking, problem-solving, and creativity.
Engineers have the opportunity to work on cutting-edge technologies and make a tangible difference in the world.
For example, designing software systems to impro...
Pin diagram of 8085 microprocessor
8085 has 40 pins in total
Pins are grouped into 5 categories: power supply, address bus, data bus, control and status signals
Pin 1 is the reset pin, Pin 40 is the Vcc pin
Examples of control signals: RD, WR, ALE, INT, HOLD
Examples of status signals: S0, S1, IO/M, HLDA
8086 is an advanced version of 8085 with more features and capabilities.
8086 has a 16-bit data bus while 8085 has an 8-bit data bus.
8086 has more registers than 8085.
8086 has a higher clock speed than 8085.
8086 supports virtual memory while 8085 does not.
8086 has a more advanced instruction set than 8085.
Example: 8086 can perform multiplication and division operations while 8085 cannot.
Opamp stands for operational amplifier. It is an electronic device used to amplify and process signals.
Opamps have high gain and can amplify signals to a very high degree.
They are commonly used in audio amplifiers, filters, and signal processing circuits.
Opamps have two input terminals and one output terminal.
They can be configured in different ways to perform various functions such as amplification, filtering, and osc...
Waterfall model has five phases: requirements, design, implementation, testing, and maintenance.
Requirements phase: gathering and documenting requirements
Design phase: creating a detailed design based on requirements
Implementation phase: coding and integrating components
Testing phase: verifying that the system meets requirements
Maintenance phase: making changes and updates to the system
Example: building a website using...
Types of testing include unit, integration, system, acceptance, regression, performance, and security testing.
Unit testing: testing individual units or components of the software
Integration testing: testing how different units or components work together
System testing: testing the entire system as a whole
Acceptance testing: testing to ensure the software meets the requirements and is ready for release
Regression testing...
I enjoy participating in coding competitions, volunteering at tech events, and attending hackathons.
Participating in coding competitions such as Codeforces or Topcoder
Volunteering at tech events like hackathons or coding workshops
Attending hackathons to collaborate with other developers and work on innovative projects
My goal in life is to continuously learn and grow, while making a positive impact on the world around me.
Continuous learning and personal growth
Making a positive impact on the world
Achieving work-life balance
Building meaningful relationships
Contributing to the community
I am open to relocation for the right opportunity.
I am willing to relocate for the job.
I have no issues moving to a new location for work.
I am excited about the possibility of experiencing a new city or country.
I have relocated for previous jobs and have found it to be a positive experience.
I want to relocate for career growth and new experiences, but I am hesitant due to leaving behind family and friends.
Career growth opportunities in new location
Desire for new experiences and challenges
Concerns about leaving behind family and friends
I enjoy watching a variety of shows on TV, including dramas, comedies, and documentaries.
I watch dramas like Grey's Anatomy and This Is Us
I enjoy comedies such as The Office and Brooklyn Nine-Nine
I also like watching documentaries on topics like nature and history
I last saw the movie Inception.
Directed by Christopher Nolan
Released in 2010
Genre: Sci-Fi/Thriller
Starring Leonardo DiCaprio
Some of the top questions asked at the Capita Software Consultant interview -
based on 1 interview
3 Interview rounds
based on 56 reviews
Rating in categories
Senior Executive
1.2k
salaries
| ₹1.5 L/yr - ₹6.3 L/yr |
Softwaretest Engineer
608
salaries
| ₹2.2 L/yr - ₹8.5 L/yr |
Senior Software Consultant
536
salaries
| ₹7.8 L/yr - ₹26.5 L/yr |
Customer Service Executive
412
salaries
| ₹1.5 L/yr - ₹6.7 L/yr |
Software Consultant
386
salaries
| ₹4 L/yr - ₹15.3 L/yr |
Cognizant
DXC Technology
Optum Global Solutions
FIS