Thao tác tệp trong C++
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
Lương Thị Thế Trân THPT Trảng Bàng
Used 2+ times
FREE Resource
Enhance your content in a minute
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Hoja de Calculo
Quiz
•
12th Grade
20 questions
Perangkat Lunak dan Struktur Pemrograman (UH 2)
Quiz
•
10th Grade
15 questions
HTML kalbos testas_LENTELĖS 10 KL.
Quiz
•
10th Grade
15 questions
Bài 22-Kiểu dữ liệu danh sách
Quiz
•
10th Grade
16 questions
Hour_of_Code
Quiz
•
5th - 12th Grade
18 questions
Publisher Basics
Quiz
•
7th - 10th Grade
20 questions
KIỂM TRA CUỐI KÌ 1 TIN 7 ( 24 - 25 )
Quiz
•
7th Grade - University
15 questions
TIN 10-1F-LÀM QUEN VỚI NGÔN NGỮ LẬP TRÌNH BẬC CAO
Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
