i
Cognizant
Filter interviews by
Cucumber framework executes feature files using step definitions and generates reports.
Cucumber reads feature files written in Gherkin syntax
Step definitions are written in programming language
Cucumber matches steps in feature file with step definitions
Cucumber generates reports after execution
Absolute Xpath is the complete path from the root element while relative Xpath is the path from the current element.
Absolute Xpath starts with a single forward slash (/) and is used to locate an element from the root node.
Relative Xpath starts with a double forward slash (//) and is used to locate an element from the current node.
Absolute Xpath is more specific and less flexible while relative Xpath is more flexib...
Overloading is having multiple methods with the same name but different parameters. Overriding is having a method in a subclass with the same name and parameters as a method in its superclass.
Overloading is compile-time polymorphism while overriding is runtime polymorphism.
Overloading is used to provide different implementations of the same method for different input parameters.
Overriding is used to provide a spec...
Scenario outlines are templates for scenarios with placeholders for input values.
Scenario outlines are used in BDD frameworks like Cucumber.
They allow for the creation of multiple scenarios with different input values.
Scenario outlines use placeholders like
Example: Given a
Scenario outlines are more flexible and reusable than regular s...
What people are saying about Cognizant
How to skip a specific test case in TestNG?
Use @Test(enabled = false) annotation to skip a test case
Use @Test(groups = {"skip"}) annotation and exclude the group from test execution
Use ITestResult.SKIP status to skip a test case programmatically
To select a checkbox in Selenium, locate the checkbox element and use the 'click' method.
Locate the checkbox element using any of the available locators in Selenium
Use the 'click' method to select the checkbox
Verify that the checkbox is selected using the 'isSelected' method
TakescreenShot sudo code captures the screen and saves it as an image file.
Import necessary libraries for capturing the screen and saving images
Define a function to capture the screen
Specify the file format and location to save the screenshot
Call the function to capture and save the screenshot
The get method is used to retrieve a value from a data structure, while the quit method is used to terminate a program or session.
The get method is commonly used in programming languages to access elements from arrays, lists, dictionaries, etc.
The quit method is typically used to gracefully exit a program or session, closing any open resources or connections.
Example: In Python, the get method is used to retrieve v...
Exception handling process involves identifying, catching, and handling errors in the software.
Identify potential exceptions and define exception classes
Catch exceptions using try-catch blocks
Handle exceptions appropriately, either by logging or displaying error messages
Implement a fallback mechanism to handle unexpected exceptions
Test exception handling scenarios thoroughly
TestNG annotations are executed in a specific order to ensure proper test execution.
BeforeSuite
BeforeTest
BeforeClass
BeforeMethod
Test
AfterMethod
AfterClass
AfterTest
AfterSuite
I applied via Recruitment Consulltant and was interviewed before Feb 2021. There was 1 interview round.
The get method is used to retrieve a value from a data structure, while the quit method is used to terminate a program or session.
The get method is commonly used in programming languages to access elements from arrays, lists, dictionaries, etc.
The quit method is typically used to gracefully exit a program or session, closing any open resources or connections.
Example: In Python, the get method is used to retrieve values...
TakescreenShot sudo code captures the screen and saves it as an image file.
Import necessary libraries for capturing the screen and saving images
Define a function to capture the screen
Specify the file format and location to save the screenshot
Call the function to capture and save the screenshot
Exception handling process involves identifying, catching, and handling errors in the software.
Identify potential exceptions and define exception classes
Catch exceptions using try-catch blocks
Handle exceptions appropriately, either by logging or displaying error messages
Implement a fallback mechanism to handle unexpected exceptions
Test exception handling scenarios thoroughly
Overloading is having multiple methods with the same name but different parameters. Overriding is having a method in a subclass with the same name and parameters as a method in its superclass.
Overloading is compile-time polymorphism while overriding is runtime polymorphism.
Overloading is used to provide different implementations of the same method for different input parameters.
Overriding is used to provide a specific ...
To select a checkbox in Selenium, locate the checkbox element and use the 'click' method.
Locate the checkbox element using any of the available locators in Selenium
Use the 'click' method to select the checkbox
Verify that the checkbox is selected using the 'isSelected' method
How to skip a specific test case in TestNG?
Use @Test(enabled = false) annotation to skip a test case
Use @Test(groups = {"skip"}) annotation and exclude the group from test execution
Use ITestResult.SKIP status to skip a test case programmatically
Absolute Xpath is the complete path from the root element while relative Xpath is the path from the current element.
Absolute Xpath starts with a single forward slash (/) and is used to locate an element from the root node.
Relative Xpath starts with a double forward slash (//) and is used to locate an element from the current node.
Absolute Xpath is more specific and less flexible while relative Xpath is more flexible an...
Cucumber framework executes feature files using step definitions and generates reports.
Cucumber reads feature files written in Gherkin syntax
Step definitions are written in programming language
Cucumber matches steps in feature file with step definitions
Cucumber generates reports after execution
Scenario outlines are templates for scenarios with placeholders for input values.
Scenario outlines are used in BDD frameworks like Cucumber.
They allow for the creation of multiple scenarios with different input values.
Scenario outlines use placeholders like
Example: Given a
Scenario outlines are more flexible and reusable than regular scenar...
TestNG annotations are executed in a specific order to ensure proper test execution.
BeforeSuite
BeforeTest
BeforeClass
BeforeMethod
Test
AfterMethod
AfterClass
AfterTest
AfterSuite
I applied via Naukri.com and was interviewed in Nov 2019. There were 3 interview rounds.
I'm seeking new challenges and opportunities for growth that align with my career goals and aspirations.
Desire for professional growth: I'm looking to expand my skill set and take on more leadership responsibilities.
Seeking a better cultural fit: My current company has a different work culture than what I thrive in; I value collaboration and innovation.
Interest in new technologies: I'm excited about working with cuttin...
I applied via LinkedIn and was interviewed before Jul 2020. There were 4 interview rounds.
I applied via Company Website and was interviewed before Oct 2020. There were 3 interview rounds.
What people are saying about Cognizant
I applied via Amcat and was interviewed before Jul 2021. There were 2 interview rounds.
Refer R S Agarwal book for apptitude
A C program to perform arithmetic operations on fractional numbers.
Use float or double data type to store fractional numbers.
Use scanf() to take input from the user.
Perform arithmetic operations like addition, subtraction, multiplication, and division.
Use printf() to display the result.
I applied via Company Website and was interviewed before Feb 2020. There was 1 interview round.
I applied via LinkedIn and was interviewed before Jan 2021. There was 1 interview round.
I applied via Recruitment Consulltant and was interviewed before Feb 2021. There were 3 interview rounds.
1.It covers all aptitude topics, and English sentences
2.Essay writing
3.Coding
I applied via Naukri.com and was interviewed before Mar 2021. There were 3 interview rounds.
I come from a supportive family that values education and hard work, which has greatly influenced my career path in technology.
Parents: My parents are both educators, instilling a love for learning and curiosity in me from a young age.
Siblings: I have a younger sister who is pursuing a degree in computer science, and we often collaborate on tech projects together.
Family Values: Our family emphasizes the importance of p...
I bring a unique blend of technical skills, problem-solving abilities, and a passion for innovation that aligns with your team's goals.
Strong technical skills: Proficient in languages like Python and Java, demonstrated by developing a web application that improved user engagement by 30%.
Problem-solving mindset: Successfully resolved a critical bug in a production system under tight deadlines, ensuring minimal downtime.
...
I expect a competitive salary based on my skills, experience, and industry standards, ideally in the range of $X to $Y.
Research industry standards: For example, Glassdoor or Payscale can provide insights into average salaries for similar roles.
Consider your experience: If you have 5 years of experience, you might expect a higher salary than someone just starting.
Factor in location: Salaries can vary significantly based...
I excel in problem-solving and teamwork, but I sometimes struggle with time management under tight deadlines.
Strength: Strong problem-solving skills - I enjoy tackling complex coding challenges, like optimizing algorithms for better performance.
Strength: Effective teamwork - I thrive in collaborative environments, having successfully led a project with cross-functional teams.
Weakness: Time management - I occasionally u...
Yes, I have technical certifications and I am proficient in multiple programming languages and development tools.
I have certifications in Java and Python
I am proficient in Java, Python, C++, and JavaScript
I have used development tools such as Eclipse, Visual Studio Code, and PyCharm
based on 1 review
Rating in categories
Associate
73.2k
salaries
| ₹5.4 L/yr - ₹12.5 L/yr |
Programmer Analyst
56.2k
salaries
| ₹2 L/yr - ₹9.2 L/yr |
Senior Associate
55.1k
salaries
| ₹8.4 L/yr - ₹28.5 L/yr |
Senior Processing Executive
29.8k
salaries
| ₹2.2 L/yr - ₹6.5 L/yr |
Technical Lead
18.1k
salaries
| ₹6 L/yr - ₹25.5 L/yr |
TCS
Infosys
Wipro
Accenture