Control flow, data flow, and _______ are the primary types of static analysis techniques.

  • Cyclomatic complexity
  • Dependency checking
  • Path coverage
  • Syntax checking
Control flow, data flow, and path coverage are core types of static analysis techniques. Path coverage ensures that every potential route through a given part of the code is executed, thereby identifying areas that have not been tested.

Which tool is commonly used for automated static analysis to detect code vulnerabilities?

  • JIRA
  • Jenkins
  • Selenium
  • SonarQube
SonarQube is a popular tool used for static code analysis. It scans source code for vulnerabilities, bugs, and code smells, providing a comprehensive overview of code quality. JIRA, Selenium, and Jenkins serve different purposes in the software development lifecycle.

In the context of functional testing for mobile apps, which is crucial to test: Landscape or Portrait mode or both?

  • Both modes
  • Landscape mode only
  • Neither, focus on features only
  • Portrait mode only
For mobile apps, it's imperative to test both Landscape and Portrait modes when conducting functional testing. This ensures that the application's functionality remains consistent and error-free regardless of the orientation. Given that users might switch between modes frequently, it's crucial to verify the app's behavior in both scenarios.

What is the advantage of using a data-driven scripting technique in test automation?

  • Enables code reusability
  • Facilitates integration with other systems
  • Reduces the number of test scripts needed
  • Simplifies test script writing
Data-driven scripting allows the separation of test scripts from the test data. This means one script can be executed with multiple sets of test data. As a result, the number of scripts needed is reduced, making test automation more efficient and manageable. You can test various scenarios using the same script by merely changing the input data.

In _______ testing, the alignment, color schemes, button sizes, and responsiveness are primary areas of focus.

  • UI/UX
  • performance
  • regression
  • security
In UI/UX testing, the main focus is on user interface and user experience. It ensures that the software or application is user-friendly and provides a smooth experience. Factors like alignment, colors, button sizes, and responsiveness are critically evaluated.

In advanced unit testing scenarios, why might a tester choose parameterized tests?

  • To avoid repetitive code
  • To ensure GUI consistency
  • To integrate databases
  • To randomize test scenarios
Parameterized tests allow the execution of the same test logic with different input values. This is particularly beneficial in advanced unit testing scenarios where the tester wants to validate a function or method with multiple sets of data without writing repetitive test code for each set. It increases test coverage and reduces code redundancy.

The goal of _______ testing is to ensure that any performance reductions are identified and addressed before they impact end-users.

  • Functional
  • Load
  • Regression
  • Usability
Load Testing: This testing is designed to test the system under the expected load. The goal is to ensure that any reduction in system performance or degradation is identified and addressed before the system becomes live and starts impacting the end-users.

Which factor is not typically considered during the test control phase?

  • Color choice of the testing software
  • Deciding on the next test phase priorities
  • Monitoring test results
  • Scheduling test phases
The test control phase focuses on monitoring and controlling the testing activities, such as observing test results, making decisions on priorities, and scheduling. The aesthetic choices, like the color of the testing software or tools, are not of concern in this phase as they don't impact the testing process's efficacy or results.

A drawback of _______ testing is that it might not always replicate real-world user interactions and scenarios.

  • monkey
  • regression
  • system
  • unit
Monkey testing involves applying random inputs without specific test cases or scripts. While this can find unique and unexpected defects, a drawback is that it might not always mimic real-world user interactions and scenarios, potentially missing out on some critical user-centric bugs.

How do "Blue-Green Deployments" fit into Continuous Integration and Continuous Deployment practices?

  • They act as version control systems
  • They allow for zero-downtime deployments
  • They enable simultaneous code editing
  • They provide database backups
Blue-Green Deployments are a strategy to achieve zero-downtime deployments by maintaining two production environments, blue (current) and green (new). When deploying a new release, it's first deployed to the "green" environment. Once everything is confirmed to work perfectly, the traffic is switched to "green" from "blue", ensuring that at no point there's any downtime. This aligns with CI/CD's principles of rapid and reliable deployments.