Search Header Logo

Thao tác tệp trong C++

Authored by Lương Thị Thế Trân THPT Trảng Bàng

Computers

9th - 12th Grade

Used 2+ times

Thao tác tệp trong C++
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cấu trúc khai báo tệp để đọc là:

ifstream <biến tệp>;

ofstream <biến tệp>;

ifstream <tên tệp>;

ofstream <tên tệp>;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để làm việc với tệp, ta sử dụng thư viện nào dưới đây?

iostream

fstream

math.h

stdio.h

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cấu trúc khai báo tệp để ghi là:

ifstream <biến tệp>;

ofstream <biến tệp>;

ifstream <tên tệp>;

ofstream <tên tệp>;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Ta có biến tệp TEP1 chứa 3 số a, b,c.

Câu lệnh để khai báo biến tệp là:

ifstream TEP1;

ofstream TEP1;

int a, b, c;

float a, b, c;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Ta có biến tệp TEP1 dùng để ghi kết quả tính tổng.

Câu lệnh để khai báo biến tệp là:

ifstream TEP1;

ofstream TEP1;

int a, b, c;

float a, b, c;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cấu trúc mở tệp là:

<biến tệp> . open (<tên tệp>);

<tên tệp> . open (< biến tệp>);

<biến tệp> . close (<tên tệp>);

<tên tệp> . close (< biến tệp>);

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cấu trúc đóng tệp là:

<biến tệp> . open (<tên tệp>);

<tên tệp> . open (< biến tệp>);

<biến tệp> . close ( );

<tên tệp> . close ( );

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?