2021 Computer Level 4 Software Testing Engineer Real Questions (including answer analysis)

Computer Level 4 Software Test Engineer Zhenti

One, multiple choice

Of the four options A), B), C), and D) below, only one option is correct.
1. Among the following statements about software quality attributes, it is false that
A) software functionality refers to the ability of a software product to meet explicit and implicit functional requirements when the software is used under specified conditions
B) software maintainability Refers to the ability of a software product to correct errors, improve functionality, or adapt to changes in the environment, requirements, and functional specifications.
C) Software performance refers to the ability of a software product to maintain a specified level of performance when used under specified conditions
D) Software portability refers to the ability of a software product to migrate from one environment to another

2. Among the following statements that do not belong to the purpose of
testing is that A) testing is to prove that the program is wrong
B) testing is to prove that the program is not wrong
C) testing is to evaluate the characteristics or capabilities of a program and system and determine whether it meets expectations D) Tests give the
user a sense of confidence that the program works as intended

3. The following contents that are not tested in the software design stage are:
A) Track requirements at all design levels to see if the design meets the requirements
B) Check whether the design is feasible from the perspective of system environment requirements and program execution performance
C) Check all design documents Possible error conditions to see if these errors are handled
appropriately

4. The following content that does not belong to the release test is
A) product regression test B) product function test
C) product performance test D) product installation test

5. The situation that will not cause a comparison error is
A) The floating-point number operation may be inaccurate due to rounding errors
B) The expression x/2*2==x does not hold due to integer division (assuming x is an integer)
C) Different Comparison between variables of data type
D) Some variables are not used after they are defined

6. The members of the code walkthrough team do not include
A) testers B) programmers responsible for maintaining the program
C) end users D) secretaries or recorders

7. There is a judgment statement
if(ch>='a'&&ch<='z'||ch>='A'&&ch<='Z') printf("This is a letter!\n");
else printf ("This is not a letter!\n");
To achieve path coverage, the number of test cases to be designed should be at least
A) 3 B) 5
C) 6 D) 2

8. In the following description, what is not concerned with the design of the unit test test case is
A) the input of the unit under test B) the running environment of the program
C) the code actually tested by the test case D) the expected output of the test case

9. Decomposition-based integration strategies do not include
A) big-assault integration B) MM-path incremental integration
C) top-down incremental integration D) bottom-up incremental integration

10. Tests conducted by multiple users of the software in the actual use environment of one or more users, and the developers are usually not on the test site are called
A) Acceptance test B) Alpha test
C) Beta test D) 6α test

11. Which of the following indicators is a measure of software performance
A) response time B) fault repair time
C) fault-free running time D) compilation time

12. Which of the following statements about web application software testing is correct is
A) browser compatibility testing is an important part of web application software business layer testing
B) form testing is an important part of web application software compatibility testing
C) Data integrity testing is an important part of Web application data layer testing
D) Link testing is an important part of Web application software security testing

13. Which of the following goals is not the goal of software performance testing
A) To check whether the security control features of the software work correctly
B) To find defects in software functions under stress
C) To check the maximum load of the
software D) To determine the maximum recommended number of users of the software

14. In the following statements about web application software testing, the wrong thing is that
A) the security of client content is a content concerned by web application software security testing
B) when performing performance testing on web application software, it is usually necessary to carry out stress Test
C) In the layered testing strategy of Web application software, in addition to testing each layer, it is also necessary to test the integration between layers
D) Functional testing of Web application software can only focus on server-side programs, not customers terminal program

15. Which of the following is the focus of software reliability testing
A) Analyze the branch coverage of test cases
B) Detect software security vulnerabilities
C) Set software operating profile
D) Analyze software fault tolerance

16. Which of the following belongs to the scope of compatibility testing?
A) Whether the same function of the software supports multiple modes of operation
B) Whether the software can actively prohibit illegal operations that users may perform
C) Whether the software supports the data format of similar software
D) Whether the software allows users to customize their usage habits

17. Among the following statements about object-oriented software testing, the correct one is
A) Equivalence class testing is a common method of object-oriented software white-box testing
B) Data flow testing is a common method of object-oriented software black-box testing
C) Object -oriented software The reliability test of software needs to consider the influence of inheritance
D) The coverage test of object-oriented software needs to consider the influence of polymorphism

