Structures Flashcards

1
Q

File mode that opens a text file in append mode.

A

a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

It represents a sequence of bytes on the disk where a group of related data is stored.

A

file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

It points to a structure that contains about the file:

A

file pointer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

An operation where in data is added to the existing data of file

A

appending

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

It is created for the permanent storage of data in structures

A

constant

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Gets a character, put it into a file pointer until an enter is pressed

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the correct syntax for declaring a file pointer?

A

FILE *fp;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which of the following header file is required for creating and reading files?

A

fstream

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

By default, all the files in C++ are opened in _________ mode.

A

text

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the return type open() method?

A

bool

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Refers to binding together the data and the functions that manipulate them

A

encapsulation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

It is created for the permanent storage of data in c++

A

constant

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Which header file is required to use file I/O operations?

A

fstream

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which of the following best defines a class?

A

blueprint

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

A Function that has its definition or its prototype within the class definition like any other variable.

A

member function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly