Kāda bibliotēka tiek izmantota darbībām ar failiem C++?
What header file is used for handling file operations in C++?
C++ Faili (1)
Quiz
•
Computers
•
University
•
Hard
Vija Vagale
Used 2+ times
FREE Resource
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);
15 questions
OS Quiz
Quiz
•
University
10 questions
Rastrgrafika un vektorgrafika
Quiz
•
7th Grade - University
11 questions
Linux Commands
Quiz
•
University
7 questions
PHP + MySql (1)
Quiz
•
University
15 questions
Quiz No. 1 - Operating System Basics
Quiz
•
University
8 questions
CSE 15L Lab 9
Quiz
•
University
10 questions
DIS08_1_Shell
Quiz
•
University
10 questions
Windows 10 System Management Tools
Quiz
•
9th Grade - University
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade