Upload Button Icon Add office photos
Engaged Employer

i

This company page is being actively managed by Cognizant Team. If you also belong to the team, you can get access from here

Cognizant Verified Tick

Compare button icon Compare button icon Compare

Filter interviews by

Cognizant Automation Engineer Interview Questions and Answers

Updated 2 Apr 2025

12 Interview questions

An Automation Engineer was asked 2mo ago
Q. Write a program to arrange the words in a given string in lexicographically ascending order.
Ans. 

Sort words in a string in lexicographical order, arranging them from A to Z.

  • Split the string into words using space as a delimiter. Example: 'apple banana cherry' -> ['apple', 'banana', 'cherry']

  • Use a sorting function to arrange the words. Example: sorted(['apple', 'banana', 'cherry']) -> ['apple', 'banana', 'cherry']

  • Join the sorted words back into a single string. Example: ' '.join(['apple', 'banana', 'cher...

An Automation Engineer was asked 2mo ago
Q. Given some values and keys, how would you put them into two array lists using a hashmap?
Ans. 

Use a HashMap to store keys and values, then transfer them to two ArrayLists for further processing.

  • Create a HashMap to store key-value pairs: HashMap<String, String> map = new HashMap<>();

  • Add entries to the HashMap: map.put('key1', 'value1');

  • Initialize two ArrayLists: ArrayList<String> keysList = new ArrayList<>(); ArrayList<String> valuesList = new ArrayList<>();

  • Iterate throug...

Automation Engineer Interview Questions Asked at Other Companies

asked in GEA Group
Q1. 16) What is modbus ? Types of modbus? How many slaves we can conn ... read more
Q2. 1. Explain oops concepts in coding. 2. Write a program to find mi ... read more
asked in Blue Yonder
Q3. What is the difference between Absolute and Relative XPaths?
asked in GEA Group
Q4. What is the ASI protocol? How many slaves can be connected to one ... read more
Q5. Write a program to find the number of palindrome words in a given ... read more
An Automation Engineer was asked 8mo ago
Q. Write a program to sort a list.
Ans. 

Sort program for a list of strings

  • Use a sorting algorithm like bubble sort, selection sort, or quicksort

  • Compare adjacent elements and swap them if they are in the wrong order

  • Repeat this process until the list is sorted

An Automation Engineer was asked 8mo ago
Q. Write an XPath expression to locate the search input field on the Google homepage.
Ans. 

XPath for search in Google

  • Use the input element with name attribute 'q' for the search box

  • XPath: //input[@name='q']

  • Use the button element with name attribute 'btnK' for the search button

  • XPath: //input[@name='btnK']

What people are saying about Cognizant

View All
a junior software engineer
2w
Job offer in Malaysia - legit or scam?
Hey everyone, I received a job proposal from Mindgraph for a Junior Mainframe Developer position in Malaysia (onsite). Not sure if it's a real deal. They found my resume on Naukri and the offer includes: * Experience: 3+ years on cardlink, VSAM, CICS, JCL * Location: Malaysia (Accenture client in Kuala Lumpur) * Notice: 0-60 days * Benefits: One-way ticket, 1-week stay, medical insurance, visa. Has anyone heard of Mindgraph or had a similar experience? Note : This is a permanent position with Mindgragh and you need to work with our client Accenture - Malaysia (Kaula Lumpur) & we will provide one way Air Ticket from India - Malaysia, 1 Week Accommodation, Medical Insurance and will take care of the Visa process also. Any insights would be appreciated!
Got a question about Cognizant?
Ask anonymously on communities.
An Automation Engineer was asked
Q. How will you handle multiple windows in Selenium?
Ans. 

Handling multiple windows in Selenium can be achieved using window handles.

  • Use getWindowHandles() method to get all window handles

  • Switch between windows using switchTo().window() method

  • Perform actions on each window as needed

An Automation Engineer was asked
Q. What is the difference between throw and throws in Java?
Ans. 

throw is used to throw an exception in Java, while throws is used to declare an exception that a method might throw.

  • throw is used to explicitly throw an exception within a method.

  • throws is used in the method signature to declare that the method might throw a specific type of exception.

  • Example: throw new Exception("An error occurred!");

  • Example: public void method() throws IOException {}

An Automation Engineer was asked
Q. What are the 204 and 400 response codes in REST APIs?
Ans. 

204 and 400 are HTTP response codes in REST APIs indicating success and client error, respectively.

  • 204 response code indicates that the server has successfully fulfilled the request and there is no content to send in the response.

  • 400 response code indicates that the server could not understand the request due to bad syntax or missing required parameters.

  • Example: If a client sends a request to update a resource and...

Are these interview questions helpful?
An Automation Engineer was asked
Q. Write code to count the number of uppercase and lowercase letters in a string.
Ans. 

Count the number of upper case and lower case letters in a string using coding.

  • Iterate through each character in the string and check if it is upper case or lower case using built-in functions or ASCII values.

  • Keep track of the count of upper case and lower case letters separately.

  • Return the counts of upper case and lower case letters.

🔥 Asked by recruiter 3 times
An Automation Engineer was asked
Q. Explain the framework.
Ans. 

A framework is a set of guidelines, tools, and libraries that provide structure and support for developing software applications.

  • A framework provides a foundation for building software applications by defining the structure, flow, and behavior of the application.

  • It includes pre-defined functions, classes, and modules that can be used to simplify and accelerate development.

  • Frameworks often follow a specific archite...

An Automation Engineer was asked
Q. What is the difference between a patch release, a hotfix, and a coldfix?
Ans. 

Patch release is a set of changes to fix bugs or improve functionality, hot fix is an urgent update to address critical issues, and cold fix is a planned update for non-urgent issues.

  • Patch release is a scheduled update that includes multiple fixes and improvements.

  • Hot fix is an immediate update to address critical issues that cannot wait for the next patch release.

  • Cold fix is a planned update for non-urgent issues...

Cognizant Automation Engineer Interview Experiences

13 interviews found

Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
-

I applied via Naukri.com and was interviewed in Nov 2024. There were 2 interview rounds.

Round 1 - Technical 

(2 Questions)

  • Q1. Can you tell me about yourself?
  • Ans. 

    I am a highly skilled Automation Engineer with a strong background in programming and problem-solving.

    • Experienced in developing automated test scripts using tools like Selenium and Appium

    • Proficient in programming languages such as Java, Python, and C#

    • Familiar with CI/CD pipelines and version control systems like Git

    • Strong analytical skills and attention to detail

    • Excellent communication and teamwork abilities

  • Answered by AI
  • Q2. Topic related to Locators, Waits,Handel Dropdown Menu, OOPS concepts, frame work used in previous organization
Round 2 - Technical 

(2 Questions)

  • Q1. Tell me about yourself
  • Ans. 

    I am a highly skilled Automation Engineer with a strong background in programming and problem-solving.

    • Experienced in designing, developing, and implementing automated testing solutions

    • Proficient in programming languages such as Python, Java, and C++

    • Familiar with various automation tools like Selenium and Jenkins

    • Strong analytical skills and attention to detail

    • Excellent communication and teamwork abilities

  • Answered by AI
  • Q2. FrameWoek used, Locators, How to take Screenshot in Selenium,Java program, Handel dropdown menu
Interview experience
3
Average
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
No response

I applied via Recruitment Consulltant and was interviewed in Sep 2024. There was 1 interview round.

Round 1 - Technical 

(2 Questions)

  • Q1. Write sort program of a list
  • Ans. 

    Sort program for a list of strings

    • Use a sorting algorithm like bubble sort, selection sort, or quicksort

    • Compare adjacent elements and swap them if they are in the wrong order

    • Repeat this process until the list is sorted

  • Answered by AI
  • Q2. Write xpath for search in google
  • Ans. 

    XPath for search in Google

    • Use the input element with name attribute 'q' for the search box

    • XPath: //input[@name='q']

    • Use the button element with name attribute 'btnK' for the search button

    • XPath: //input[@name='btnK']

  • Answered by AI

Skills evaluated in this interview

Interview experience
1
Bad
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I appeared for an interview in Mar 2025, where I was asked the following questions.

  • Q1. Given some values and keys,asked to put into two arraylists using hashmap
  • Ans. 

    Use a HashMap to store keys and values, then transfer them to two ArrayLists for further processing.

    • Create a HashMap to store key-value pairs: HashMap<String, String> map = new HashMap<>();

    • Add entries to the HashMap: map.put('key1', 'value1');

    • Initialize two ArrayLists: ArrayList<String> keysList = new ArrayList<>(); ArrayList<String> valuesList = new ArrayList<>();

    • Iterate through the...

  • Answered by AI
  • Q2. Arrange words in a string lexicographically ascending order
  • Ans. 

    Sort words in a string in lexicographical order, arranging them from A to Z.

    • Split the string into words using space as a delimiter. Example: 'apple banana cherry' -> ['apple', 'banana', 'cherry']

    • Use a sorting function to arrange the words. Example: sorted(['apple', 'banana', 'cherry']) -> ['apple', 'banana', 'cherry']

    • Join the sorted words back into a single string. Example: ' '.join(['apple', 'banana', 'cherry'])...

  • Answered by AI
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
-
Result
No response

I applied via Recruitment Consulltant and was interviewed in Apr 2024. There was 1 interview round.

Round 1 - Technical 

(4 Questions)

  • Q1. What is the difference between throw and throws in Java?
  • Ans. 

    throw is used to throw an exception in Java, while throws is used to declare an exception that a method might throw.

    • throw is used to explicitly throw an exception within a method.

    • throws is used in the method signature to declare that the method might throw a specific type of exception.

    • Example: throw new Exception("An error occurred!");

    • Example: public void method() throws IOException {}

  • Answered by AI
  • Q2. How will you handle multiple windows in Selenium?
  • Ans. 

    Handling multiple windows in Selenium can be achieved using window handles.

    • Use getWindowHandles() method to get all window handles

    • Switch between windows using switchTo().window() method

    • Perform actions on each window as needed

  • Answered by AI
  • Q3. What is 204 , 400 response code in REST apis?
  • Ans. 

    204 and 400 are HTTP response codes in REST APIs indicating success and client error, respectively.

    • 204 response code indicates that the server has successfully fulfilled the request and there is no content to send in the response.

    • 400 response code indicates that the server could not understand the request due to bad syntax or missing required parameters.

    • Example: If a client sends a request to update a resource and the ...

  • Answered by AI
  • Q4. Coding give the count of upper case and lower case letters in a string
  • Ans. 

    Count the number of upper case and lower case letters in a string using coding.

    • Iterate through each character in the string and check if it is upper case or lower case using built-in functions or ASCII values.

    • Keep track of the count of upper case and lower case letters separately.

    • Return the counts of upper case and lower case letters.

  • Answered by AI

Skills evaluated in this interview

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

Programs for fibonacci

Round 2 - Assignment 

Application live scenario

Automation Engineer Interview Questions & Answers

user image Rathindranath Das

posted on 4 Jul 2024

Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(2 Questions)

  • Q1. Selenium waits, java coding
  • Q2. SQL queries, Agile ceremonies
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
Selected Selected

I applied via Naukri.com and was interviewed in Oct 2023. There were 2 interview rounds.

Round 1 - Technical 

(1 Question)

  • Q1. Make sure you know all Java Concepts and selenium concepts
Round 2 - HR 

(1 Question)

  • Q1. It was salary Negotiations with HR

Interview Preparation Tips

Topics to prepare for Cognizant Automation Engineer interview:
  • Java
  • Selenium
  • Agile
  • Pipeline
Interview preparation tips for other job seekers - Be prepared and handle it in a cool manner.
Interview experience
3
Average
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(1 Question)

  • Q1. 1. Difference between playwright and selenium 2. 1 basic program in candidate's preferred languag
Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - Coding Test 

Logical Java, and Manual Testing

Round 3 - Technical 

(2 Questions)

  • Q1. Manual and Selenium
  • Q2. Difference between patch release and Hot fix and Cold Fix
  • Ans. 

    Patch release is a set of changes to fix bugs or improve functionality, hot fix is an urgent update to address critical issues, and cold fix is a planned update for non-urgent issues.

    • Patch release is a scheduled update that includes multiple fixes and improvements.

    • Hot fix is an immediate update to address critical issues that cannot wait for the next patch release.

    • Cold fix is a planned update for non-urgent issues that...

  • Answered by AI

Skills evaluated in this interview

I applied via Campus Placement and was interviewed in Jan 2022. There were 4 interview rounds.

Round 1 - Aptitude Test 

Maths speed/ratio/time/profit and loss.

Round 2 - Aptitude Test 

The question were from reasoning and arithmetical and logical section. One can use basic go through of aptitude.

Round 3 - Coding Test 

The question was about find the occurrence of a word in a sentence. I used array to solve that in c++ language.

Round 4 - Technical 

(2 Questions)

  • Q1. Tell me something about yourself, the important topics of your favourite subject, reverse a Linked list in c++.
  • Q2. SQL query for intermediate.
  • Ans. 

    SQL query for intermediate level

    • Use SELECT statement to retrieve data from tables

    • Use WHERE clause to filter data based on conditions

    • Use JOIN to combine data from multiple tables

    • Use GROUP BY to group data based on a column

    • Use ORDER BY to sort data based on a column

  • Answered by AI

Interview Preparation Tips

Topics to prepare for Cognizant Automation Engineer interview:
  • C++
  • SQL
  • Data Structures
Interview preparation tips for other job seekers - One can use GFG and Leet Code to practice and basic practice on arithmetical and logical and reasoning using any YouTube channel.

Skills evaluated in this interview

Cognizant Interview FAQs

How many rounds are there in Cognizant Automation Engineer interview?
Cognizant interview process usually has 2 rounds. The most common rounds in the Cognizant interview process are Technical, Coding Test and Resume Shortlist.
How to prepare for Cognizant Automation Engineer interview?
Go through your CV in detail and study all the technologies mentioned in your CV. Prepare at least two technologies or languages in depth if you are appearing for a technical interview at Cognizant. The most common topics and skills that interviewers at Cognizant expect are Java, Automation Testing, Cucumber, Automation Engineering and Jenkins.
What are the top questions asked in Cognizant Automation Engineer interview?

Some of the top questions asked at the Cognizant Automation Engineer interview -

  1. what is the difference between throw and throws in Ja...read more
  2. How will you handle multiple windows in Seleni...read more
  3. what is 204 , 400 response code in REST ap...read more

Tell us how to improve this page.

Overall Interview Experience Rating

3.6/5

based on 12 interview experiences

Difficulty level

Moderate 100%

Duration

Less than 2 weeks 57%
2-4 weeks 43%
View more
Cognizant Automation Engineer Salary
based on 316 salaries
₹3.3 L/yr - ₹11.5 L/yr
8% more than the average Automation Engineer Salary in India
View more details

Cognizant Automation Engineer Reviews and Ratings

based on 33 reviews

3.9/5

Rating in categories

3.8

Skill development

3.6

Work-life balance

3.4

Salary

3.7

Job security

4.0

Company culture

2.8

Promotions

3.6

Work satisfaction

Explore 33 Reviews and Ratings
Associate
73.1k salaries
unlock blur

₹5.3 L/yr - ₹12.5 L/yr

Programmer Analyst
56.2k salaries
unlock blur

₹3.5 L/yr - ₹7.3 L/yr

Senior Associate
53k salaries
unlock blur

₹10.6 L/yr - ₹23.4 L/yr

Senior Processing Executive
29.8k salaries
unlock blur

₹2.2 L/yr - ₹6.5 L/yr

Technical Lead
19k salaries
unlock blur

₹6 L/yr - ₹21.3 L/yr

Explore more salaries
Compare Cognizant with

TCS

3.6
Compare

Infosys

3.6
Compare

Wipro

3.7
Compare

Accenture

3.7
Compare
write
Share an Interview