Lập trình C- K11-B1415-Kieu Tep

Lập trình C- K11-B1415-Kieu Tep

Assessment

Quiz

Education

11th Grade

Medium

Created by

Phuong Le

Used 5+ times

FREE Resource

Student preview

quiz-placeholder

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Đặc điểm nào sau đây không phải của kiểu tệp?

Kiểu tệp lưu ở bộ nhớ trong

kiểu tệp lưu ở bộ nhớ ngoài

giúp tiết kiệm thời gian

lưu được lượng dữ liệu lớn

Answer explanation

vì tệp được lưu ở bộ nhớ ngoài

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Chọn câu lệnh đúng khi khai báo biến f kiểu tệp

file *f;

FILE *f;

FILE f;

File *f;

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Chọn câu lệnh đúng:

Mở file vanban.txt để ghi dữ liệu vào

f=fopen("w", "vanban.txt");

f=fopen("vanban.txt", "r");

f=fclose("vanban.txt", "w");

f=fopen("vanban.txt", "w");

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Chọn câu lệnh đúng:

Mở file vanban.txt để cập nhật dữ liệu vào

f=fopen("vanban.txt", "r");

f=fopen("vanban.txt", "r+");

f=fclose("vanban.txt", "r+");

f=fopen("vanban.txt", "a");

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Chọn câu lệnh đúng:

Mở file vanban.txt để ghi tiếp dữ liệu vào cuối tệp

f=fopen("a", "vanban.txt");

f=fopen("vanban.txt", "r");

f=fclose("vanban.txt", "r+");

f=fopen("vanban.txt", "a");

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để ghi xâu vào tệp ta dùng lệnh

fputs...

fgets....

puts...

gets...

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để đọc tệp

fputs...

fgets....

puts...

gets...

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?