20+ câu trắc nghiệm Thiết kế hệ thống số dùng HDL có đáp án

For the following code segment, the final value of variable “d” will be … integer a, b, c, d; initial begin a = 25; b = 12; c = 5; d = 17; a = b +

5/21

For the following code segment, the final value of variable “d” will be …
integer a, b, c, d;
initial begin
a = 25;
b = 12;
c = 5;
d = 17;
a = b + c;
b = a – 15;
c = a + d;
d = c + d;
end

58

51

40

53

Giải thích

Chọn đáp án B.