C++ Faili (1)

C++ Faili (1)

University

12 Qs

quiz-placeholder

Similar activities

Create a Website 1

Create a Website 1

KG - University

10 Qs

Quis Administrasi Sistem Jaringan

Quis Administrasi Sistem Jaringan

University

15 Qs

Teknologi Informasi

Teknologi Informasi

University

15 Qs

Desain Grafis Kelas ''COVID-19"

Desain Grafis Kelas ''COVID-19"

12th Grade - University

10 Qs

Java Quiz 3

Java Quiz 3

University

15 Qs

Materi Search Engine

Materi Search Engine

University

10 Qs

Hackclub

Hackclub

University

14 Qs

L1 - Computer Networks

L1 - Computer Networks

University

13 Qs

C++ Faili (1)

C++ Faili (1)

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Vija Vagale

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kāda bibliotēka tiek izmantota darbībām ar failiem C++?

What header file is used for handling file operations in C++?

<iostream>

<fstream>

<filestream>

<fileio>

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Pēc noklusējuma visi faili tiek atvērti ____ režīmā

By default, all the files are opened in ____ mode

binary

text

nevaru pateikt

can't say

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kā atvērt failu ar nosaukumu "data.txt" rakstīšanai?

How do you open a file named "data.txt" for writing?

file.open("data.txt", ios:: output);

file.open("data.txt", ios::out);

file.open("data.txt", ios::in);

file.open("data.txt", ios::write);

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kāds ir pareizais veids, kā pārbaudīt, vai fails ir veiksmīgi atvērts?

What is the correct way to check if a file is successfully opened?

if (file.is_open())

if (file.opened())

if (file.success())

if (file.available())

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kā ierakstīt tekstu "Sveika, pasaule!" teksta failā?

How do you write a string "Hello, World!" to an opened text file?

file << "Hello, World!";

file.write("Hello, World!");

file.print("Hello, World!");

file.text("Hello, World!");

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kāda funkcija tiek izmantota lai aizvērtu failu?

In text file handling, what function is used to close a file?

file.shutdown();

file.end();

file.close();

file.terminate();

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kā pārvietot faila rādītāju uz binārā faila sākumu?

How do you move the file pointer to the beginning of a binary file?

file.reset();

file.moveg(0);

file.seekg(0);

file.position(0);

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?