JavaScript is required

Tìm kết quả của đoạn lệnh sau?

A.

Testing 1+2.45

B.

Testing 1+2+ “45”

C.

245

D.

1245

Trả lời:

Đáp án đúng: C


The question tests knowledge of string manipulation and arithmetic operations in a programming language (e.g., Python). Assume the code snippet is something like: `print("Testing " + str(1+2) + str(45))`. `1+2` evaluates to `3`, which is then converted to the string `"3"`. `45` is converted to the string `"45"`. The strings are concatenated: `"Testing " + "3" + "45"` which results in `"Testing 345"`. The closest plausible answer given the available choices would depend on the specific flawed or implicit code and the way the interpreter handles it.

Câu hỏi liên quan