18. Which of the following is the focus of the usability test
A) Whether the icons used by the software can accurately reflect the corresponding functions
B) Whether the software has good performance
C) Whether the software can run in a variety of operating system environments
D) Whether the functions provided by the software are rich

19. In the following statement about object-oriented program integration testing, the wrong thing is that
A) Mezzanine integration is actually a combination of bottom-up integration and top-down integration
B) High-frequency integration is based on bottom-up integration, Integration testing using smoke testing
C) Collaborative integration of object-oriented programs refers to prioritizing the integration of classes that have a close collaboration relationship
D) Both bottom-up and top-down integration require the development of a large amount of code for integration testing

20. Which of the following statements about limit testing is correct?
A) limit testing is a software test that only needs to perform unit testing
B) limit testing can only generate test cases using white-box testing methods
C) limit testing is a Software testing of extreme programming
D) Extreme testing is a more adequate software testing than branch coverage testing

21. In the following description about the quality control of the test process, what is wrong is that
A) the test requirements capture needs to be completed in the test planning activities, and cannot be re-acquired in the later stage
B) the test design and implementation should completely cover the test requirements analysis results
C) the test requirements Process measurement and analysis are important means of testing process quality control.
D) Software testing cannot solve all defects in the software system. If it is estimated that the remaining software defects have little impact on software quality, the end of the test may be considered.

22. In the following descriptions about the basis of testing activities and work products, what is wrong is that
A) the test planning activities are carried out according to the test contract requirements and software requirements
B) the test summary can be completed according to the test results
C) the test execution activities will be based on the test plan Assign tasks, execute the corresponding set of test cases, and record the test results
D) Test cases are the main work products of test design and implementation activities

23. Among the following statements about the basic structure of automated testing, the wrong thing is that
A) the file server is used to store program software packages and test file packages
B) the database server is used to store test cases and test results
C) the operating environment is used to execute tests, It consists of a set of test servers and PCs
D) The control server is used for test execution scheduling, reading test cases from the file server, and issuing commands to the agents in the test environment

24. What is wrong in the following statement is that
A) test cases should have unique names and identifiers
B) test cases should give test input and test results
C) test cases should briefly describe the test object, purpose and test method used
D ) The test case should describe the content source on which the test is based

25. The black box test method does not include
A) program variation method B) boundary value analysis method
C) orthogonal test method D) function decomposition method

Second, the topic

Company A plans to develop an automatic ticketing system for the subway of a certain city. The main requirements of the system are as follows:
The main interface of the system displays the subway line and the name of each destination station. When a passenger selects a destination station, the system pops up a dialog box showing the fare. When the passenger presses "Cancel", he can return to the main interface; otherwise, when the passenger puts in the coins, the system will judge:
(1) The put-in coins are equal to the fare, the system will issue a ticket, the face amount dialog box will be displayed, and the system will return to the main interface .
(2) The amount of money put in exceeds the fare, the system calculates the difference, issues a ticket, returns the excess coins, displays the face value and refund amount dialog box, and returns to the main interface.
(3) The input coins are less than the ticket price, and the system timing does not exceed 10 seconds, continue to wait for the coins to be input:
☆ If the accumulated coins are equal to the ticket price, go to (1).
☆If the accumulated coin investment exceeds the fare, go to (2).
☆If the passenger does not re-insert coins and the system counts for more than 10 seconds, the system returns the coin that has been put in, and a dialog box of insufficient coin-in amount is displayed, and returns to the main interface.
Please complete the following tasks:

1. Draw a state diagram describing the above processing flow.

2. Design the test cases covered by the basic path according to the state diagram.
2. In QESuite Web Version 1.0, some information about a certain security mail system test project is known as follows:
●Test version: There are 3 test versions in total, sorted by date as SMail1.0_110409, SMail1.0_110419, SMail1.0_110429.
●The definitions of some areas to be tested and personnel assignments in the function classification view are shown in the following table:

insert image description here

