Pre-Test Software Testing Level 2 Integration Test

FreshestMagic avatar
FreshestMagic
·
·
Download

Start Quiz

Study Flashcards

Questions and Answers

Refers to a testing phase wherein software testing is performed to test if individual units of source code are fit for use. This is usually performed by programmers and stubs and test drivers are created. Select one:

Unit Testing

How many test cases do you need to ensure 100% branch coverage of the following pseudo code: Integer X; Integer Y; IF X > Y PRINT "X is greater than Y"; ENDIF

2

Which whitebox-testing method is defined by this statement: Enough test cases are created to check each decision at least once.

Branch Coverage

You were asked to create test data to implement boundary value analysis technique. The particular feature you're testing will only accept values between 1 to 1,000,000. Which test data would you create? Select one:

<p>(0, 1, 2), (999,998,1,000,000,1,000,002)</p> Signup and view all the answers

Refers to a testing phase in which individual software modules/components are built and combined to produce the software product and resulting software product is tested.

<p>Integration Testing</p> Signup and view all the answers

How many test cases do you need to test this pseudo code if using the Multiple Condition Decision Coverage technique: IF (A or B) PRINT C; ENDIF

<p>4</p> Signup and view all the answers

Which of the following is the definition of a statement coverage, a method in white-box testing ?

<p>Select test cases to check every statement in the program or function.</p> Signup and view all the answers

Which black-box testing is being referred to by the statement Test cases are created by using business scenarios or the process flows through a system based on its actual likely use. Most useful to uncover defects during real-world use of the system.

<p>Use Case Testing</p> Signup and view all the answers

Which activities are not performed during test specification creation?

<p>Identifying risks in testing</p> Signup and view all the answers

Which black-box testing is being referred to by the statement A technique used to achieve input and output coverage by dividing a system into groups that are expected to exhibit similar behavior so they are likely to be processed in the same way.

<p>Equivalence partitioning</p> Signup and view all the answers

Which of the following activities are performed by the developer during debugging?

<p>Recreate the bug</p> Signup and view all the answers

What is the cause of software defects?

<p>Human Error</p> Signup and view all the answers

Why is it not a good idea to use the same test repeatedly?

<p>They will no longer find any new defects</p> Signup and view all the answers

Refers to a performance testing to check system's behavior, operability and stability in overload.

<p>Stress Test</p> Signup and view all the answers

A function or method receives an integer parameter Month and only accepts the values 1-12. Which test case would you use to test the function or method?

<p>Test for one value that is less than or equal to 0, one value between 1 and 12, and one value greater than or equal to 13</p> Signup and view all the answers

Which of the following DOES NOT describe black-box testing?

<p>Test data are created by investigating the internal logic of the program.</p> Signup and view all the answers

Which of the following is the definition of a path coverage, a method in white-box testing ?

<p>Select enough test cases to check all possible conditions of each branch at least once.</p> Signup and view all the answers

When you want to create a test spec that tests for different outputs from multiple input conditions, which testing technique would be best?

<p>Decision table testing</p> Signup and view all the answers

You've created a web form to submit employee details to the database. You've tested all fields except Zip Code. This is a mandatory field, and the user input cannot be greater than five digits. Using the error guessing technique, what defects can you find in this application?

<p>Null input</p> Signup and view all the answers

How many test cases do you need to ensure 100% statement coverage of the following pseudo code: Integer X; Integer Y; IF X > Y PRINT "X is greater than Y"; ENDIF

<p>Just one</p> Signup and view all the answers

You are responsible for creating a state transition table for a security lamp. The lamp is off when there is enough light for a person to see the room or when it has reached a pre-set delay after it has been activated when it detects movement in the dark. The pre-set delay is only active when the room is dark. After making the transition table below, which rows are incorrect test cases? Current State Event Next State a Off Room becomes dark On b On Room becomes bright Off c On Timer reached pre-set delay during the day Off d Off Room is dark & sensor detected movement On e On Room is dark & sensor stopped detecting movement Off

<p>a, c, and e</p> Signup and view all the answers

Use case documents are best used in which testing activities?

<p>Acceptance testing</p> Signup and view all the answers

Which of the following techniques is NOT a White Box technique?

<p>Boundary value analysis</p> Signup and view all the answers

You have been asked to make a test case specification based on a use case document. Which of the following parts should the test case specification have at a minimum? Select one or more:

<p>Precondition</p> Signup and view all the answers

Refers to a type of testing that checks the stability of the software and its readiness for a major testing effort.

<p>Sanity Testing</p> Signup and view all the answers

Which black-box testing is being referred to by the statement Test specs are created by analyzing the specifications and conditions and actions of the system are identified. The input conditions and actions are most often stated in such a way that they can either be true or false (boolean).

<p>Decision Table testing</p> Signup and view all the answers

Which of the following best describes Testing?

<p>The process of executing a program with the intent of finding errors.</p> Signup and view all the answers

Is it possible to test every possible combination and scenarios of the system ?

<p>No, instead of testing for everything, risk analysis and priorities should be used to focus testing efforts.</p> Signup and view all the answers

Which of the following is NOT a benefit or objective of testing ?

<p>Quality of the software increases when defects are detected and fixed.</p> Signup and view all the answers

Which of the following is NOT a consideration in State Transition testing ?

<p>The min-max and out of range values used as input to states.</p> Signup and view all the answers

Performance Testing can only be performed if performance values has been defined during requirements analysis. True or false?{

<p>False, because performance testing can be used to initially gauge the system's performance and results can be used to determine possible improvements to the system.</p> Signup and view all the answers

Which describes a mistake?

<p>an incorrect step, process or data definition</p> Signup and view all the answers

Which of the following is NOT true for white-box testing ?

<p>To check if the external behavior of a program met the specification.</p> Signup and view all the answers

Refers to a performance testing to check system's behavior, operability and stability in high load.

<p>Load Test</p> Signup and view all the answers

Which black-box testing is being referred to by the statement A test case created wherein input conditions are determined by identifying valid and invalid ranges of inputs to a function or system. Select one:

<p>Boundary-value Analysis</p> Signup and view all the answers

More Quizzes Like This

Use Quizgecko on...
Browser
Browser