C++ Tekstiniai failai

C++ Tekstiniai failai

10th Grade

10 Qs

quiz-placeholder

Similar activities

Ôn thi HKI K10 G4

Ôn thi HKI K10 G4

10th Grade

10 Qs

"Компьютерлік желілер және ақпараттық қауіпсіздік" информатика (10 класс) БЖБ

"Компьютерлік желілер және ақпараттық қауіпсіздік" информатика (10 класс) БЖБ

10th Grade

12 Qs

Year 8 Unit 2 CMD, Command line

Year 8 Unit 2 CMD, Command line

7th - 12th Grade

14 Qs

Quiz Surat Elektronik

Quiz Surat Elektronik

7th Grade - University

10 Qs

Access - Lesson 14

Access - Lesson 14

9th - 12th Grade

10 Qs

Paper 2 Revision - IGCSE Computer Science

Paper 2 Revision - IGCSE Computer Science

9th - 12th Grade

12 Qs

โปรแกรมกับการพัฒนางาน 2 (การสร้างเว็บเพจด้วยภาษา HTML)

โปรแกรมกับการพัฒนางาน 2 (การสร้างเว็บเพจด้วยภาษา HTML)

10th Grade

10 Qs

Java String class methods

Java String class methods

10th - 12th Grade

10 Qs

C++ Tekstiniai failai

C++ Tekstiniai failai

Assessment

Quiz

Computers

10th Grade

Medium

Created by

Asta Fjellbirkeland

Used 17+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Koks yra duomenų failo naudojimo tikslas C++ programoje?

Programos kodo saugojimas

Vartotojo sąsajų kūrimas

Duomenų paruošimas iš anksto programai

Programos vykdymo greičio didinimas

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Koks yra teisingas būdas atidaryti failą skaitymui C++?

ifstream fd = 'file.txt';

ifstream fd('file.txt');

fd.open('file.txt');

ifstream fd("file.txt");

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Ką daryti, jei bandysite atidaryti esamą failą su ofstream be ios::app?

Failas bus atidarytas skaitymui

Esami duomenys bus ištrinti

Failas bus atidarytas tik skaitymui

Programa sugrius

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Ką turėtumėte daryti po failo operacijų pabaigos C++?

Palikti failą atidarytą

Uždaryti failą

Pervadinti failą

Ištrinti failą

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kaip pridėti duomenis prie esamo failo C++?

ofstream fr('file.txt', ios::write);

ofstream fr('file.txt', ios::app);

ofstream fr('file.txt', ios::open);

ofstream fr('file.txt');

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kokia yra teisinga sintaksė, norint įtraukti darbo su failais biblioteką C++ programoje?

#include 'fstream.h'

#include fstream

#include

#include <fstream>

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kaip užrašomas failo uždarymas, kai failas atidarytas su ifstream fd("Duomenys.txt")?

file.close();

fd.close();

ifstream.close(fd);

close(fd);

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?