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
18 questions
html dasar

Quiz
•
10th Grade
20 questions
Trắc nghiệm Microsoft Word (ôn buổi 2)

Quiz
•
6th - 12th Grade
20 questions
HTML & CSS Review

Quiz
•
7th - 12th Grade
20 questions
HTML / CSS

Quiz
•
11th Grade
15 questions
Thư điện tử

Quiz
•
9th Grade
15 questions
HTML

Quiz
•
9th - 12th Grade
15 questions
Bài 22-Kiểu dữ liệu danh sách

Quiz
•
10th Grade
15 questions
CSS

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade