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
21 questions
CS10 HTML

Quiz
•
10th Grade
20 questions
Ôn tập Microsoft Word

Quiz
•
10th Grade
15 questions
FMT web developing session 4 HTML5 + CSS3

Quiz
•
KG - Professional Dev...
15 questions
HTML

Quiz
•
9th - 12th Grade
17 questions
HTML podstawy

Quiz
•
8th Grade - University
20 questions
tin 12 bài 3

Quiz
•
12th Grade
20 questions
HTML5 Basics

Quiz
•
6th - 12th Grade
20 questions
HTML Test

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

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

Interactive video
•
6th - 10th Grade
17 questions
[AP CSP] Binary Number System

Lesson
•
9th - 12th Grade
15 questions
1.1 Network Fundamentals Quiz

Quiz
•
10th Grade
20 questions
Understanding Information Processing Cycle

Quiz
•
10th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade