Thao tác tệp trong C++

Thao tác tệp trong C++

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

BÀI 14: ĐỊNH DẠNG VĂN BẢN BẰNG CSS

BÀI 14: ĐỊNH DẠNG VĂN BẢN BẰNG CSS

12th Grade

20 Qs

Trò chơi ôn tập GKI tin 12  lần 2

Trò chơi ôn tập GKI tin 12 lần 2

12th Grade

20 Qs

KIểu mảng

KIểu mảng

11th Grade

16 Qs

ôn tập chỉnh ảnh và làm phim

ôn tập chỉnh ảnh và làm phim

11th Grade

15 Qs

BTT 3.1. Anakartlar

BTT 3.1. Anakartlar

9th Grade

18 Qs

BAB BK

BAB BK

10th Grade

20 Qs

Praktek Perkakas Dasar 1

Praktek Perkakas Dasar 1

9th Grade

20 Qs

C-Programming Basics

C-Programming Basics

12th Grade

16 Qs

Thao tác tệp trong C++

Thao tác tệp trong C++

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

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

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

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 ( );

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?