Hãy khai báo 1 mảng số thực tối đa 200 phần tử (bằng 2 cách). BÀI 2: Chọn 1 câu trả lời đúng: Khai báo mảng số nguyên, tối đa 100 phần tử: a. Type Mang = array [1….100] of integer; Var A: Mang; b. Var A: array [1..100] of byte; c. Var A: array [1..100] of interger; d. Type Mang = array [1..100] of real; Var A: Mang; BÀI 3: Chọn 1 câu trả lời đúng: Tham chiếu đến phần tử thứ nhất của mảng A: a. A[1] b. A[2] c. A[3] d. A[n] BÀI 4: Viết chương trình nhập vào 1 mảng số nguyên tối đa 100 phần tử. Hãy xuất mảng ra màn hình. BÀI 5: Viết Chương trình nhập vào 1 mảng số nguyên tối đa 200 phần tử. Hãy đếm xem mảng trên có bao nhiêu phần tử? BÀI 6: Viết chương trình nhập vào một mảng gồm n số nguyên (1 <= n <= 100), mỗi số có giá trị tuyệt đối không quá 500. Tính tổng giá trị các phần tử có giá trị chia hết cho k (k nhập từ bàn phím).

Các câu hỏi liên quan

III. Use phrase or clause of purpose to combine each pairs of these sentences: 4. Angelina Jolie wore a veil. She didn’t want to be recognized. ………………………………………………………………………………………………………. 5. These men were talking in whispers. They didn’t want anyone to hear their conversation. ………………………………………………………………………………………………………. 6. The boy feigned to be sick. He hoped we didn’t make him work. ………………………………………………………………………………………………………. 7. The man spoke loudly. He wanted everyone in the hall could hear him clearly. ………………………………………………………………………………………………………. 8. Doris often goes home as soon as the class is over. She doesn’t want her mother to wait for her. ………………………………………………………………………………………………………. 9. Mr. Thompson is studying Vietnamese. He wishes to read Kim Van Kieu. ………………………………………………………………………………………………………. 10. Alice prepared her lesson carefully. She needed to get good marks. ………………………………………………………………………………………………………. 11. You should walk slowly. Your sister can follow you. ………………………………………………………………………………………………………. 12. She needs a job. She wants to support her parents. ………………………………………………………………………………………………………. 13. The farmer built a high wall around his garden. The fruits wouldn’t be stolen. ………………………………………………………………………………………………………. 14. The notices are written in several languages. Everyone may understand them. ………………………………………………………………………………………………………. 15. Dick is practicing the guitar. He can play for the dance. ……………………………………………………………………………………………………….