Unit 4 - Practice Quiz

CSE320

1 What is the primary objective of software testing?

A. To prove that the software has no bugs
B. To execute the program with the intent of finding errors
C. To correct the errors in the code
D. To generate the user documentation

2 Which of the following statements best describes Verification?

A. Are we building the product right?
B. Are we building the right product?
C. Checking if the software meets customer expectations during UAT
D. Executing the software to find failures

3 In the context of software defects, what is a Failure?

A. A mistake made by a human programmer
B. A flaw in the code structure
C. The deviation of the software's observed behavior from its expected behavior
D. A missing requirement in the specification document

4 Which testing principle states that testing everything (all combinations of inputs and preconditions) is not feasible?

A. Defect Clustering
B. Pesticide Paradox
C. Exhaustive Testing is impossible
D. Absence of errors fallacy

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

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

6 Functional testing focuses on:

A. How the system works internally
B. The structural integrity of the code
C. What the system does based on requirements
D. The response time of the system under load

7 Which technique is referred to as Black Box Testing?

A. Glass Box Testing
B. Structural Testing
C. Behavioral Testing
D. Path Testing

8 In White Box Testing, the tester must have knowledge of:

A. The internal logic and code structure
B. Only the requirements specification
C. The user interface design only
D. The business domain only

9 Which of the following is a White Box testing technique?

A. Equivalence Partitioning
B. Boundary Value Analysis
C. Basis Path Testing
D. State Transition Testing

10 Cyclomatic Complexity, , is a metric used in which type of testing?

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

11 Calculate the Cyclomatic Complexity for a graph with edges and nodes. Formula:

A. 2
B. 3
C. 4
D. 5

12 What is the main purpose of Equivalence Partitioning?

A. To test every single possible input
B. To reduce the number of test cases by grouping inputs that should be processed similarly
C. To find errors at the boundaries of input domains
D. To test the system security

13 In Boundary Value Analysis (BVA), if an input field accepts values from 1 to 100, which set of test data is ideal?

A. 0, 1, 100, 101
B. 1, 50, 100
C. 10, 20, 30, 40
D. -1, 0, 1, 99, 100, 101

14 Given an input condition where a variable is valid if . Which value represents a valid Equivalence Class representative?

A. 9
B. 15
C. 21
D. 5

15 Which level of testing is performed by developers to test individual components or functions?

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

16 Integration Testing is primarily concerned with:

A. The internal logic of a single module
B. The interface and interaction between two or more modules
C. The complete system against requirements
D. The user's acceptance of the system

17 Which Integration Testing strategy involves combining all modules at once to test the system?

A. Top-Down
B. Bottom-Up
C. Big Bang
D. Sandwich

18 What are Stubs used for in Top-Down Integration Testing?

A. To replace the main program
B. To simulate the behavior of lower-level modules that are not yet developed
C. To drive data into the top-level modules
D. To record the test results

19 Drivers are used in which integration approach?

A. Top-Down Integration
B. Bottom-Up Integration
C. Big Bang Integration
D. System Integration

20 What is the order of testing levels typically followed in the SDLC?

A. Integration -> Unit -> System -> UAT
B. Unit -> Integration -> System -> UAT
C. Unit -> System -> Integration -> UAT
D. System -> Integration -> Unit -> UAT

21 System Testing falls under which category?

A. White Box Testing
B. Black Box Testing
C. Grey Box Testing
D. Unit Testing

22 Which testing is performed by the end-users in a real-world environment before the final release?

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

23 Alpha Testing is usually performed by:

A. End-users at their own site
B. Internal employees/testers at the developer's site
C. Automated bots
D. The client via remote access

24 API Testing is different from UI testing because:

A. It requires a keyboard and mouse
B. It focuses on the business logic layer without a graphical interface
C. It is always done manually
D. It is only for mobile apps

25 Which HTTP status code typically indicates a successful request in API testing?

A. 404
B. 500
C. 200
D. 301

26 Which of the following is a key challenge in Mobile Application Testing compared to Web Testing?

A. Writing test cases
B. Network speed variance
C. Device fragmentation (variety of screen sizes and OS versions)
D. Using databases

27 Regression Testing is performed to:

A. Verify that new code changes have not adversely affected existing features
B. Test the system for the first time
C. Check the system under high load
D. Test the user interface design

