CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

Câu 47: 70-483: MCSD Programming in C

You are testing an application. The application includes methods named CalculateInterest and LogLine. The CalculateInterest() method calculates loan interest. The LogLine() method sends diagnostic messages to a console window. The following code implements the methods. (Line numbers are included for reference only.) Y…

Nội dung câu hỏi

You are testing an application. The application includes methods named CalculateInterest and LogLine. The CalculateInterest() method calculates loan interest. The LogLine() method sends diagnostic messages to a console window. The following code implements the methods. (Line numbers are included for reference only.) You have the following requirements: ✑ The CalculateInterest() method must run for all build configurations. ✑ The LogLine() method must run only for debug builds. You need to ensure that the methods run correctly. What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)

Minh họa câu hỏi

Các lựa chọn

Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.

  1. A. Insert the following code segment at line 01: #region DEBUG Insert the following code segment at line 10 :#endregion
  2. B. Insert the following code segment at line 01: [Conditional("DEBUG")]
  3. C. Insert the following code segment at line 05 :#region DEBUG Insert the following code segment at line 07: #endregion
  4. D. Insert the following code segment at line 10: [Conditional("DEBUG")] — đáp án hiện tại
  5. E. Insert the following code segment at line 01: #if DEBUG Insert the following code segment at line 10: #endif
  6. F. Insert the following code segment at line 10: [Conditional("RELEASE")]
  7. G. Insert the following code segment at line 05: #if DEBUG — đáp án hiện tại

Cộng đồng

0 bình luận công khai. Tên thành viên được ẩn một phần.

Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.

Câu hỏi liền kề