Tag: interview questions

Concurrency Interview Questions

1. What is Thread in Java? ⤴ The thread is an independent path of execution. It’s way to take advantage of multiple CPU available in a machine. By employing multiple threads you can speed up CPU bound task. For example, if one thread takes 100 milliseconds to do a job, you can use 10 thread to reduce that task into 10 milliseconds. Java provides excellent support for multi-threading at the language level, and it’s also one of the strong selling points. 2. Describe synchronization in respect to multi-threading. What is synchronization? ⤴ Several threads access common data. In order to keep the data in consistent state the access to it has to be synchronized (i.e. some ordering of data access has to be imposed). 3. Explain different ways of using thread? ⤴ Create a long-runnin

Selenium Interview Questions

Q1. What are the annotations used in TestNG ? Ans - @Test, @Before Suite, @After Suite, @Before Test, @After Test, @Before Class, @After Class, @Before Method, @After Method. Q2. How do you read data from excel ? Ans - FileInputStream fis = new FileInputStream(“path of excel file”); Workbook wb = WorkbookFactory.create(fis); Sheet s = wb.getSheet(“sheetName”); String value = s.getRow(rowNum).getCell(cellNum).getStringCellValue();   Q3. What is the use of xpath? Ans - it is used to find the WebElement in web page. It is very useful to identify the dynamic web elements. Q4. What are different types of locators ? Ans-  There are 8 types of locators and all are the static methods of the By class. By.id(), By.name(), By.tagName(), By.className(), By.linkText(), By.par

Manual Testing Interview Question Set 2

101. What is System Testing? Testing that attempts to discover defects that are properties of the entire system rather than of its individual components is called System testing. 102. What is Testability? The degree to which a system or component facilitates the establishment of test criteria and the performance of tests to determine whether those criteria have been met. 103. What is Testing? The process of exercising software to verify that it satisfies specified requirements and to detect errors is called testing. The process of analyzing a software item to detect the differences between existing and required conditions (that is, bugs), and to evaluate the features of the software item (Ref. IEEE Std 829). The process of operating a system or component under specified conditions

Manual Testing Interview questions

Here, we have laid down the 50 most essential manual testing interview questions and answers Set-1. Any tester who is preparing for a job change or wish to acquaint himself with the nitty-gritty of the software testing should read this post for quick results. 1. What is a Bug? When actual result deviates from the expected result while testing a software application or product then it results into a defect. Hence, any deviation from the specification mentioned in the product functional specification document is a defect. In different organizations it’s called a Bug. 2. What is a Defect? If software misses some feature or function from what is there in requirement it is called as defect. 3. What is CMM? The Capability Maturity Model for Software (CMM or SW-CMM) is a model for jud

Database interview questions

database, Uncategorised
Question 1: SQL Query to find second highest salary of Employee Answer: There are many ways to find second highest salary of Employee in SQL, you can either use SQL Join or Subquery to solve this problem. Here is SQL query using Subquery: Select MAX(Salary) from Employee WHERE Salary NOT IN (select MAX(Salary) from Employee ); SELECT max(salary) FROM Employee WHERE salary < (SELECT max(salary) FROM Employee); See How to find second highest salary in SQL for more ways to solve this problem. Question 2: SQL Query to find Max Salary from each department. Answer : SELECT DeptID, MAX(Salary) FROM Employee  GROUP BY DeptID. Question 3: Write SQL Query to display current date. Answer: SQL has built in function called GetDate() which returns current timestamp. SELECT GetDate(); Q

SoapUI interview Questions

SOAP UI INTERVIEW QUESTIONS SET-1 Question: 1 Explain what is SOAP UI? Answer: SOAP UI is a free, open source cross-platform functional testing solution. It enables you to rapidly and easily create and execute automated regression, compliance, functional and load tests. Question: 2 What are webservices? Answer: Web services are web components that transfer data between client and server. Client sends a web request to the server and the server then responds to client. The response and request are related and different requests evoke the corresponding response. Web Service is a web component or software program that can be accessed on the Internet. It is mainly used to communicate with the web based applications through XML messaging concepts. For example, if we want to ac...