Q1
Q1 What is the primary objective of software testing?
To fix bugs in the software
To develop new features for the software
To identify and ensure the software is free of defects and meets the specified requirements
To improve the speed of the software
Q2
Q2 What type of testing verifies that a system meets the required standards?
Acceptance Testing
Unit Testing
System Testing
Performance Testing
Q3
Q3 Which testing type focuses on ensuring individual components work as expected?
Integration Testing
Acceptance Testing
Unit Testing
System Testing
Q4
Q4 What is the primary benefit of early testing in the software development lifecycle?
Reduces cost and time to fix defects
Improves UI design
Enhances project documentation
Increases the number of features
Q5
Q5 What is the difference between static and dynamic testing?
Static testing is done by executing code
Dynamic testing is done without executing code
Static testing is done without executing code
There is no difference
Q6
Q6 Which document defines the strategy and scope of software testing?
Test Plan
Test Case
Test Summary Report
Defect Report
Q7
Q7 What is "black-box" testing focused on?
Understanding the internal code
Verifying functional behavior based on requirements
Testing the database structure
Analyzing code efficiency
Q8
Q8 Which of the following is a commonly used assertion method in unit testing to verify that two values are equal?
assertEquals()
checkEqual()
verifyEquals()
equalTo()
Q9
Q9 A software tester runs an automated test script that was previously working but now fails due to a UI change. What is the most likely solution?
Reinstall the testing software
Ignore the test failure
Update the test script to reflect the changes in the user interface
Run the test on a different machine
Q10
Q10 What is the purpose of the Software Development Life Cycle (SDLC)?
To manage project timelines
To guide the development process in stages
To create a product backlog
To debug software
Q11
Q11 In which SDLC phase is the feasibility of the project assessed?
Maintenance
Design
Feasibility Study
Testing
Q12
Q12 What is the main objective of the Requirements Gathering phase in SDLC?
To develop a working prototype
To gather project requirements from stakeholders
To write code
To test the software
Q13
Q13 Which phase in SDLC focuses on defining how the software will work internally?
Testing
Design
Maintenance
Deployment
Q14
Q14 What is the primary goal of the Testing phase in SDLC?
To design the software architecture
To implement features
To identify and fix defects
To release the software
Q15
Q15 Which SDLC model allows for flexibility and iterative development?
Waterfall
Spiral
V-Model
Big Bang
Q16
Q16 In which phase of SDLC is the software released to end users?
Maintenance
Testing
Deployment
Design
Q17
Q17 In the Waterfall model, what happens after the Design phase?
Implementation
Testing
Requirements Analysis
Deployment
Q18
Q18 A project is delayed because new requirements are introduced after the design phase. Which SDLC model is least suitable for such changes?
Agile
Waterfall
Spiral
RAD
Q19
Q19 Which testing level focuses on individual components or modules?
System Testing
Integration Testing
Unit Testing
Acceptance Testing
Q20
Q20 What is the primary purpose of Integration Testing?
To test the entire system
To test individual modules
To ensure modules work together
To verify user requirements
Q21
Q21 Which testing level evaluates the complete system's compliance with requirements?
Unit Testing
System Testing
Acceptance Testing
Integration Testing
Q22
Q22 What is the purpose of Acceptance Testing?
To test individual units
To test integrated modules
To ensure the system meets user requirements
To check system performance
Q23
Q23 Which type of testing is typically conducted by end-users or customers?
Unit Testing
System Testing
Acceptance Testing
Integration Testing
Q24
Q24 In which testing level do testers check if different modules work together correctly?
Unit Testing
System Testing
Acceptance Testing
Integration Testing
Q25
Q25 What is the focus of System Testing?
Testing individual units
Testing data flows between modules
Evaluating the entire system
User acceptance of the system
Q26
Q26 Which tool can be used for unit testing in Java?
Selenium
JUnit
JIRA
Postman
Q27
Q27 What method is used in JUnit to run a block of code before each test?
@BeforeEach
@After
@Test
@BeforeAll
Q28
Q28 Which command is used in TestNG to skip a test conditionally?
@Skip
@ConditionalTest
@Test(skip=true)
@Test(enabled=false)
Q29
Q29 During Integration Testing, two modules do not interact correctly. What is the most likely solution?
Test the modules individually
Rewrite the modules
Use stubs and drivers
Check and update the interface between modules
Q30
Q30 A Unit Test fails because a method does not return the expected result. What is the first step?
Modify the requirements
Rewrite the method
Examine the method code
Remove the method