Thư viện tài liệu trực tuyến miễn phí dành cho các bạn học sinh, sinh viên
To be complete, an imperative language needs: Statement sequencing Conditional statement Looping statement
37 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1142 | Lượt tải: 0
Lưu ý về Branch-Delay Slot: – Trường hợp xấu nhất: có thể luôn phải đặt 1 lệnh noop vào trong branch-delay slot – Trường hợp tốt hơn: có thể tìm được 1 lệnh trước lệnh rẽ nhánh để đặt trong branch-delay slot mà vẫn không làm ảnh hưởng chương trình • Thủ công: Tái cấu trúc thứ tự lệnh là cách làm phổ biến • Tự động: Compiler phải rất thông min...
33 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1030 | Lượt tải: 0
A dynamic model that shows the different states through which a single object passes during its life in response to events, along with its responses and actions Typically not used for all objects Just for complex ones
22 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1291 | Lượt tải: 0
Can you have an if statement without an else? What are De Morgan’s Laws? Explain short-circuit evaluation. How long can an if-else-if sequence be?
30 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1103 | Lượt tải: 0
For Next versus Do Loop Variations Use a For Next loop when the number of loop iterations can be determined. Use a Do Loop variety only when the number of iterations depends on the results of statements inside the loop.
Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1112 | Lượt tải: 0
Simple, informal block diagrams showing entities and relationships are the most frequently used method for documenting software architectures. But these have been criticised because they lack semantics, do not show the types of relationships between entities nor the visible properties of entities in the architecture. Depends on the use of archite...
54 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1262 | Lượt tải: 0
The type of an Expression e is: If e is a Value, then the type of that Value. If e is a Variable, then the type of that Variable. If e is a Binary op term1 term2, then: If op is arithmetic, then the (common) type of term1 or term2 If op is relational, && or ||, then bool If e is a Unary op term, then: If op is ! then bool
22 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1155 | Lượt tải: 0
Dùng thêm 1 tín hiệu ngõ vào kích hoạt “Enabled” (thường là tín hiệu xung đồng hồ Clock - C) để điều khiển mạch – Enabled = 1 (Positive Clock Edge): mạch hoạt động như mạch lật RS Latch – Enabled = 0 (Negative Clock Edge): mạch bị vô hiệu hoá, Q giữ nguyên giá trị Q(t+1) = Q(t) Chỉ khi tín hiệu Enabled đổi từ 0 sang 1 (positive edge tr...
92 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1086 | Lượt tải: 0
To get the correct double result, use double constants or the cast operator: double ratio = 2.0 / 3; double ratio = 2 / 3.0; int m = ., n = .; double factor = (double)m / (double)n; double factor = (double)m / n; double r2 = n / 2.0;
32 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1192 | Lượt tải: 0
Describe how classes relate to one another Three basic types in UML Generalization Enables inheritance of attributes and operations Aggregation Relates parts to wholes Association Miscellaneous relationships between classes
27 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1465 | Lượt tải: 0