Software Test Question 4

Source: Internet
Author: User

[5-1] The words in the following () should be selected from the answer.
The purpose of software testing is (). To improve the test efficiency, (B ). When using the white box testing method, determine that the testing data should comply with (C) and specified coverage standards. Document unrelated to design test data is (D ).
(E) is the best way to perform software integration testing to improve the effectiveness of integration testing.
Answer:
A. ① evaluate software quality ② discover software errors
③ Identify all errors in the software ④ prove that the software is correct
B. ① randomly select Test Data
② Take all possible input data as test data
③ Develop the software test plan after coding.
④ Select data with high probability of error discovery as test data
C. ① internal logic of the program ② complexity of the program
③ User manual ④ functions of the program
D. ① design personnel of the software ② complexity of the program
③ Source program ④ Project Development Plan
E. ① design personnel of the software ② head of the software development team
③ Programmers of the software ④ software designers not in the software development team
[5-2] select the words that should be filled in the following () from the answer.
The three basic control structures of A program are (). What they have in common is (B ). A basic method of structured program design is (C ). The purpose of software testing is (D ). The purpose of software debugging is (E ).
Answer:
A. ① process, subprogram, subprogram ② sequence, condition, and loop
③ Recursion, stack, queue ④ call, return, transfer
B. ① It cannot be nested. ② it can only be used to write simple programs.
③ Hardware has been used for implementation. ④ there is only one entry and one exit.
C. ① refinement method ② Recursion Method ③ induction ④ progressive refinement method
D. ① prove that there are no errors in the program ② discover errors in the program
③ Dynamic Characteristics of the measurement program ④ check for syntax errors in the program
E. ① locate the error and correct it ② eliminate the possibility of an error
③ Classify error properties ④ count the number of errors
[5-3] Five correct statements about software testing are selected from the following descriptions.
(1) When testing with the black box method, the test case is designed according to the internal logic of the program.
(2) try to replace repeated code segments with public processes or subprograms.
(3) The test aims to verify that the software has correctly met user requirements.
(4) For the chain branch structure, if there are n judgment statements, there are 2n paths.
(5) Try to adopt composite condition tests to avoid nested branch structures.
(6) The GOTO statement is simple in concept and easy to use. In some cases, retaining the GOTO statement can make the program written more concise.
(7) program modules with many errors are found, and many errors remain in the module.
(8) The most effective black box testing method is the causal testing method.
(9) during the unit test of the program, the pile (stub) module is easier to write than the driver module.
(10) The improvement of program efficiency should be achieved by selecting efficient algorithms.
[5-4] select the words that are most closely related to software testing from the answer.
(1) For software with high reliability requirements, such as the operating system, a third party checks the source code line by line.
(2) When the existing software is revised, due to the impact of the change, the normal features before the revision may be abnormal, and the performance may also decline. Therefore, it is necessary to test the changed software.
(3) perform a test when you are aware of the internal structure or algorithm of the tested module.
(4) In order to confirm the user's needs, first make the main part of the system and submit it to the user for trial.
(5) When testing a large software with a hierarchical structure, one way is to start from the upper-layer module and start from top to bottom for testing. In this case, it is necessary to use some modules to replace the modules that have not been tested.
Answer:
A e: ① simulator ② code review ③ simulator ④ pile ⑤ driver
6. Domain Test 7. Black Box Test 7. Testing the degradation test of the testing prototype and the testing environment.
[5-5] it is possible to conduct a exhaustive test on small programs. Can a exhaustive test be used to ensure that the program is correct?
[5-6] Is unit testing possible under any circumstances? Are they all needed?
[5-7] select the correct answer from the answer to the selection and enter the correct answer in () described in the software test below.
Software testing methods can be divided into two types: black box testing and white box testing.
The black box testing method is to design the test case through the analysis program (. In addition to the test procedure, it is also applicable to testing the software documentation in phase (B.
The white box test method is to design the test case according to program (C. In addition to the test procedure, it also applies to testing the software documentation in the (D) phase.
White box testing programs often select test cases based on the given coverage conditions. (E) The coverage ratio (F) is strict, so that each branch of each decision goes through at least once. (G) coverage is both a decision coverage and a condition coverage, but it does not guarantee that all possible values can be obtained for various conditions. (H) overwrite is stricter than other conditions, but it cannot guarantee to overwrite every path in the program.
Unit Testing is generally based on (I), and the basis for testing is (J ).
Answer:
A, C: ① Application Scope ② internal logic ③ function ④ input data
B, D: ① coding ② detailed software design ③ overall software design ④ Requirement Analysis
E, F, G, H: ① statement ② judgment ③ condition ④ judgment/Condition
⑤ Multiple conditions ⑥ path
I: ① white box method ② black box method
J: ① module function specifications ② system module structure ③ System Requirement Specifications
[5-8] select the correct answer from the answer for selection and enter the correct answer in () of the following statement about software testing.
Common static analysis methods in software testing are (A) and (B ). (B) checks whether calls between modules or subprograms are correct. (C) is a commonly used analysis method (white box method. The (D) method and (E) method are commonly used in non-analytical methods (black box method. (E) Design test cases based on the output dependency on the input.
Answer:
A B: ① reference analysis ② algorithm analysis ③ reliability analysis ④ Efficiency Analysis
⑤ Interface analysis ⑥ Operation Analysis
C ~ E: ① path test ② equivalence class ③ cause ④ inductive Test
⑤ Comprehensive Test ⑥ tracing 7 DEEP priority Testing
Relative chart
[5-9] The following is the sorting program. datalist is a data table and has two data members: array V with Element type and array size n. Two operations are used in the algorithm. One is to take the key code operation getKey () of an array element V, and the other is to exchange the content of two array elements. Swap ()::
Void SelectSort (datalist & list ){
// Sort the list. V [0] To list. V [n-1]. n indicates the current table length.
For (int I = 0; I <list. n-1; I ++ ){
Int k = I; // find the object with the minimum key code in list. V. key to list. V [n-1]. key
For (int j = I + 1; j <list. n; j ++)
If (list. V [j]. getKey () <list. V [k]. getKey () k = j; // The object with the minimum key code
If (k! = I) Swap (list. V, list. V [k]); // exchange
}
}
(1) Calculate the McCabe complexity of this program segment;
(2) Use the basic path overwrite method to provide the test path;
(3) design test cases for each test path.
[5-10] according to the following specification description, use the equivalence class division method to provide sufficient test cases.
"A program reads three integers. Consider the three values as three edges of a triangle. This program needs to print out the information, indicating whether the triangle is of the third side, the same waist, or the same side ."
[5-11] a black box test should be performed on the software of an automatic beverage vending machine. The specification of the software is described as follows:
"There is a vending machine software that handles boxed drinks at a price of 1 RMB 5 cents. If you invest 1 RMB 5 cent coin, press the "Cola", "sprite" or "Black Tea" button, and the corresponding drinks will be sent out. If two Yuan coin is invested, 5 cents coin will be returned when the beverage is sent ."
(1) Establish the cause and effect of the software by using the causal method;
(2) design all test cases for testing the software.
[5-12] a program with a length of 100,000 instructions is tested. The recorded data is as follows:
The test starts and the number of errors found is 0;
After 160 hours of testing, 100 errors were corrected. MTTF = 0.4 hours;
After another 160-hour test, 300 errors were corrected. At this time, MTTF = 2 hours;
(1) estimate the total number of errors inherent in the program;
(2) How long does it take to test and debug the program for MTTF to reach 10 hours?
(3) provides the function relationship between MTTF and test time t.
[5-13] Who should perform the validation test? Is it a software developer or a software user? Why?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.