Unit 4 - Practice Quiz

CSE320 50 Questions
0 Correct 0 Wrong 50 Left
0/50

1 What is the primary objective of software testing?

A. To prove that the software is bug-free
B. To debug the software logic
C. To find defects or errors in the software
D. To complete the project documentation

2 Which of the following equations represents Cyclomatic Complexity ?

A.
B.
C.
D.

3 Which testing technique requires knowledge of the internal code structure and logic?

A. Black Box Testing
B. White Box Testing
C. Gray Box Testing
D. Functional Testing

4 In Boundary Value Analysis (BVA), if an input field accepts values from 1 to 100, which set of values should be tested?

A. 0, 1, 50, 99, 100
B. 0, 1, 100, 101
C. 1, 2, 99, 100
D. 1, 50, 100

5 What is the difference between Verification and Validation?

A. Verification checks 'Are we building the right product?', Validation checks 'Are we building the product right?'
B. Verification checks 'Are we building the product right?', Validation checks 'Are we building the right product?'
C. Verification is done by users, Validation is done by developers
D. There is no difference

6 Which level of testing is primarily responsible for verifying the interaction between different software modules?

A. Unit Testing
B. Integration Testing
C. System Testing
D. Acceptance Testing

7 Equivalence Partitioning is a technique where inputs are divided into:

A. Valid and invalid classes where data in each class is treated differently
B. Valid and invalid classes where all data in a class is expected to be processed in the same way
C. Smallest and largest values only
D. Randomly generated subsets

8 Which of the following is a type of Non-Functional Testing?

A. Unit Testing
B. Performance Testing
C. Regression Testing
D. Sanity Testing

9 What is the main purpose of 'Stubs' and 'Drivers' in Integration Testing?

A. To automate the test execution
B. To act as temporary replacements for missing modules
C. To generate test data randomly
D. To record the test results

10 Which testing phase involves the client or end-user verifying the system before deployment?

A. System Testing
B. Integration Testing
C. User Acceptance Testing (UAT)
D. Unit Testing

11 Selenium IDE is primarily known for which feature?

A. Performance testing capabilities
B. Record and Playback of tests
C. Database connection testing
D. API security scanning

12 In the context of API testing, what does a status code of 200 typically indicate?

A. Not Found
B. Internal Server Error
C. OK / Success
D. Unauthorized

13 Which of the following is NOT a characteristic of Selenium WebDriver?

A. It communicates directly with the browser
B. It supports multiple programming languages like Java, Python, and C#
C. It is a browser extension for record and playback only
D. It allows for complex automation scenarios

14 Regression testing is performed to:

A. Test the application for the first time
B. Ensure that new code changes have not adversely affected existing features
C. Check the user interface design
D. Test the system at peak load

15 Mobile testing that involves checking the application on real devices instead of emulators is crucial because:

A. Emulators are too expensive
B. Real devices provide accurate real-world conditions (battery, network, sensors)
C. Emulators cannot run Android apps
D. Real devices are faster than computers

16 Alpha Testing is usually performed by:

A. The end-users at their own site
B. The testers internal to the organization at the developer's site
C. Automated bots
D. The marketing team

17 Which component of Selenium is used to locate elements on a web page?

A. TestNG
B. Locators (ID, XPath, CSS Selector)
C. Jenkins
D. Maven

18 Load Testing aims to:

A. Determine the system behavior under expected specific load conditions
B. Break the system by overwhelming it with data
C. Check the security loopholes
D. Verify the graphical user interface

19 What is a 'Test Case'?

A. A document describing the software architecture
B. A set of inputs, execution preconditions, and expected outcomes
C. A tool used for automation
D. A diagram showing data flow

20 Black Box testing is also known as:

A. Glass Box Testing
B. Behavioral Testing
C. Structural Testing
D. Code-based Testing

21 Which of the following is a security testing technique?

A. Boundary Value Analysis
B. Penetration Testing
C. Load Testing
D. Usability Testing

22 In the context of Selenium, what is 'XPath'?

A. A database query language
B. A syntax for defining parts of an XML document, used to navigate DOM
C. A Java method for clicking buttons
D. A browser plugin

23 Which testing level focuses on the smallest testable parts of an application?

A. System Testing
B. Unit Testing
C. Integration Testing
D. Beta Testing

24 What is the primary benefit of AI-assisted testing tools?

