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
Wrażenia globlne w Linxie

Quiz
•
10th Grade - University
15 questions
Linux/PowerShell

Quiz
•
University
10 questions
Tes Awal AlPro Modul 6

Quiz
•
University
10 questions
Datorgrafikas tests 4. klasei PD_3

Quiz
•
4th Grade - University
10 questions
Que Tanto Sabes de Tecnologia

Quiz
•
KG - University
13 questions
File Handling C++

Quiz
•
University
10 questions
ICT315- 20SSL6142

Quiz
•
University
15 questions
File Types and Formats Quiz

Quiz
•
8th Grade - University
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Computers
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
34 questions
WH - Unit 2 Exam Review -B

Quiz
•
10th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
10 questions
Transition Words

Quiz
•
University
5 questions
Theme

Interactive video
•
4th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
10 questions
Spanish Greetings and Goodbyes!

Lesson
•
6th Grade - University