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);
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Aprendiendo computación

Quiz
•
University
10 questions
Informática básica

Quiz
•
1st Grade - University
10 questions
IT - IOS struktura naredbi

Quiz
•
12th Grade - University
11 questions
Linux Commands

Quiz
•
University
10 questions
MOAC Word 2016 Lesson 1

Quiz
•
8th Grade - University
10 questions
Assessment 07

Quiz
•
University
10 questions
Platform Technology - Prelim Quiz

Quiz
•
University
10 questions
Year 2, Unit 5.1, 5.2, 5.3

Quiz
•
1st Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University