Tag: testing

Questions Related to testing

  1. Tool support for performance and monitoring.

  2. Tool support for static testing.

  3. Tool support for test execution and logging.

  4. Tool support for the management of testing and tests.


Correct Option: C
  1. Supporting reviews

  2. Validating models of the software

  3. Testing code executed in a special test harness

  4. Enforcement of coding standards


Correct Option: D
Explanation:

To answer this question, the user needs to understand what a static analysis tool is and how it can be used in software development.

A static analysis tool is a software tool that examines the source code of a program without executing it. It checks for programming errors, security vulnerabilities, coding best practices, and other issues that can be detected without actually running the program.

Now let's go through each option and explain why it is right or wrong:

A. Supporting reviews: A static analysis tool can help identify potential issues in code before it goes to code review, but it is not the most useful tool for supporting reviews. Other tools, such as code review tools or collaboration platforms, would be more helpful in this scenario.

B. Validating models of the software: A static analysis tool may be useful in this scenario, but it is not the most useful tool. Model validation typically requires the use of specialized tools that can simulate system behavior and verify that the model accurately represents the software.

C. Testing code executed in a special test harness: A static analysis tool is not useful in this scenario because it does not execute the code. Instead, dynamic analysis tools would be more helpful as they can simulate the execution of code and test it in various scenarios.

D. Enforcement of coding standards: This option is the most appropriate answer. Static analysis tools are most useful in enforcing coding standards by identifying violations of coding standards, such as naming conventions, indentation, and other style guidelines. By using a static analysis tool, developers can ensure that their code adheres to the coding standards, which can improve the quality of the code and make it more maintainable.

Therefore, the correct answer is:

The Answer is: D

  1. Test data preparation tools – Manipulate Data bases

  2. Test design tools – Generate test inputs

  3. Requirement management tools – Enables individual tests to be traceable

  4. Configuration management tools – Check for consistence


Correct Option: D
  1. possible communications bottlenecks in a program.

  2. the rate of change of data values as a program executes.

  3. the use of data on paths through the code.

  4. the intrinsic complexity of the code.


Correct Option: C
  1. Testers

  2. Developers

  3. Testers & Developers

  4. None


Correct Option: B
  1. Performance

  2. Record/Playback

  3. A. & B

  4. None


Correct Option: B
  1. Speed & efficiency

  2. Accuracy & precision

  3. All of the above

  4. None of the above


Correct Option: C

Consider the following: Pick up and read the newspaper Look at what is on television If there is a program that you are interested in watching then switch the television on and watch the program Otherwise Continue reading the newspaper If there is a crossword in the newspaper then try and complete the crossword

  1. SC = 1 and DC = 2

  2. SC = 1 and DC = 3

  3. SC = 2 and DC = 2

  4. SC = 2 and DC = 3


Correct Option: D
Explanation:

Explanation: This scenario describes a simple decision-making process, where the person decides whether to watch TV or read the newspaper based on the availability of an interesting program and a crossword puzzle.

The steps in the process can be numbered as follows:

  1. Pick up and read the newspaper
  2. Look at what is on television
  3. If there is a program that you are interested in watching then switch the television on and watch the program
  4. Otherwise, continue reading the newspaper
  5. If there is a crossword in the newspaper then try and complete the crossword

The starting point is step 1, which is always executed. Then, depending on the situation, either step 3 or 4 is executed, but not both. Finally, step 5 is executed if there is a crossword puzzle in the newspaper.

Therefore, the structure chart for this scenario can be represented as follows:

            +-----------+
            | Start     |
            +-----------+
                   |
                   |
            +-----------+
            | Read news |
            +-----------+
                   |
                   |
            +-----------+
            | Look TV   |
            +-----------+
              /          \
             /            \
    +-----------+   +----------------+
    | Watch     |   | Continue       |
    | program   |   | reading        |
    +-----------+   | newspaper      |
                    +----------------+
                             |
                             |
                    +----------------+
                    | Try crossword  |
                    +----------------+

As seen from the structure chart, there are two selection criteria (SC) and three decision criteria (DC).

The selection criteria are:

  • SC1: Is there an interesting program on TV?
  • SC2: If there is no interesting program on TV, continue reading the newspaper.

The decision criteria are:

  • DC1: Watch the program.
  • DC2: Continue reading the newspaper.
  • DC3: Try to complete the crossword.

Therefore, the correct answer is D) SC = 2 and DC = 3.