28 Which of the following is NOT a benefit of Test Automation?

A. Faster execution of repetitive tests
B. Increased test coverage
C. Finding more bugs in the first execution than manual testing
D. Reusability of test scripts

29 Selenium IDE is primarily used for:

A. Performance Testing
B. Record and Playback of interactions in the browser
C. API Testing
D. Unit Testing of Java code

30 What is the file format used to save projects in the modern Selenium IDE?

A. .html
B. .side
C. .xls
D. .java

31 Which command in Selenium IDE represents 'opening a URL'?

A. click
B. type
C. open
D. verify

32 Selenium WebDriver differs from Selenium IDE because:

A. It provides a programming interface to create complex test scripts
B. It is a record and playback tool only
C. It works only on Firefox
D. It does not require any installation

33 Which of the following is a 'Locator' strategy in Selenium?

A. ID
B. XPath
C. CSS Selector
D. All of the above

34 In Selenium WebDriver architecture, how does the script communicate with the browser?

A. Through a JavaScript injection only
B. Via the Browser Driver (e.g., ChromeDriver, GeckoDriver)
C. Through the operating system kernel
D. Through a manual proxy server

35 Load Testing is a type of Performance Testing that determines:

A. System behavior beyond normal operational capacity
B. System behavior under expected specific load conditions
C. Security vulnerabilities
D. User interface consistency

36 Stress Testing involves:

A. Testing with 1 user
B. Testing at or beyond the limits of system capacity to identify the breaking point
C. Testing for broken links
D. Checking the installation process

37 Which of the following is a common security testing concept usually automated or checked manually?

A. SQL Injection
B. Variable Declaration
C. Loop Termination
D. Class Inheritance

38 What is Penetration Testing?

A. Testing the GUI colors
B. A simulated cyberattack against your computer system to check for exploitable vulnerabilities
C. Measuring how deep the code nesting is
D. Checking if the software penetrates the market

39 How can AI (Artificial Intelligence) assist in software testing?

A. By writing the entire software code automatically
B. By physically pressing buttons on the keyboard
C. Through 'Self-Healing' test scripts that adapt to UI changes
D. By replacing the project manager

40 AI-based Visual Testing tools are primarily used to:

A. Check the logic of the database
B. Detect visual bugs (layout, color, font overlap) that functional scripts might miss
C. Compile the code
D. Test API response times

41 What is the primary characteristic of Cross-Browser Testing?

A. Testing on different internet speeds
B. Testing the application on multiple web browsers (Chrome, Firefox, Safari, Edge)
C. Testing the application on different operating systems only
D. Testing the application offline

42 In the context of Selenium, what is XPath?

A. A programming language
B. A syntax for defining parts of an XML document, used to navigate through elements and attributes
C. A browser plugin
D. A database query

43 Which of the following is an example of a Test Harness?

A. A document describing the test strategy
B. A collection of software and test data configured to test a program unit by running it under varying conditions
C. A bug tracking tool like Jira
D. The physical server room

44 What does UAT stand for?

A. Unified Application Testing
B. User Acceptance Testing
C. Unit Automated Testing
D. User Access Testing

45 Which mathematical technique helps in White Box Testing to ensure all logical conditions are tested?

A. Truth Tables
B. Predicate Logic
C. Boolean Logic
D. All of the above

46 Why is Mobile Testing often done using Emulators/Simulators?

A. They are more accurate than real devices
B. They are cost-effective and allow testing on devices not physically owned
C. They process data faster than real phones
D. They automatically fix bugs

47 Which part of the Selenium suite is best suited for distributing tests across multiple machines?

A. Selenium IDE
B. Selenium RC
C. Selenium Grid
D. Selenium WebDriver

48 A Test Case generally consists of:

A. Defect ID, Severity, Priority
B. Test Case ID, Description, Preconditions, Test Steps, Expected Result
C. Code, Compiler, Linker
D. User Manual, Installation Guide

49 If a software works correctly for an input of but fails for (where is a divisor), what kind of error is this?

A. Syntax Error
B. Runtime Error (Division by Zero)
C. Compilation Error
D. Linking Error

50 In the context of AI-assisted testing, what is Test Data Generation?

A. Manually typing data into Excel
B. Using AI algorithms to create synthetic, realistic datasets that mimic production data while preserving privacy
C. Copying data from the live database directly
D. Deleting old data