IBM
10+ AuthoringMinds Interview Questions and Answers
Q1. What is the code for swapping numbers or alphabets using Python?
The code for swapping numbers or alphabets in Python involves using a temporary variable to store one of the values.
Create two variables to store the values to be swapped.
Use a temporary variable to store one of the values.
Assign the first value to the second variable and the temporary variable to the first variable.
Q2. how to do when dev think it is bug but you do not agree
Discuss with dev, review requirements and test cases, provide evidence from testing
Have a discussion with the developer to understand their perspective and reasoning behind considering it a bug
Review the requirements and test cases to ensure that the behavior in question aligns with the expected functionality
Provide evidence from testing, such as logs, screenshots, or test results, to support your stance
Collaborate with the team to come to a consensus on whether it is a bug o...read more
Q3. What is the difference between constructor overloading and constructor overriding?
Constructor overloading is having multiple constructors in a class with different parameters, while constructor overriding is redefining a superclass constructor in a subclass.
Constructor overloading allows a class to have multiple constructors with different parameters.
Constructor overriding involves redefining a superclass constructor in a subclass with the same name and parameters.
In constructor overloading, the constructors must have different parameter lists, while in co...read more
Q4. Difference between Authentication and Authorization
Authentication verifies the identity of a user, while authorization determines what actions a user is allowed to perform.
Authentication confirms the user's identity through credentials like username and password.
Authorization controls access to resources based on the user's identity and permissions.
Example: Logging into a website (authentication) and then accessing specific pages based on user roles (authorization).
Q5. What are server and client side codes
Server side code runs on the server and client side code runs on the client's browser.
Server side code is executed on the server before the data is sent to the client's browser.
Client side code is executed on the client's browser after receiving the data from the server.
Examples of server side code include PHP, Java, and Python.
Examples of client side code include JavaScript, HTML, and CSS.
Q6. Write a program to reverse a string
Program to reverse a string
Use a loop to iterate through the characters of the string
Swap the characters from start to end of the string
Continue swapping until reaching the middle of the string
Q7. Difference between final and finally
final is a keyword used in Java to declare constants, while finally is a block of code used in exception handling to ensure a piece of code is always executed.
final is used to declare constants in Java, its value cannot be changed once assigned
finally is a block of code used in exception handling to ensure a piece of code is always executed, regardless of whether an exception is thrown or not
Example: final int MAX_VALUE = 100; try { // code that may throw an exception } final...read more
Q8. Use of this keyword in java
The 'this' keyword in Java refers to the current instance of the class.
Used to refer to instance variables or methods of the current object
Can be used to differentiate between instance variables and local variables with the same name
Can be passed as an argument to other methods
Q9. Basic principles of oops
Basic principles of OOP include encapsulation, inheritance, and polymorphism.
Encapsulation: Bundling data and methods that operate on the data into a single unit (class).
Inheritance: Ability of a class to inherit properties and behavior from another class.
Polymorphism: Ability to present the same interface for different data types.
Example: A 'Car' class may have properties like 'color' and 'model', and methods like 'start' and 'stop'.
Q10. Exceptions in Selenium
Exceptions in Selenium are errors that occur during test execution, such as ElementNotVisibleException or NoSuchElementException.
Exceptions in Selenium are thrown when there is an unexpected behavior or error during test execution.
Common exceptions include ElementNotVisibleException, NoSuchElementException, StaleElementReferenceException, and TimeoutException.
Handling exceptions in Selenium can be done using try-catch blocks or using Selenium's built-in methods like WebDriver...read more
More about working at IBM
Interview Process at AuthoringMinds
Top QA Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month