Thao tác tệp trong C++

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Lương Thị Thế Trân THPT Trảng Bàng
Used 2+ times
FREE Resource
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
Similar Resources on Wayground
20 questions
Linguaggio C++

Quiz
•
10th - 12th Grade
17 questions
ÔN TẬP CUỐI KỲ II TIN 8

Quiz
•
8th - 11th Grade
16 questions
TỆP VÀ LÀM VIỆC VỚI TỆP

Quiz
•
11th Grade
20 questions
ÔN TẬP HỌC KÌ 1

Quiz
•
10th Grade
15 questions
Củng Cố - Biến và lệnh gán trong Python

Quiz
•
10th Grade
21 questions
ÔN TÂP PYTHON TIN 10

Quiz
•
10th Grade
20 questions
K11_Kiểm tra thường xuyên_Lần 1_HK1

Quiz
•
11th Grade
15 questions
bài tập mảng tiết 1

Quiz
•
11th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
Discover more resources for Computers
50 questions
Trivia 7/25

Quiz
•
12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
6 questions
RL.10.1 Cite Evidence

Quiz
•
10th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
14 questions
Algebra 1 SOL Review #1

Quiz
•
9th Grade