The following table is part of the operation history information of a software problem under the functional area "Function/Mailbox Settings". Please refer to the software problem life cycle definition of QESuite Web version 1.0 and the relevant personnel assignment and test version information provided in the question, and it is assumed that the If you know that the "problem status after operation" is correct, please find the error in the table below and explain the reason.

insert image description here

The known C source program for calculating personal income tax is as follows:
/ sds.c /
double sds(double y)
{ double x;

   if(y<=2000)  x=0;
   else if(y<=3600)
             x=(y-2000)*0.05;
   else if(y<=6600)
             x=sds(3600)+(y-3600)*0.1;
   else if(y<=21600)
             x=sds(6600)+(y-6600)*0.2;
   else if(y<=61600)
             x=sds(21600)+(y-21600)*0.3;
   else if(y<=101600)
             x=sds(61600)+(y-61600)*0.4;
   else x=sds(101600)+(y-101600)*0.5;
   return(x);

}
#include<stdio.h>
int main()
{ double y, x; printf("Please enter income:\n"); scanf("%If", &y); x=sds(y); printf(" The personal income tax payable is: sds(%9.2f)=%9.2f”, y, x); return 0; }






4. Draw the control flow chart of the function sds in the program.

5. Design a set of test cases so that the statement coverage and branch coverage of all functions of the program can reach 100%. If you think that the program's statement coverage or branch coverage cannot reach 100%, explain why.

insert image description here
1. Like. To prevent it from being found in the future, when you want to see it, you can find it on your homepage, which is very convenient;
2. Follow me. Let us become a long-term relationship, the next video will share more hard-core dry goods;
3. The learning resources of this article can be shared for free. [WeChat Public Account: Programmer Yifan]

Answer:

One, multiple choice

1, C    
2, B
[Analysis] Glenford J.Myers 1979 proposed that software testing is to prove that the program is wrong, not to prove that the program is error-free.
3. D    
4, A    
5, D
[Analysis] The situations that cause comparison errors include: ① Whether there is a comparison between variables of different data types. ② Whether there are mixed comparisons or comparisons between variables of different lengths. ③ Is the comparison operator correct? ④ Whether the content expressed by each Boolean expression is correct. ⑤ Whether the Boolean operator object is a Boolean type. ⑥ Whether there is a comparison between decimals or floating-point numbers on a binary computer, rounding, and the approximation of binary representation of decimals often cause errors. ⑦ For expressions containing multiple Boolean operators, whether the order of calculation and the precedence of operators are correct. ③ Whether the way the compiler evaluates Boolean expressions has any effect on the program.
6. C
[Analysis] The walk-through team is generally composed of 3 to 5 people, including coordinators, recorders, testers, and programmers.
7, D    
8, B
[Analysis] Unit test case design focuses on four key elements: ① The initial state statement of the unit module under test. ②The input of the unit under test. ③ The code that is actually tested by the test case. ④ The expected output of the test case.
9. B
[Analysis] Decomposition-based integration strategies are: ① Big surprise test (one-time integration method); ② Top-down incremental integration; ③ Bottom-up incremental integration; ④ Mixed incremental integration Type (sandwich) integration; ⑤ Improved sandwich integration.
10. C
[Analysis] Beta testing is a test conducted by multiple users of the software in the actual use environment of one or more users, and the developer is usually not on site.
11. A
[Analysis] The indicators to measure software performance are: ① Response time. ②System response time and application delay time. ③ throughput. ④Number of concurrent users. ⑤ Resource utilization. 12, C 13, A    
14, D
[Analysis] When the form test is performed in the functional test of the Web application software, the form includes the client program of the presentation layer of the Web application software, the server program of the business layer and the data layer to the database. access, so functional testing needs to focus on the client program.
15. C
[Analysis] The steps of software reliability testing include determining reliability goals, defining software operating profiles, designing test cases, implementing reliability testing, and analyzing test results. Designing the operating profile of software is the focus of software reliability.
16. C
[Analysis] The content of data compatibility in the software compatibility test is: data compatibility between different versions of the same software, and data compatibility between different software. So option C is correct.
17. D
[Analysis] Equivalence class testing belongs to black box testing, and data flow belongs to white box testing. Object-oriented software has the characteristics of encapsulation, inheritance, polymorphism, and the combination of inheritance and polymorphism. Since a reference can be bound to multiple implementations, which implementation to bind needs to be determined at runtime, and different inputs will lead to binding different implementations at runtime, that is, a reference calls different implementations according to different inputs. From the perspective of statement coverage, only covering the statement where the reference is located does not mean completely covering various implementations, and only covering the case where the reference calls various implementations can be considered complete coverage. So object-oriented software coverage needs to consider polymorphism.
18. A
[Analysis] The icon test of the user interface element in the usability test mainly checks whether the icon can accurately reflect the corresponding function, so as to facilitate the use of the user.
19. B
[Analysis] High-frequency integration refers to the frequent integration of newly developed code with existing code in the software development process. 20, C    
21, A
[Analysis] The capture and improvement of requirements runs through every stage of software testing. 22, B    
23, C
[Analysis] Operating environment: a test laboratory or a set of servers and PCs for testing.
24. B
[Analysis] The test case should include: ① Unique name and identifier. ② Test tracking, indicating the source of the content on which the test is based. ③ Use case description, briefly describe the test object, purpose and test method. ④ Test initialization requirements. ⑤ Test input. ⑥ Expected test results. ⑦ Criteria for evaluating test results. ⑧ Implement the execution steps of the test case.
25. A
[Analysis] Program variation is a white-box test.

2. Discussion Questions
1.
S1: Main interface
S2: Display fare
S3: Cancel
S4: Coin
input S5: Coin input is equal to the fare
S6: Coin input is less than the fare
s7: Coin input is greater than the fare
S8: Display the fare amount And the refund amount dialog box
S9: Display the face amount dialog box
S10: Insufficient coin input, the system counts more than 10 seconds, return the input coins
S11: Display the coin input amount is not enough dialog box 2, ①S1→S2→S3→S1
②S1→ S2→S4→S5→S9→S1
③S1→S2→S4→S7→S8→S1
④S1→S2→S4→S6→S5→S9→S1
⑤S1→S2→S4→S6→S7→S8→S1
⑥S1→S2→ S4→S6→S10→S11→S1 3. Operation number 2: The execution operation is: check/open.
Because the problem state after the operation is: open/reproduce, it means that there is a problem with the software, and it is set to open.
Operation number 4: The execution operation is: verify/disagree.
Because the status of the problem after the operation is: Failed to open/repair, it means that you do not agree with the repaired after verification.
Operation No. 5: Perform the operation as: not fix/not a problem.
Because the problem status after the operation is: pending / not a problem, it means that it has not been repaired.
Operation number 6: The execution operation is: verify/approve.
Because the problem status after the operation is: solved/not a problem, it means that the problem has been solved.
Operation number 7: The operator is: Zheng Yong, and the execution operation is: regression test.
Because the operation number 6 indicates that the problem has been solved, but the return test needs to be requested again by the sender. 4. 5. Test case:
use case 1: input: y=1000.00; output: personal income tax payable sds(1000.00)=0.00
use case 2: input: y=3600.00; output: personal income tax payable sds(3600.00)=80.00
use case 3: Input: y=6600.00; Output: Payable personal income tax sds(6600.00)=380.00
Use case 4: Input: y=21600.00; Output: Payable personal income tax sds(21600.00)=3380.00
Use case 5: Input: y=61600.00; Output: Payable personal income tax sds(61600.00)=15380.00
Use case 6: Input: y=101600.00; Output: Payable personal income tax sds(101600.00)=31380.00
Use case 7: Input: y=102000.00; Output: Payable personal income tax sds( 102000.00)=31580.00

finally:

Don't just be a person who never stops collecting and who never starts acting. Many things can't be taught without a teacher. If you can think a little bit in the process of doing it, and look at other people's experience and practices, you will grow faster and the effect will be better! Come on, testers! The road is at your feet, success is tomorrow!

A person who has written so many words with his heart often longs for everyone's approval. If you think this article is helpful to you, double-tap the screen and give me a like!

More software testing resources to share WeChat public account: [Programmer Amu]

Guess you like

Origin blog.csdn.net/qq_42434318/article/details/114376450