Kiem_tra_15phut_Tin_11_Tep

Kiem_tra_15phut_Tin_11_Tep

University

15 Qs

quiz-placeholder

Similar activities

Porcentajes

Porcentajes

University

12 Qs

Aplikasi Komputer Pengolah Angka

Aplikasi Komputer Pengolah Angka

University

10 Qs

Create a Website 1

Create a Website 1

KG - University

10 Qs

โครงการเพิ่มศักยภาพโปรแกรม Microsoft Power point

โครงการเพิ่มศักยภาพโปรแกรม Microsoft Power point

University

20 Qs

Algorithm analysis: divide & conquer theory

Algorithm analysis: divide & conquer theory

University

10 Qs

Java Control and Loop -2

Java Control and Loop -2

University

20 Qs

การใช้คอมพิวเตอร์ในการจัดทำบัญชี

การใช้คอมพิวเตอร์ในการจัดทำบัญชี

University

20 Qs

JAVA - Arrays

JAVA - Arrays

University - Professional Development

15 Qs

Kiem_tra_15phut_Tin_11_Tep

Kiem_tra_15phut_Tin_11_Tep

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Thanh Thi

Used 26+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong Pascal câu lệnh Var <tên biến tệp> : Text ; có ý nghĩa gì ?

Thủ tục gán tên tệp cho tên biến tệp.

Thủ tục mở tên để đọc dữ liệu.

Khai báo biến tệp.

Thủ tục đóng tệp.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong Pascal câu lệnh Assign(<tên biến tệp>,<tên tệp) ; có ý nghĩa gì ?

Thủ tục gắn tên tệp cho tên biến tệp.

Thủ tục mở tên để đọc dữ liệu.

Khai báo biến tệp.

Thủ tục đóng tệp.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cú pháp lệnh đọc dữ liệu trong tệp:

Write(<biến tệp>,<danh sách kết quả>);

Reset(<biến tệp>);

Read(<danh sách biến>);

Readln(<biến tệp>,<danh sách biến>);

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho đoạn chương trình:

VAR F: TEXT;

BEGIN

ASSIGN(F,’DATA.TXT’);

REWRITE(F);

WRITE(F, '123+456+789');

CLOSE(F);

END.

Tệp DATA.TXT có nội dung như thế nào sau khi thực hiện chương trình trên:

1368

123+456+789

123 456 789

123456789

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho a, b là 2 biến kiểu xâu. Nếu biến nào lớn hơn thì ghi giá trị biến đó vào tệp F, ta dùng lệnh:

If a>b Then Writeln(b);

If a<b Then Write(f, a);

If a<b Then Write(a);

If a>b Then Writeln(f, a);

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để đọc dữ liệu trong tệp D:\so.dat thì:

Phải xóa tệp so.dat trong đĩa D: \ trước.

Tệp so.dat không cần phải có trong đĩa D:\

Tệp so.dat phải tồn tại trong ổ đĩa D:\

Tệp so.dat phải tồn tại trong ổ đĩa C:\

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Tên thủ tục mở tệp f để ghi dữ liệu:

Reset(f)

Write(f)

Rewrite(f)

Read(f)

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?