java second level test T1

T-1 (10 exercises, this section is biased towards comprehensive theory)

1. What can be used as a software test object is_

A. Requirements specification
B, source program
C, design specification
D, database design

The objects of software testing include: source program, target program, data and related documents .
Therefore, the answer to this question is B.

2. Is the description of the software system structure diagram correct?

A. Atomic module is the module located at the intermediate node.
B. Fan-out is the number of modules that call a given module.
C. Structure diagram is the description of the software system function.
D. The deeper the depth, the wider the width, the more complex the system.

The structure diagram is used to describe the level and block structure relationship of the software system. It reflects the function realization of the entire system and the connection and communication between modules. It is the control level system in the future program.
Depth : Indicates the number of layers of control.
Width : Indicates the overall control span (the layer with the largest number of modules).
Fan-in : The number of modules that call a given module.
Fan-out : The number of other modules directly called by a module.
Atomic module : The module located at the leaf node in the tree.
So the answer to this question is D.

3. The wrong description of the data flow diagram (DFD) is _

A. The data flow diagram is a tool to describe the data processing process.
B. The data flow diagram directly supports the data modeling of the system.
C. The data flow diagram is the graphical representation of the logical model for understanding requirements.
D. The data flow diagram directly supports the requirements modeling of the system.

The knowledge point examined in this question is the data flow diagram.
* Data flow diagram is a tool to describe the data processing process. It is a graphical representation of a logical model that needs to be understood. It directly supports the functional modeling of the system.
Therefore, the answer to this question is B.

4. The following are not software detailed design tools:

A, system structure diagram
B, program flow chart
C, NS diagram
D, PAD diagram

This question examines the detailed design of the software.
In software design, the commonly used process design tools are:
①Graphic tools: program flow chart, NS diagram, PAD diagram, HIPO diagram; ②Form
tool: judgment table;
③Language tool: PDL (pseudo code) .
Therefore, the answer to this question is A.
Click to learn-detailed software design
Click to learn-graphics tools

5. The error described below is

A. The class contains data (attributes) and methods (or operations)
B. The class is an instance of the object
C. The class contains operations (methods) on the data
D. The class is abstract

This question examines the basic concept of object-oriented methods-classes.
Objects with similar properties and operations are classified as classes, that is, a class is a collection of objects with common properties and common methods. Therefore, a class is an abstraction of an object , which describes the properties of all objects belonging to the object type, and an object is an instance of its corresponding class.
Therefore, the answer to this question is B.
Learn it-basic object-oriented concepts

6. The documents related to the confirmation test phase are _

A. Detailed design specification
B, outline design specification
C, requirement specification
D, database design specification

This question examines the strategy of software testing-confirmation testing.
Confirmation test task is to verify software functionality and performance and other characteristics meets the requirements specification variety of needs identified, and software configuration is complete and correct .
*Confirmation——Requirement
So the answer to this question is C.

7. What is correct in the following description

A. Integration testing is to find errors in detailed design
B. Integration testing is to find errors in outline design
C. Integration testing is to find errors in requirements analysis
D. Integration testing is to find coding errors

This question examines the strategy of software testing.
Integration testing is the process of testing and assembling software. It is to test the modules while being assembled according to the design requirements, and the main purpose is to find errors related to the interface. The basis for integration testing is the outline design specification .
Therefore, the answer to this question is B.

8. The following does not meet the software design guidelines is _

A. Reduce the complexity of the module interface and interface
B. Design a single entry and single exit module
C. Improve the independence
of the module D. The module size should be as small as possible

This question examines the software design guidelines.
A lot of software design practices have proved that the following design guidelines can be used as design guidance and optimization of software structure diagrams. These criteria are:
①Improve module independence;
②Module size is moderate;
③Depth, width, fan-in and fan-out are appropriate;
④Make the scope of the module within the control domain of the module;
⑤The interface and interface complexity of the module should be reduced Performance:
⑥Designed as a single-entry, single-outlet module.
⑦Design predictable modules .
So the answer to this question is D.

9. The internal use of three-level mode and two-level mapping between modes in the database system is to improve the logical independence and _

A, data independence
B, physical independence
C, security
D, concurrency

This question examines the internal structure of the database.
The internal use of three-level mode and two-level mapping between modes in the database system is to improve the data independence of the database, that is, physical independence and logical independence.
Therefore, the answer to this question is B.

10. Define the student relationship model as follows:

Student(S#,Sn,Ssex,class,monitorS#) (its attributes are student ID, student name, gender, class and class leader student ID), then there is a non-transitive dependency on the main attribute (S#) in the relationship The main attributes are _
A, monitorS#
B, class
c, Sn
D, Ssex

This question examines the logical design of the database.
If an attribute depends on other non-primary key attributes, and other non-primary key attributes depend on the primary key, then this attribute is indirectly dependent on the primary key, which is called transitive dependence on the primary attribute.
Therefore, the answer to this question is A.

Guess you like

Origin blog.csdn.net/m0_49095721/article/details/109116436