【Test】Written Test 03


努力经营当下 直至未来明朗!

1. Which testing model takes the testing process as the stage after requirements analysis, outline design, detailed design and coding ( )

AV model
BW model
CH model
DX model

Note: V model: requirements analysis-acceptance testing, outline design-system testing, detailed design-integration testing, coding-unit testing.
Therefore: choose A

2. Among the logical test coverage listed below, which one has the strongest test coverage?

A condition coverage
B condition combination coverage
C statement coverage
D judgment/condition coverage

Note: Logic test coverage is a commonly used technique in white-box testing. There are 6 main coverage standards. The order of intensity from weak to strong is: statement coverage, judgment coverage, condition coverage, judgment/condition coverage, condition combination coverage, and path coverage.
Therefore: Choose B

3. The network administrator wrote the shell program prog1.sh. During the test, the endless loop of the program cannot be ended. You can end the program in the following ways ( )

A ctrl+C
B ctrl+X
C Alt F2 kill 进程ID
D ctrl+d

Note: ctrl+c is to forcefully interrupt the execution of the program.
Therefore: Choose A

4. Which of the following tools are unit testing tools ()

A PureCoverage
B Purify
C VSS
D Quantify

Note: The full name of VSS is Visual Source Safe. As a member of Microsoft Visual Studio, its main task is to manage project files and can be applied to almost any software project.
Therefore: choose ABD

5. Software testing is of great significance to the success of a software development project, but there are still many management or technical misunderstandings in actual project development and management, including ( )

A Expect to use test automation to replace most manual labor
B Ignore the project participation of software testers in the requirements stage
C Software testing is a position with high technical requirements
D Testing and programming work are equally important

Therefore: choose AB

6. If a typical benchmark test program takes 20s to run on machine A and 25s to run on machine B, then which of the following conclusions is correct ()

A. None of the other conclusions are correct.
B. The average CPI of machine B is 1.25 times that of machine A.
C. All programs run faster on machine A than on machine B.
D. The average CPI of machine A is 1.25 times that of machine B.

Note: The average CPI of A: 1/20=0.05, the average CPI of B: 1/25=0.04, the average CPI of machine A is 0.05/0.04 times that of machine B.
Therefore: choose D

7. Of the following testing phases, which ones involve path testing?

A Unit test
B Integration test
C System test
D Acceptance test

Choose: AB

8. Which of the following statements about Beta testing is correct ()

A Beta testing is an acceptance test
B. After the product passes the Beta test, it can be officially released.
C Beta testing should be done by programmers or testers
D Beta testing is testing done in a development environment

Choose: AB

9. What is the command that can be used to create a new file in Linux system?

A chmod
B more
C cp
D touch

Note: 1) The chmod command is a command that controls the user's permissions on files;
2) the more command is similar to cat, but will be displayed page by page, making it easier for users to read page by page;
3) cp (copy file) command Mainly used to copy files or directories;
4) The touch command is used to modify the time attributes of files or directories, including access time and change time. If the file does not exist, the system will create a new file.
Therefore: Choose D

10. The crontab file consists of 6 fields, each field is separated by spaces. Which of the following arrangements is correct?

A MIN HOUR DAY MONTH YEAR COMMAND
B MIN HOUR DAY MONTH DAYOFWEEK COMMAND
C COMMAND HOUR DAY MONTH DAYOFWEEK
D COMMAND YEAR MONTH DAY HOUR MIN

Note: crontab is used to set up scheduled tasks.
Syntax:
MIN hour HOUR day DAY month MONTH week DAYOFWEEK command COMMAND
min 0-59
hour0-23
day1-31
month1-12
dayofweek 0-6: 0 means Sunday
command (value range, 0 means that usually one line corresponds to one task on Sunday)
so: choose B

11. The command to view the background process job ID is ( )

A jobs
B ps
C ls
D pg

Note: 1) The ps command is used to list the currently running processes in the system
2) ls displays the file names in the current directory
3) pg provides a one-time view of the process results , but the view results provided are not dynamically continuous
4) jobs View background process jobs
Therefore: Select A

12. Which of the following belong to, and what of the parent process is retained by the child process after Fork?

A environment variables
B file locks, pending alarms and pending signals of the parent process
C current working directory
D process number

Note: The child process obtained using the fork function inherits the address space of the entire process from the parent process, including: process context, process stack, memory information, open file descriptors, signal control settings, process priority, process group number, Current working directory, root directory, resource restrictions, control terminal, etc.

The difference between the child process and the parent process is:
1. The child process does not inherit the lock set by the parent process (because if it is an exclusive lock, it is inconsistent if it is inherited) 2. The
respective process IDs are different from the parent process ID
3. The child process The pending alarm of the process is cleared;
4. The pending signals set of the child process is set to an empty set.

Therefore: choose AC

12. Among the following statements, which ones are incorrect ( )

A unit testing tests each program unit in the source program to check whether each module correctly implements the specified functions, thereby discovering errors in the module's coding or algorithm. This phase involves coding and detailed design documentation.
B Integration testing is a black box test based on the software requirement specification. It is a thorough test of the integrated software system to verify that the correctness and performance of the software system meet the requirements specified in its specification, and to check the behavior and output of the software. Is it correct?
C Confirmation testing is mainly to check whether the implemented software meets the various requirements determined in the requirements specification.
D The main purpose of system testing is to check whether the interfaces between software units are correct. It mainly tests the internal structure of the program, especially the interface between programs.

Note: 1) Unit test: Each module is tested separately (coding)
2) Confirmation test: Test to confirm whether the software requirements are met (requirements)
3) System test: Software system test (outline, black box test)
4) Integration test: Program interface testing (detailed)
choose: BD

Guess you like

Origin blog.csdn.net/weixin_54150521/article/details/132613705