Trình bày các cách khởi động chương trình Free Pascal? Trình bày thao tác thoát khỏi chương trình Free Pascal và kết thúc làm việc với máy tính an toàn

2 câu trả lời

Câu 1:
- Khởi động Turbo Pascal: Nhấp chuột lên biểu tượng Pascal trên màn hình hoặc lên tệp Turbo.exe trong thư mục BIN của thư mục TP ở ổ đĩa C hoặc ổ đĩa D.
- Gõ nhập chương trình đã cho giống như soạn thảo văn bản trong màn hình làm việc của Pascal.
- Lưu chương trình vào đĩa với tên là PITAGO.PAS bằng các thao tác sau:
- Nhấp chuột lên mục File hoặc nhấn phím F2 (Hình 16); Hộp thoại Save File As xuất hiện. Xử lí hộp thoại:

  • Gõ tên tệp PITAGO vào mục Save file as
  • Gõ phím Enter hoặc nhấn phím OK.
  • Câu 2:
    Trình biên dịch sẽ dịch code của bạn thành native code, hoặc mã trung gian. Chính vì vậy đoạn code được biên dịch cần phải tuân thủ cú pháp một cách nghiêm ngặt. Như vậy trình biên dịch sẽ phân tích toàn bộ đoạn code và cho biết có lỗi về cú pháp ngay chỗ nào.
    Trình thông dịch sẽ load đoạn code (lúc này là native code, mã trung gian, hoặc script) để thực thi từng lệnh một. Như vậy trình thông dịch chỉ phát hiện ra lỗi sai về toán học, hoặc lỗi sai về cú pháp của câu lệnh đang thực thi.
    ==========
    Trong một ví dụ đơn giản, bạn dùng turbo pascal để viết một chương trình xuất ra chuỗi: "3 chia cho 0 bằng ", sau đó xuất tiếp kết quả của phép toán 3/0.
    -Khi bạn ấn compile, lập tức toàn bộ đoạn code sẽ được kiểm tra tính hợp lệ về cú pháp, kiểu dữ liệu,... nếu hợp lệ, đoạn code sẽ được dịch sang native code (mã máy). Đây là quá trình biên dịch.
    -Khi thực thi bạn sẽ thấy ở màn hình console là "3 chia cho 0 bằng Runtime error...". Như vậy đoạn lệnh xuất ra chuỗi "3 chia cho 0" vẫn được thực thi tốt. Nhưng đến đoạn lệnh xuất kết quả của phép toán 3/0 thì gặp lỗi chia cho 0, nên bạn thấy được kết quả như vậy.

-C1:

1)Nháy nút Start

2)Nháy tên chương trình muốn mở (Nếu mở 1 chương trình mà không thấy trong bảng chọn Start thì chọn mục All Programs, khi đó danh sách các chương trình đã cài đặt trên máy tính sẽ được hiển thị)

-C2:Khởi động bằng cách nháy đúp chuột vào biểu tượng của chương trình

để thoát khỏi free pascal nhưng không lưu chỉnh sửa ta nhấn tổ hợp phím Alt+X

Câu hỏi trong lớp Xem thêm

A. Read the passage and choose the best answer (A, B, or C) to the following questions (5 pts) My name is Hoa. Here is a photo of my school. It is a big school. It is in Hue. It is on Nguyen Hue Street. In my school, there is a big yard and there are a lot of trees around it. My school has three floors and forty classrooms with 1,700 students. My classroom is on the second floor. I‟m in grade 7, class 7A. Our class starts at 7.00 and finishes at 11.30. At school we learn many things, but I like Literature and English best. I also like Music, Sports and Art. We often have recess at 9.20. We usually drink, eat and talk at recess. We sometimes play games like blind man‟s bluff or catch. We often make much noise at recess. After school, we often go home and have lunch at 12.30. 1. Where is the school? A. On Nguyen Hue Street B. In Hue C. On Nguyen Hue Street in Hue 2. How many students are there in the school? A. 1,700 B. 1,070 C. 1,007 3. When does the class start and finish? A. 7.00 and 11.00 B. 7.30 and 11.00 C. 7.00 and 11.30 4. What subjects does she like best? A. Literature and English B. Literature and Art C. English and Music 5. What does she usually do at recess? A. Drinks and eats B. Drinks, eats and talks C. Eats and talks VII. Reading B. Read the passage and choose the best answer (A, B, or C) to the following questions (5 pts) What do you often do after school? In my school, there are a lot of clubs which students can take part in after school hours. The club that has the biggest number of members is the swimming club called “Blue Dolphins”. I myself love swimming so I am a member of this club. I go to the swimming pool twice a day and swim for about an hour. I‟m really interested in swimming breaststroke because it helps me move as fast as I can. I‟m also fond of backstroke. I swim backstroke when I want to relax, breathe and let my body float freely. It‟s very relaxing. The second club I would like to mention is the charity club. Its name is “Golden Heart”. Members of the club often do community service. This month, they are conducting a clean-up campaign to protect the environment around the school. They collect trash, clean the toilet area, and grow plants. I am not a Golden Heart‟s member, but I participate in their activities whenever I can. If you can sing, dance or play musical instruments, the musical club “Heartstrings” is definitely for you. The president of the club is Mike, my best friend. He is not only good-looking but also sings beautifully and plays the guitar very well. In conclusion, we should do as many activities as possible in our free time to have good health and a fresh mind to prepare for lessons in class. Spending all our time studying is not a good idea. 6. The writer is interested in swimming breaststroke because ________ A. it makes him relaxed B. it helps him swim as fast as he can C. it helps him stay healthy D. it is the easiest swimming style 7. The writer is fond of backstroke when ________ . A. he has a competition B. he is hot C. he is tired D. he want to relax 8. This month, Golden Heart's members ________ . A. clean classrooms, halls, and the toilet area B. grow plants, water flowers C. help elderly people D. collect trash, clean the toilet area, and grow plants 9. The musical club “Heartstrings” is definitely for the students who ________ . A. can sing and dance B. can sing, dance, and play musical instruments C. can write songs D. can cook 10. Spending all the time studying is ________ . A. unnecessary B. necessary C. good D. important

4 lượt xem
2 đáp án
16 giờ trước