C++ Programming :: File Handling

NA
SHSTTON
1
Solv. Corr.
3
Solv. In. Corr.
4
Attempted
0 M:0 S
Avg. Time

1 / 9

Choose the correct option.

When you want to perform file output, you have to use an


Aobject that has already been instantiated

Bobject you instantiate

Ceither (a) or (b)

Dnone of these

Answer: Option D

Explanation:

Here is no explanation for this answer

Workspace

NA
SHSTTON
2
Solv. Corr.
3
Solv. In. Corr.
5
Attempted
0 M:0 S
Avg. Time

2 / 9

Choose the correct option.

A file object can be closed


Awith the close () function

Bby letting it go out of scope

Cby calling its destructor

Dall of these

Answer: Option D

Explanation:

Here is no explanation for this answer

Workspace

NA
SHSTTON
5
Solv. Corr.
0
Solv. In. Corr.
5
Attempted
0 M:0 S
Avg. Time

3 / 9

Choose the correct option.

cin extraction stops execution as soon as it finds any blank space character


ATRUE

BFALSE

Answer: Option A

Explanation:

Here is no explanation for this answer

Workspace

NA
SHSTTON
5
Solv. Corr.
0
Solv. In. Corr.
5
Attempted
0 M:0 S
Avg. Time

4 / 9

Choose the correct option.

A direct access file is:


AA file in which recoreds are arranged in a way they are inserted in a file

BA file in which records are arranged in a particular order

CFiles which are stored on a direct access storage medium

DNone of the above

Answer: Option C

Explanation:

Here is no explanation for this answer

Workspace

NA
SHSTTON
3
Solv. Corr.
2
Solv. In. Corr.
5
Attempted
0 M:0 S
Avg. Time

5 / 9

Choose the correct option.

Which of the following is not a component of file system


AAccess method

BAuxiliary storage management

CFree integrity mechanism

DNone of the above

Answer: Option C

Explanation:

Here is no explanation for this answer

Workspace

NA
SHSTTON
0
Solv. Corr.
5
Solv. In. Corr.
5
Attempted
0 M:0 S
Avg. Time

6 / 9

Choose the correct option.

Seek time is


Atime taken to retrieve a dta

BTime taken by read/write head mechanism to position itself over appropriate cylinder

CTime taken by appropriate sector to come under read/write

DNone of the above

Answer: Option D

Explanation:

Here is no explanation for this answer

Workspace

NA
SHSTTON
4
Solv. Corr.
1
Solv. In. Corr.
5
Attempted
0 M:0 S
Avg. Time

7 / 9

Choose the correct option.

Prime area' in context of file system is defined as


AIt is memory area created by operating system

BIt is an area into which data records are written

CIt is the main area of a web page

DNone of the above

Answer: Option B

Explanation:

Here is no explanation for this answer

Workspace

NA
SHSTTON
3
Solv. Corr.
2
Solv. In. Corr.
5
Attempted
0 M:0 S
Avg. Time

8 / 9

Choose the correct option.

An inverted file


ALocates information about data in small files that are maintained apart from actual data record

BA file which stores opposite records

CA file which stores information about records of a system

DNone of above

Answer: Option B

Explanation:

Here is no explanation for this answer

Workspace

NA
SHSTTON
3
Solv. Corr.
2
Solv. In. Corr.
5
Attempted
0 M:0 S
Avg. Time

9 / 9

Choose the correct option.

Which of the following is not a file operation:


ARepositioning

BTruncating

CAppending

DNone of above

Answer: Option A

Explanation:

Here is no explanation for this answer

Workspace