Tag: testing

Questions Related to testing

  1. The use of a variable before it has been defined.

  2. Unreachable (“dead”) code.

  3. Memory leaks.

  4. Array bound violations.


Correct Option: C
Explanation:

To answer this question, the user needs to have a basic understanding of static analysis and its limitations.

Static analysis is a technique for analyzing software without executing it. The technique involves examining the program's source code and/or binary code to identify potential errors, security vulnerabilities, and other issues.

Static analysis can help find many types of issues in software, but it also has limitations. Here are the explanations for each option:

A. The use of a variable before it has been defined: Static analysis can detect the use of a variable before it has been defined. This is because static analysis examines the code to identify potential issues before the code is executed.

B. Unreachable (“dead”) code: Static analysis can detect unreachable ("dead") code. This is because it examines the code to identify code paths that will never be executed.

C. Memory leaks: Static analysis can detect potential memory leaks in some cases, but it cannot detect all memory leaks. This is because some memory leaks are caused by runtime behavior that cannot be detected through static analysis.

D. Array bound violations: Static analysis can detect potential array bound violations, but it cannot always detect all violations. This is because some array bounds are determined at runtime and can only be detected through dynamic analysis.

Therefore, the correct answer is:

The Answer is: C. Memory leaks.

  1. The one who finds the most bugs.

  2. The one who embarrasses the most programmers.

  3. The one who gets the most bugs fixed.

  4. a & c


Correct Option: C
  1. Black box testing

  2. Structural testing

  3. Path testing

  4. None of the above


Correct Option: D
  1. Business process-based testing.

  2. Performance, load and stress testing.

  3. Usability testing.

  4. Top-down integration testing.


Correct Option: D
  1. Appraisal

  2. Walkthrough

  3. Assessment

  4. Gap Analysis


Correct Option: B
  1. The system shall be user friendly.

  2. The safety-critical parts of the system shall contain 0 faults.

  3. The response time shall be less than one second for the specified design load.

  4. The system shall be built to be portable.


Correct Option: C
  1. involves testers look for various types of bugs in the entire system, fully integrated.

  2. involves testers looking for bugs in the relationships and interfaces between pairs and components of groups of components in the system under test.

  3. Occurs often in a staged fashion.

  4. B & C.


Correct Option: D
  1. Glass box testing.

  2. Proper selection of program or subprogram paths.

  3. Feeding the component input and examining the output.

  4. Exercised during the battery of tests.


Correct Option: C
  1. Metrics from previous similar projects.

  2. Discussions with the development team

  3. Time allocated for regression testing.

  4. a&b.


Correct Option: D