Bài tập xác định token đoạn mã trình biên dịch năm 2024

Bài tập xác định token đoạn mã trình biên dịch năm 2024

CHƯƠNG 1

Câu 1 : Chương trình dịch không có khả năng nào trong các

khả năng sau?

  1. Phát hiện được lỗi ngữ nghĩa và tự động biểu diễn dữ

liệu đầu vào

  1. Phát hiện được lỗi cú pháp
  1. Thông báo lỗi cú pháp
  1. Tạo được chương trình đích

Câu 2 : Phát biểu nào dưới đây đúng

  1. Chương trình là dãy các lệnh được tổ chức theo các quy tắc được xác

định bởi ngôn ngữ lập trình cụ thể

  1. Trong chế độ thông dịch, mỗi câu lệnh của chương trình nguồn được dịch

thành một câu lệnh của chương trình đích

  1. Mọi bài toán đều có chương trình để giải trên máy tính
  1. Nếu chương trình nguồn có lỗi cú pháp thì chương trình đích cũng có lỗi cú

pháp

Câu 3 : Chương trình dịch là chương trình có chức năng

  1. Chuyển đổi chương trình được viết bằng ngôn ngữ lập trình bậc cao

thành chương trình thực hiện được trên máy

  1. Chuyển đổi chương trình được viết bằng ngôn ngữ lập trình Pascal thành

chương trình thực hiện được trên máy

  1. Chuyển đổi chương trình được viết bằng ngôn ngữ máy thành chương trình

thực hiện được trên máy

  1. Chuyển đổi chương trình được viết bằng ngôn ngữ lập trình bậc cao thành

chương trình hợp ngữ

Câu 4 : Các thành phần của ngôn ngữ lập trình là

  1. Chương trình thông dịch và chương trình biên dịch
  1. Chương trình dịch, bảng chữ cái, cú pháp, ngữ nghĩa
  1. Bảng chữ cái, cú pháp, ngữ nghĩa
  1. Tên dành riêng, tên chuẩn và tên do người lập trình định nghĩa

Câu 5 : Ngôn ngữ máy tính thường được dịch thành mã giả

bằng ngôn ngữ

  1. Assembly (Hợp ngữ)
  1. Machine
  1. Pascal
  1. FORTRAN

Why is this page out of focus?

This is a Premium document. Become Premium to read the whole document.

Why is this page out of focus?

This is a Premium document. Become Premium to read the whole document.

Why is this page out of focus?

This is a Premium document. Become Premium to read the whole document.

Why is this page out of focus?

This is a Premium document. Become Premium to read the whole document.

Why is this page out of focus?

This is a Premium document. Become Premium to read the whole document.

Why is this page out of focus?

This is a Premium document. Become Premium to read the whole document.

Why is this page out of focus?

This is a Premium document. Become Premium to read the whole document.

Why is this page out of focus?

This is a Premium document. Become Premium to read the whole document.

Why is this page out of focus?

This is a Premium document. Become Premium to read the whole document.

Why is this page out of focus?

This is a Premium document. Become Premium to read the whole document.

Why is this page out of focus?

This is a Premium document. Become Premium to read the whole document.

Why is this page out of focus?

This is a Premium document. Become Premium to read the whole document.

Why is this page out of focus?

This is a Premium document. Become Premium to read the whole document.

Why is this page out of focus?

This is a Premium document. Become Premium to read the whole document.

Why is this page out of focus?

This is a Premium document. Become Premium to read the whole document.

Why is this page out of focus?

This is a Premium document. Become Premium to read the whole document.

Why is this page out of focus?

This is a Premium document. Become Premium to read the whole document.

Why is this page out of focus?

This is a Premium document. Become Premium to read the whole document.

Why is this page out of focus?

This is a Premium document. Become Premium to read the whole document.

Why is this page out of focus?

This is a Premium document. Become Premium to read the whole document.

Why is this page out of focus?

This is a Premium document. Become Premium to read the whole document.

Why is this page out of focus?

This is a Premium document. Become Premium to read the whole document.

Why is this page out of focus?

This is a Premium document. Become Premium to read the whole document.

Why is this page out of focus?

This is a Premium document. Become Premium to read the whole document.

Why is this page out of focus?

This is a Premium document. Become Premium to read the whole document.

Why is this page out of focus?

This is a Premium document. Become Premium to read the whole document.