CTS INFOTECH
Cognizant Interview Questions and Answers
Q1. List tuples c puthom
The question is asking for a list of tuples containing the letter 'c' and the word 'puthom'.
A tuple is a data structure that contains a sequence of elements.
The tuples should contain the letter 'c' and the word 'puthom'.
Example: ('c', 'puthom')
Q2. Types of testing
Types of testing include functional testing, non-functional testing, manual testing, automated testing, regression testing, and performance testing.
Functional testing focuses on verifying that the software functions correctly according to the specified requirements.
Non-functional testing includes aspects like performance, usability, security, and compatibility testing.
Manual testing involves testers executing test cases manually without the use of automation tools.
Automated t...read more
Q3. Difference between smoke and regression testing
Smoke testing is a quick test to check if the basic functionalities of the software are working, while regression testing is a comprehensive test to ensure that new code changes have not affected existing functionalities.
Smoke testing is done to check if the build is stable enough for further testing, while regression testing is done to ensure that new code changes have not introduced any new bugs.
Smoke testing is usually a subset of regression testing, focusing on critical f...read more
Q4. Difference between test case and scenario
Test case is a detailed step-by-step procedure to test a specific functionality, while scenario is a sequence of steps to test a specific user flow.
Test case is specific to a particular functionality or feature
Scenario is a sequence of steps to test a user flow
Test case includes preconditions, steps, expected results, and postconditions
Scenario may include multiple test cases
Example: Test case - Verify login functionality with valid credentials; Scenario - User registration f...read more
Q5. Difference between get text and get attributes
Get text retrieves the visible text of an element, while get attributes retrieves the specified attribute value of an element.
Get text retrieves the visible text displayed on the webpage, while get attributes retrieves the specified attribute value like 'href' or 'class'.
Get text is used to verify the text content of an element, while get attributes is used to verify specific attributes of an element.
Example: Using get text to verify the text of a button element, and using ge...read more
Q6. Why main method is static?
Main method is static because it belongs to the class itself, not to any specific instance of the class.
Main method is the entry point of a Java program and needs to be called by the JVM without creating an object of the class.
Static methods can be called without creating an instance of the class, making main method static allows it to be called directly by the JVM.
Having main method as static ensures that it can be accessed without the need for an object of the class to be c...read more
More about working at CTS INFOTECH
Interview Process at Cognizant
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month