NEW
Font size
S
M
L
XL
WorksheetsChương 8
Total questions: 72
Worksheet time: 12mins
Name
Class
Date
1.
what is not a simple techniques for reliability improvement that can be applied in any software company.
a)
Authorize
b)
Input validation
c)
Failure management
d)
Fault avoidance
2.
An erroneous system state that can lead to system behavior that is unexpected by system users.
a)
System errors.
b)
Software reliability
c)
Inconsistency
d)
Fault tolerance
3.
In general, software customers expect all software to be dependable. however, for non-critical applications, they may be willing to accept some system failures
a)
Software reliability.
b)
Operator reliability
c)
Requirement reliability
d)
Hardware reliability
4.
What are the techniques for reliability improvement?
a)
Fault avoidance - Input validation - Failure management.
b)
Cost saving - Simplify code - Reduce excessive input.
c)
Fault avoidance - Failure management.
d)
Input validation - Failure management - Cost saving.
5.
Loại mô hình nào được tạo ra trong phân tích yêu cầu phần mềm?
a)
Chức năng và hành vi.
b)
Giải thuật và cấu trúc dữ liệu
c)
Kiến trúc và cấu trúc
d)
Tính tin cậy và tính sử dụng
6.
Thủ tục phần mềm tập trung vào?
a)
Xử lý chi tiết của mỗi module riêng biệt.
b)
Xử lý chi tiết của mỗi tập module
c)
Quan hệ giữa điều khiển và thủ tục
d)
Cấp bậc điều khiển trong một cảm nhận trừu tượng hơn
7.
How many are software product quality attributes?
a)
7
b)
8
c)
6
d)
10
8.
Which of the following is not an example of refactoring for complexity reduction?
a)
Large classes may mean that the single responsibility principle is being violated. Break down large classes into easier-to-understand, smaller classes.
b)
You can rename variable, function and class names throughout your program to make their purpose more obvious.
c)
You can break long classes or functions into shorter units that are likely to be more cohesive than the original large class.
d)
You can replace a series of deeply nested if-then-else statements with guard clauses, as I explained earlier in this chapter.
9.
Đâu không phải là thuộc tính chất lượng sản phẩm phần mềm?
a)
Tránh lỗi
b)
Bảo vệ
c)
Độ tin cậy
d)
Khả dụng
10.
Khớp nối là gì?
a)
Là số lượng các mối quan hệ giữa các thực thể.
b)
Là mối nối giữa các bộ phận.
c)
Là một linh kiện.
d)
Là đường liên kết.
11.
Mối quan hệ tĩnh là gì?
a)
Là mối quan hệ ổn định và không phụ thuộc vào chương trình chấp hành.
b)
Là mối quan hệ kín.
c)
Là mối quan hệ không đồng nhất.
d)
Là mối quan hệ thống nhất.
12.
Tái cấu trúc là gì?
a)
Là thay đổi một chương trình để giảm độ phức tạp của nó mà không
thay đổi hành vi bên ngoài của chương trình đó.
b)
Là sửa lại cấu trúc của chương trình.
c)
Là sửa lại giao diện mẫu
d)
Là sửa lại logic mẫu.
13.
Các mẫu thiết kế là gì?
a)
Là các giải pháp đã được thử và kiểm tra cho các vấn đề thường xảy ra.
b)
Là câu chuyện mẫu của người dùng.
c)
Là sản phẩm đã có sẵn.
d)
Là sản phẩm sao chép lại.
14.
Which option is the simplest technique to improve reliability?
a)
Fault avoidance
b)
Output validation
c)
Maintainability
d)
Responsiveness
15.
What is the significance of error handling in reliable programming?
a)
To prevent the code from crashing when an error occurs.
b)
To make it easier to debug the code
c)
To make it easier to understand the code
d)
To make the code run faster
16.
Đâu KHÔNG là kỹ thuật để cải thiện độ tin cậy?
a)
Không có đáp án nào trong 3 phương án trên.
b)
Tránh lỗi
c)
Xác thực đầu vào
d)
Quản lý thất bại
17.
Mẫu thiết kế là gì?
a)
Một giải pháp chung có thể tái sử dụng cho một vấn đề thường xảy ra trong một ngữ cảnh nhất định trong thiết kế phần mềm.
b)
Thiết kế ban đầu
c)
Thiết kế cuối cùng
d)
Thiết kế trong quá trình hoàn thiện sản phẩm
18.
Mối quan hệ tĩnh là gì?
a)
Là mối quan hệ ổn định và không phụ thuộc vào việc thực thi chương trình.
b)
Là mối quan hệ không ổn định và phụ thuộc vào việc thực thi chương trình
c)
Là mối quan hệ không ổn định và không phụ thuộc vào việc thực thi chương trình
d)
Là mối quan hệ ổn định và phụ thuộc vào việc thực thi chương trình
19.
Mối quan hệ động là gì?
a)
Mối quan hệ giữa các đối tượng hoặc lớp trong một hệ thống mà thay đổi trong quá trình chạy của chương trình.
b)
Mối quan hệ giữa các đối tượng hoặc lớp trong một hệ thống mà không thay đổi trong quá trình chạy của chương trình.
c)
Mối quan hệ giữa các đối tượng hoặc lớp trong một hệ thống mà chỉ tồn tại trong thiết kế.
d)
Mối quan hệ giữa các đối tượng hoặc lớp trong một hệ thống mà chỉ tồn tại trong tài liệu.
20.
What is the term used to describe the number of relationships between entities?
a)
Coupling.
b)
Static relationship
c)
Dynamic relationship
d)
Reading complexity
21.
What was the bottleneck in the traditional release process?
a)
Static relationship.
b)
Dynamic relationship
c)
Input validation
d)
Fault avoidance
22.
Tác dụng của mối quan hệ tĩnh trong lập trình là gì?
a)
Giảm độ phức tạp của chương trình.
b)
Tăng độ phức tạp của chương trình
c)
Giảm tốc độ chạy của chương trình
d)
Không có tác dụng đến độ phức tạp của chương trình
23.
Đâu không phải nguyên nhân cơ bản gây ra lỗi chương trình?
a)
Người dùng.
b)
Vấn đề
c)
Công nghệ
d)
Chương trình
24.
How did Amazon improve their software's reliability?
a)
One that is stable and does not depend on program execution.
b)
One that is unstable and depend on program execution.
c)
One that is stable and depend on program execution.
d)
One that is unstable and does not depend on program execution.
25.
Giả sử bạn muốn tránh lỗi trong quá trình lập trình, bạn nên làm gì?
a)
Sử dụng cả hai kiểm tra tự động và kiểm tra tay.
b)
Lập trình theo cách tự do
c)
Sử dụng kiểm tra tay
d)
Sử dụng kiểm tra tự động
26.
Giả sử bạn muốn xác thực đầu vào từ người dùng, bạn nên làm gì?
a)
Xác định định dạng dự kiến cho đầu vào và xác thực tuân theo định dạng đó.
b)
Sử dụng kiểm tra tự động
c)
Sử dụng kiểm tra tay
d)
Sử dụng cả hai kiểm tra tự động và kiểm tra tay
27.
Which is not the way to reduce data complexity?
a)
Use data aliases
b)
Define interfaces for all abstractions
c)
Define abstract data types
d)
Avoid using floating-point numbers
28.
Which is not the way to reduce structural complexity?
a)
Functions should have side-effects.
b)
Functions should do one thing only
c)
Every class should have a single responsibility
d)
Avoid threads (parallelism) unless absolutely necessary
29.
Which of these behaviors makes the code 'smells'?
a)
Repetitive code.
b)
Small classes
c)
Short functions
d)
Bad spacing and tabs
30.
Why should we avoid deep inheritance hierarchies?
a)
Inheritance increases the structural complexity of code as it increases the coupling of subclasses.
b)
Inheritance isn't suitable for big project
c)
Inheritance is an effective and efficient way of reusing code and of making changes that affect all subclasses
d)
Inheritance increases the reading and data complexity
31.
Choose idea not about software product quality attributes.
a)
Responsibility.
b)
Availability
c)
Maintainability
d)
Security
32.
Ý kiến nào sau đây sai khi nói về tái cấu trúc?
a)
Chương trình được tái sẽ dễ hiểu hơn nhưng khó đọc hơn và phức tạp.
b)
Tái cấu trúc làm cho chương trình dễ đọc hơn và dễ hiểu hơn.
c)
Giảm khả năng mắc lỗi khi giới thiệu các tính năng mới.
d)
Làm cho việc thay đổi trở nên dễ dàng hơn.
33.
Ngoại lệ là gì?
a)
là các sự kiện làm gián đoạn quy trình xử lý thông thường trong một chương trình.
b)
Là sự kiện kiểm tra thông tin của một chương trình
c)
Là sự kiện dừng chương trình
d)
Là sự kiện của hệ thống nhàm kiểm tra chất lượng chương trình
34.
Đâu là các mẫu thiết kế phổ biến ?
a)
- Mô hình sáng tạo
- Mô hình cấu trúc
- Khuôn mẫu hành vi
b)
- Mô hình hoạt động
c)
- Mô hình kiến trúc
d)
- Mô hình lặp
35.
What type of relationship is more complex?
a)
Dynamic.
b)
Static
c)
Linear, Complex
d)
Linear
36.
Độ phức tạp của chương trình phụ thuộc vào những yếu tố nào?
a)
Loại và bản chất của mối quan hệ giữa các phần tử trong chương trình.
b)
Số lượng phương thức trong chương trình
c)
Số lượng biến trong chương trình
d)
Số lượng khớp nối trong chương trình
37.
Mối quan hệ nào trong chương trình phức tạp hơn, mối quan hệ tĩnh hay mối quan hệ động?
a)
Mối quan hệ động.
b)
Mối quan hệ tĩnh
c)
Cả hai mối quan hệ bằng nhau về mức độ phức tạp
d)
Không đủ thông tin để trả lời
38.
Which technique is not used to improve reliability?
a)
Error.
b)
Fault avoidance.
c)
Input validation.
d)
Failure management.
39.
An event that occurs at some point in time when the system does not deliver a service as expected by its users.
a)
System failure
b)
Protection systems
c)
System error
d)
Human error
40.
What is the term used to describe the number of relationships between elements in a program?
a)
Coupling
b)
Program complexity
c)
Dynamic relationship
d)
Static relationship
41.
Which of the following is an example of a dynamic relationship?
a)
The calls relationship between functions.
b)
The type and nature of the relationships between elements
c)
The number of relationships between elements in a program
d)
Whether or not one component is part of another component
42.
Đâu KHÔNG phải là 1 trong những kĩ thuật đơn giản có thể áp dụng cho bất cứ công ty phần mềm nào ?
a)
Nâng cấp
b)
Tránh lỗi
c)
Xác thực đầu vào
d)
Quản lý thất bại
43.
What is the type of relationship between components that changes over time?
a)
Dynamic relationship
b)
Static relationship
c)
Coupling relationship
d)
Program execution relationship
44.
What is the relationship between the number of relationships between elements in a program and the complexity of the program?
a)
The more relationships, the more complex the program.
b)
The fewer relationships, the more complex the program
c)
The more complex the program, the more relationships there are
d)
The fewer complex the program, the more relationships there are
45.
What type of complexity reflects the number and types of relationship between the structures in your program?
a)
Structural complexity
b)
Reading complexity
c)
Data complexity
d)
Decision complexity
46.
List three low-cost techniques for software reliability improvement.
a)
Fault avoidance, input validations, failure management.
b)
Fault avoidance, output validations, failure management.
c)
Fault avoidance, input validations, success management.
d)
True avoidance, output validations, failure management.
47.
List four ways of implementing input validation.
a)
Built-in validation functions, type coercion functions, explicit comparisons, regular expressions.
b)
Built-in validation functions, type coercion management, explicit comparisons, in-regular expressions.
c)
Built-in validation functions, type coercion functions, explicit comparisons, advanced expression.
d)
Censorship function, type coercion functions, explicit comparisons, advanced expression.
48.
In Failure management, why should you implement your software?
a)
So that program failures have minimal impact on product users.
b)
To use the software quickly and without mistakes
c)
To make sure the program is secure
d)
So that people want to use
49.
When should we use Deeply nested conditional (if) statements?
a)
When you need to identify which of a possible set of choices is to be made.
b)
When you are doing this analysis and introduce faults into your program
c)
When slightly different variants of the object may be created
d)
When its internal state changes
50.
What is the primary goal of reliable programming?
a)
To minimize the amount of code written.
b)
To make code run as fast as possible
c)
To ensure the code behaves correctly under all circumstances
d)
To ensure the code behaves correctly under all circumstances
51.
What is the purpose of unit testing in reliable programming?
a)
To test individual components of the code in isolation.
b)
To test the code after it has been deployed to production
c)
To test the performance of the code
d)
To test the code's compatibility with other software
52.
What is the role of version control in reliable programming?
a)
To keep track of different versions of the code.
b)
To make the code run faster
c)
To reduce the amount of memory used by the code
d)
To make it easier to debug the code
53.
What is the importance of logging and monitoring in reliable programming?
a)
To monitor the performance and behavior of the code in production.
b)
To make the code run faster
c)
To keep track of code changes
d)
To make it easier to debug the code
54.
Có những kỹ thuật cải thiện độ tin cậy nào?
a)
Tránh lỗi, xác thực đầu vào, quản lý thất bại.
b)
Tạo tường lửa, xác thực 2 yếu tố
c)
Đặt mật khẩu mạnh
d)
Tránh lỗi, đặt mật khẩu mạnh
55.
Đâu không phải 1 loại phức tạp của chương trình?
a)
Độ phức tạp về môi trường.
b)
Độ phức tạp về kết cấu
c)
Độ phức tạp của dữ liệu
d)
Độ phức tạp của quyết định
56.
Why is code documentation important in reliable programming?
a)
To make the code easier to understand for other developers.
b)
To make it easier to debug the code
c)
To make the code run faster
d)
To reduce the amount of memory used by the code
57.
Nguyên nhân cơ bản gây ra lỗi chương trình là gì?
a)
Hiểu không đúng cách vấn đề và miền sử dụng.
b)
Code quá dài
c)
Sử dụng công cụ có sẵn
d)
Hiểu sai chức năng ứng dụng
58.
what is not type of complexity ?
a)
Design complexity.
b)
Structural complexity
c)
Reading complexity
d)
Data complexity
59.
ba loại lỗi phần mềm quan trọng nhất là gì?
a)
Lỗi dữ liệu, ngoại lệ chương trình, lỗi thời gian.
b)
Lỗi chức năng,Lỗi giao tiếp,lỗi thời gian
c)
Lỗi cú pháp, lỗi dữ liệu,lỗi tính toán
d)
lỗi dữ liệu,lỗi thiếu lệnh,lỗi chức năng
60.
what is not a common type of design patterns
a)
Simple Patterns.
b)
Creational patterns
c)
Behavioural patterns
d)
Structural patterns
61.
Liệt kê 3 giai đoạn tổng quát của công nghệ phần mềm.
a)
Definition, development, support.
b)
What, How, Where.
c)
Programming, debugging, maintenance.
d)
Analysis, design, testing.
62.
What is the number of relationships between entities called?
a)
Coupling.
b)
Connectivity
c)
Interactivity
d)
Complexity
63.
What is the name of the Python function used to calculate an age multiplier for insurance premiums?
a)
Agecheck.
b)
Failure management
c)
Input validation
d)
Fault avoidance
64.
What are the three main types of program complexity?
a)
Structural complexity, data complexity, conditional complexity.
b)
API complexity, data complexity,implementation complexity
c)
Infrastructure complexity,conditional complexity,Complexity of code as text
d)
Structural complexity,Infrastructure complexity,API complexity
65.
what is a not failure categorie?
a)
Continuous deployment.
b)
Data failures
c)
Program exceptions
d)
Timing failures
66.
What is not a software product quality attribute?
a)
Data complexity.
b)
Reliability
c)
Security
d)
Resilience
67.
Số lượng các mối quan hệ giữa các thực thể được gọi là gì?
a)
Khớp nối.
b)
Mạng
c)
Cầu nối
d)
Kết nối
68.
What is a static relationship?
a)
Stable and does not depend on program
execution.
b)
Unstable and does not depend on program
execution.
c)
Unstable and depend on program execution.
d)
Stable and depend on program execution.
69.
What are common types of design patterns?
a)
Creational patterns
Structural patterns
Behavioural patterns.
b)
Structural patterns
Behavioural patterns
System patterns
c)
Constructional patterns
Behavioural patterns
System patterns
d)
Behavioural patterns
System patterns
70.
Following the rule for name checking, what is the length of a name?
a)
Between 2 and 40 characters.
b)
Between 10 and 40 characters
c)
More than 40 characters
d)
Less than 10 characters
71.
Ý nào sai khi nói về xác thực đầu vào?
a)
Xác thực đầu vào liên quan tới kiểm tra thông tin của người dùng trong cơ sở dữ liệu.
b)
Liên quan đến việc kiểm tra xem đầu vào của người dùng có ở định dạng chính xác không và giá trị của nó có nằm trong phạm vi được xác định bởi quy tắc đầu vào hay không.
c)
Rất quan trọng đối với bảo mật và độ tin cậy.
d)
Lỗi đầu vào của người dùng là nguyên nhân phổ biến nhất gây ô nhiễm cơ sở
dữ liệu.
72.
Nguyên nhân phổ biến nhất gây ô nhiễm cơ sở dữ liệu?
a)
Lỗi đầu vào của người dùng.
b)
Có quá nhiều dữ liệu
c)
Dữ liệu được nhập vào tại nhiều thời điểm
d)
Không thống nhất về dạng dữ liệu
Reset
