What is the difference between a compiler and an interpreter?
4 phương ánCó giải thích
Các phương án trả lời
Chọn một phương ánLời giảiChọn phương án để mở
Đáp án đúng: "A compiler translates the entire program before execution, while an interpreter translates one line at a time". Trình biên dịch đọc toàn bộ mã nguồn, dịch thành mã máy rồi mới cho chạy, nên lỗi cú pháp lộ ra trước khi thi hành và chương trình đã dịch chạy nhanh; trình thông dịch đọc và thực hiện từng câu lệnh ngay lúc chạy, nên linh hoạt nhưng chậm hơn. Phương án "A compiler executes code line by line, while an interpreter translates the whole program at once" đổi chỗ vai trò của hai công cụ. Phương án "A compiler does not check for errors, while an interpreter does" sai hẳn, bởi kiểm tra cú pháp và kiểu dữ liệu chính là việc trình biên dịch làm trước tiên. Phương án "A compiler continuously checks for errors line by line, while an interpreter does not, so an interpreter runs faster than a compiler" sai cả mô tả lẫn kết luận về tốc độ.
Cùng phần 12
When developing software, how would you describe the concept of modularity in software design?Có lời giảiCâu hỏiWhich of the following is NOT a measure of software operability?Có lời giảiCâu hỏiWhat is the final stage of the four phases of the software life cycle?Có lời giảiCâu hỏiCả 49 câu của chủ đề49 câu
Xuất hiện trong 1 bộ đề
Đi tiếp từ đây