Commonwealth Bank of Australia, India
Department Of Land And Building Interview Questions and Answers
Q1. Difference between interface and abstract class
Interface defines only method signatures while abstract class can have both method signatures and implementations.
An interface can be implemented by multiple classes while a class can only inherit from one abstract class.
An abstract class can have constructors while an interface cannot.
An abstract class can have non-abstract methods while an interface can only have abstract methods.
An abstract class can have instance variables while an interface cannot.
Example of interface: R...read more
Q2. What are OOPS Concepts
OOPS Concepts are the fundamental principles of Object-Oriented Programming.
Encapsulation - bundling of data and methods that operate on that data
Inheritance - ability of a class to inherit properties and methods from a parent class
Polymorphism - ability of objects to take on multiple forms or have multiple behaviors
Abstraction - hiding of complex implementation details and showing only essential features
Q3. How to start DB using Selenium
To start DB using Selenium, we need to establish a connection to the database and execute SQL queries.
Import the necessary libraries for database connectivity and Selenium
Create a connection to the database using the appropriate driver
Execute SQL queries to perform desired actions on the database
Close the database connection after use
Q4. How to take xpath of a row
To take xpath of a row, identify the unique identifier of the row and use it in the xpath expression.
Identify the unique identifier of the row, such as an ID or class attribute
Use the identifier in the xpath expression to locate the row
Example: //table[@id='tableId']/tbody/tr[@class='rowClass']
Q5. Describe agile ceremonies in project
Agile ceremonies are regular meetings held during a project to ensure collaboration, communication, and progress towards goals.
Sprint planning: setting goals and tasks for the upcoming sprint
Daily stand-up: brief meetings to discuss progress and any obstacles
Sprint review: demonstration of completed work to stakeholders
Sprint retrospective: reflection on the previous sprint and identifying areas for improvement
Q6. Explain Selenium Framework
Selenium Framework is an open-source automation tool used for testing web applications.
It supports multiple programming languages like Java, Python, C#, etc.
It consists of three main components: Selenium IDE, Selenium WebDriver, and Selenium Grid.
It allows for cross-browser testing and supports various browsers like Chrome, Firefox, Safari, etc.
It provides various features like element locating, handling pop-ups and alerts, taking screenshots, etc.
It can be integrated with ot...read more
Q7. Explain your Automation framework
My automation framework is a hybrid framework combining data-driven and keyword-driven approaches for efficient test automation.
Combines data-driven and keyword-driven approaches
Utilizes reusable functions and libraries
Supports parallel execution for faster testing
Integrates with CI/CD pipelines for continuous testing
Provides detailed reporting and logging for easy analysis
Q8. Explain OOPS concept
OOPS (Object-Oriented Programming) is a programming paradigm based on the concept of objects, which can contain data in the form of fields and code in the form of procedures.
OOPS focuses on creating objects that interact with each other to solve a problem.
It involves concepts like inheritance, encapsulation, polymorphism, and abstraction.
Inheritance allows a class to inherit properties and behavior from another class.
Encapsulation involves bundling data and methods that opera...read more
Reviews
Interviews
Salaries
Users/Month