A. They eliminate the need for all human testers
B. They can self-heal broken scripts and generate test data intelligently
C. They are cheaper than open-source tools
D. They only work for mobile applications

25 Sanity Testing is a subset of:

A. Regression Testing
B. Unit Testing
C. White Box Testing
D. Performance Testing

26 Stress Testing is distinct from Load Testing because:

A. It tests the system beyond its operational capacity limits
B. It tests the system with zero users
C. It only tests the login functionality
D. It is done manually

27 Which tool is commonly used for API testing?

A. Selenium
B. Postman
C. Appium
D. JIRA

28 The 'Sandwich' approach in integration testing involves:

A. Testing the GUI only
B. Combining Top-down and Bottom-up approaches
C. Testing the database and API only
D. Testing without any drivers or stubs

29 SQL Injection testing is part of which testing category?

A. Usability Testing
B. Security Testing
C. Performance Testing
D. Compatibility Testing

30 Which of the following describes a 'False Positive' in automated testing?

A. The test passed, and the feature works
B. The test failed, but the application is working correctly
C. The test passed, but there is a bug
D. The test failed, and there is a bug

31 Beta Testing is performed by:

A. Developers at the development site
B. Real users in a real environment outside the development organization
C. The Quality Assurance team
D. Project Managers only

32 Basis Path Testing is a technique associated with:

A. Black Box Testing
B. White Box Testing
C. Performance Testing
D. Usability Testing

33 Which framework allows Selenium to support 'Data-Driven Testing'?

A. HTML5
B. TestNG or JUnit
C. CSS
D. React

34 What is 'Cross-Browser Testing'?

A. Testing if the website works without an internet connection
B. Testing the application across different web browsers (Chrome, Firefox, Safari)
C. Testing the application on different operating systems only
D. Testing the security of the browser

35 In the -Model of software development, Acceptance Testing corresponds to which phase?

A. Unit Design
B. Requirements Analysis
C. Coding
D. System Design

36 Which represents a valid CSS Selector for an element with id="loginBtn"?

A. .loginBtn
B. #loginBtn
C. //loginBtn
D. @id=loginBtn

37 Which is an example of a Non-Functional requirement?

A. The system must calculate tax correctly
B. The system should load the homepage within 2 seconds
C. The system must allow users to reset passwords
D. The system must send an email upon registration

38 Installation of Selenium WebDriver requires:

A. Only a browser extension
B. Language bindings (jar/pip) and a Browser Driver (e.g., chromedriver)
C. A paid license key
D. Only the Java Development Kit (JDK)

39 Exploratory Testing is best described as:

A. Simultaneous learning, test design, and test execution
B. Executing pre-written test scripts only
C. Testing done by machines
D. Testing focusing only on documentation

40 Which of the following is NOT a valid Selenium Locator?

A. By.id
B. By.xpath
C. By.color
D. By.className

41 Compatibility Testing checks:

A. If the software works with different OS, browsers, and network environments
B. If the software is compatible with the developer's mood
C. If the code follows style guides
D. If the unit tests pass

42 In a decision table, if there are binary conditions, how many rules (columns) are possible?

A.
B.
C.
D.

43 Appium is primarily used for:

A. Desktop application testing
B. Mobile application testing (Native, Hybrid, Web)
C. Mainframe testing
D. Unit testing of C++ code

44 What is the main limitation of Selenium IDE?

A. It cannot record tests
B. It is not suitable for complex test logic and data-driven testing
C. It costs money to use
D. It requires advanced Java knowledge

45 Test Harness is:

A. A collection of software and test data configured to test a program unit
B. A type of harness for safety
C. The final report of testing
D. The requirement document

46 Defect Density is calculated as:

A. Total Defects / Size of Software (e.g., KLOC)
B. Total Defects * Total Developers
C. Passed Tests / Total Tests
D. Time taken to fix bugs

47 Testing performed to determine if the system protects data and maintains functionality as intended is:

A. Security Testing
B. Recovery Testing
C. Stress Testing
D. Volume Testing

48 Which AI technique is often used to generate test cases automatically?

A. Natural Language Processing (NLP)
B. Hard coding
C. Manual typing
D. Waterfall model

49 Responsive Web Design testing ensures:

A. The web server responds quickly
B. The UI adapts correctly to different screen sizes and viewports
C. The database responds to queries
D. The API sends JSON responses

50 When should testing start in the software development life cycle?

A. After the code is written
B. After the product is released
C. As early as possible (Requirements phase)
D. Only during the testing phase