QA Role Practice Questions (Java + SQL + Testing)
Section 1: Java MCQs
1. Which keyword is used to inherit a class in Java?
2. What is the size of int in Java?
3. Which method compares string values?
4. Which block always executes in exception handling?
5. Which collection does NOT allow duplicates?
6. Difference between final, finally, and finalize?
7. What is method overloading?
8. What is the default value of boolean?
9. Can HashMap have null keys?
10. What is polymorphism?
Section 2: SQL MCQs
1. Which clause is used to filter grouped records?
2. Which join returns all records from the left table?
3. How many primary keys can a table have?
4. What is the difference between WHERE and HAVING?
5. Write a query to get the 2nd highest salary.
6. What is normalization?
7. What is a foreign key?
8. Difference between DELETE and TRUNCATE?
9. What is an index?
10. What is a subquery?
Section 3: QA / Testing Theory
1. What is SDLC and STLC?
2. Explain Bug Life Cycle.
3. Difference between Smoke and Sanity testing?
4. What is Regression testing?
5. What is Severity vs Priority?
6. What is Black Box testing?
7. What is Test Case and Test Scenario?
8. What tools are used for bug tracking?
9. What is API testing?
10. How do you test a login page?
Answer Key (Brief)
Java: 1-extends, 2-4 bytes, 3-equals(), 4-finally, 5-Set
SQL: 1-HAVING, 2-LEFT JOIN, 3-1 primary key
2nd Highest Salary Example: SELECT MAX(salary) FROM employees WHERE salary < (SELECT
MAX(salary) FROM employees);