Cognizant
10+ Ind Synergy Interview Questions and Answers
Q1. what is the difference between throw and throws in Java?
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 {}
Q2. How will you handle multiple windows in Selenium?
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
Q3. what is 204 , 400 response code in REST apis?
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 request is successful with no content to return, the serve...read more
Q4. Coding give the count of upper case and lower case letters in a string
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.
Q5. What's is meant by automation testing
Automation testing refers to the use of software tools to execute pre-scripted tests on a software application.
Automation testing is faster and more reliable than manual testing
It helps to identify defects early in the development cycle
It can be used for regression testing, load testing, and performance testing
Examples of automation testing tools include Selenium, Appium, and JMeter
Q6. Difference between patch release and Hot fix and Cold Fix
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 can be implemented during regular maintenance.
Examples: P...read more
Q7. SQL query for intermediate.
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
Q8. write xpath for search in google
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']
Q9. How automation testing goes on
Automation testing involves using software tools to execute pre-scripted tests on a software application.
Automation testing is performed using automation tools like Selenium, Appium, etc.
Test scripts are created to simulate user actions and verify expected results.
Automation testing can be used for regression testing, load testing, and performance testing.
Automation testing can be integrated with Continuous Integration/Continuous Deployment (CI/CD) pipelines.
Automation testin...read more
Q10. Write sort program of a list
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
Q11. Explain the framework
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 architectural pattern, such as Model-View-Controller (MVC) or Test-Dri...read more
More about working at Cognizant
Interview Process at Ind Synergy
Top Automation Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month