Which type of testing focuses on the interfaces between units and components?
- Functional Testing
- Interface Testing
- System Testing
- Unit Testing
Interface Testing specifically focuses on ensuring that the interfaces or interactions between units or components work correctly. This includes checking data flow, error conditions, and coordination processes between interconnected modules.
Which type of attack tries multiple combinations of credentials to gain unauthorized access and can be detected through security testing?
- Brute Force Attack
- Cross-Site Scripting
- Phishing Attack
- SQL Injection
A Brute Force Attack involves cybercriminals systematically attempting all possible combinations of passwords or encryption keys until the correct one is found. Through security testing, repeated failed login attempts or unusual system calls can be detected, signifying potential brute force attempts.
Consider you are a security tester for a new web application. You identify a potential vulnerability that allows for data injection into the system. What type of vulnerability have you likely found?
- Buffer Overflow
- Cross-site Scripting (XSS)
- Distributed Denial of Service (DDoS)
- SQL Injection
SQL Injection is a type of vulnerability that allows attackers to inject malicious SQL code into an application, thereby gaining unauthorized access to a database and fetching/altering its contents. While XSS and Buffer Overflows are vulnerabilities, they aren't typically associated with direct data injection into databases.
Consistency in design, clear error messages, and meaningful feedback are primarily evaluated in _______ testing.
- Functionality Testing
- Performance Testing
- Security Testing
- Usability Testing
Usability Testing not only evaluates the ease of use of a product but also examines its overall user interface, ensuring there's consistency in design, clear error messaging, and providing meaningful feedback. This ensures a seamless, user-friendly experience for the end-user.
While automated tests are excellent for repetitive tasks, _______ testing is often needed for exploratory and usability checks.
- black-box
- load
- manual
- white-box
While automated tests can efficiently handle repetitive tasks, manual testing is indispensable for exploratory testing (where testers actively explore the application to identify issues) and usability checks to ensure a user-friendly experience.
The bug status that signifies that the bug is currently being worked upon to be resolved is termed as _______.
- Assigned
- Closed
- Open
- Verified
The "Assigned" bug status signifies that the bug has been assigned to a developer and is currently being addressed. "Open" means the bug has been recognized but might not be attended to yet. "Closed" denotes that the bug has been resolved. "Verified" signifies that the tester has verified the fix.
How does cyclomatic complexity assist in white-box testing?
- Assesses risk in code logic
- Counts number of defects
- Determines code coverage needs
- Measures code readability
Cyclomatic complexity, introduced by Thomas McCabe, quantifies the complexity of a program by calculating the number of linearly independent paths through the source code. A higher cyclomatic value indicates a complex program with many branches, which may require more extensive testing to ensure each path is evaluated. It aids testers in assessing risks associated with the intricate logic of the code.
As a network administrator, you receive a report from your vulnerability scanner that a certain service is running on an open port which shouldn't be. What immediate action should be considered?
- Disable the service
- Increase firewall settings
- Monitor network traffic
- Run a malware scan
Disabling the service is the immediate action to consider when an unauthorized service is running on an open port. This will prevent potential exploitation while the situation is further assessed. Running a malware scan is important, but the immediate threat is mitigated by stopping the service.
Functional testing for mobile apps often includes validating the app's _______ to ensure they produce the desired outcomes.
- colors
- developers
- features
- sizes
Functional testing aims to validate the app's features by ensuring they function according to specified requirements. It verifies each function of the software application by feeding them input and examining the output.
In Selenium, to automate browser interactions, testers use the _______ to write test scripts.
- JUnit
- Maven
- TestNG
- WebDriver
Selenium provides a tool named WebDriver, which allows testers to write scripts that can automate browser interactions. WebDriver provides a simple API to interact with browsers, making it easier for testers to create automation scripts for web applications without having to know intricate browser details.