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

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

You are developing an application. The application contains the following code segment (line numbers are included for reference only): When you run the code, you receive the following error message: "Cannot implicitly convert type 'object'' to 'inf. An explicit conversion exists (are you missing a cast?)."You need to…

Nội dung câu hỏi

You are developing an application. The application contains the following code segment (line numbers are included for reference only): When you run the code, you receive the following error message: "Cannot implicitly convert type 'object'' to 'inf. An explicit conversion exists (are you missing a cast?)."You need to ensure that the code can be compiled. Which code should you use to replace line 05?

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. var2 = ((List ) array1) [0]; — đáp án hiện tại
  2. B. var2 = array1[0].Equals(typeof(int));
  3. C. var2 = Convert.ToInt32(array1[0]);
  4. D. var2 = ((int[])array1)[0];

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ề