File Organization important MCQs
- A unit of storage that can store one or more records in a hash file organization is denoted as
- The file organization which allows us to read records that would satisfy the join condition by using one block read is
- The file organization that provides very fast access to any arbitrary record of a file is
- Which of the following true about FILE *fp?
- fseek() should be preferred Over rewind() mainly because
- A _____ is the basic element of data where individual field contains a single value, such as an employees last name, a data or the value of the sensor reading.
- In _____ file organization, a fixed format is used for records where all records are of the same length, consisting of the same number of fixed length fields in a particular order.
- Ihe _____ noneneeuus maintains the key characteristic of the sequential file: Records are organized in sequence based on a key field.
- The ______ greatly reduced the time required to access a single record, without sacrificing the sequential nature of the file.
- ________ are often used where very rapid access is required, where fixed length records are used, and where records are always accessed one at a time.
- A _file system is software that enables multiple computers to share file storage while maintaining consistent space allocation and file content.
- When fopen() is not able to open a file, it returns
- What is the need for a File when you can store anything in memory?
- Choose a correct statement about C File operation Program?
- A mode which is used to open an existing file for both reading and writing
- Select a function which is used to write a string to a file ____.
- Select a function which is used to read a single character froma file at a time?
- Select text file in which data is stored in _____.
- which Is data type of file pointer is ___.
- Primary indexes, secondary indexes and cluster indexes are all types of
- Airline reservation systems and inventory control system are the examples of _____ System.
- Which of the following is not an appropriate criterion for file organization?
- Which header file is required to use file l/O operations?
- Which of the following is used to create a stream that performs both input and output operations?
- Which of the following is not used as a file opening mode ?
- Which function will return the current file position for stream?
- Which stream class is to only write on files?
- Which among following is used to open a file in binary mode?
(a) Buckets
(b) Disk pages
(c) Blocks
(d) Nodes
(a) Buckets
(a) Heap file organization
(b) Sequential file organization
(c) Clustering file organization
(d) Hash file organization
(c) Clustering file organization
(a) Ordered file
(b) Unordered file
(c) Hashed file
(d) B-tree
(c) Hashed file
(a) FILE is a keyword in C for representing files and fp is a variable of FILE type.
(b) FILE is a stream
(c) FILE is a buffered stream
(d) FILE is a structure and fp is a pointer to the structure of FILE type
(d) FILE is a structure and fp is a pointer to the structure of FILE type
(a) rewind() doesn't work for empty files
(b) rewind) may fail for large files
(c) In rewind, there is no way to check if the operations completed successfully
(d) All of the above
(c) In rewind, there is no way to check if the operations completed successfully
(a) field
(b) record
(c) file
(d) database
(a) field
(a) pile
(b) sequential
(c) indexed sequential
(d) indexed
(b) sequential
(a) pile
(b) sequential file
(c) indexed sequential file
(d) indexed file
(c) indexed sequential file
(a) pile
(b) sequential file
(c) indexed sequential file
(d) indexed file
(c) indexed sequential file
(a) Indexed files
(b) Direct files
(c) equential files
(d) Indexed Sequential files
(b) Direct files
(a) Storage
(b) Tertiary
(c) Secondary
(d) Cluster
(d) Cluster
(a) EOF
(b) NULL
(c) Runtime Error
(d) Compiler Depedent
(b) NULL
(a) Memory (RAM) is limited in any computer.
(b) A file is stored on Hard Disk which can store Gigabytes of data.
(c) File stored on Hard Disk is safe even if PC is switched off. But Memory or RAM contents are cleared when PC is off.
(d) All the above
(d) All the above
int main()
{
FILE *fp;
char ch;
fp=fopen("readme.txt","r");
while((ch=fgetc(fp)) !=EOF)
{
printf("%c",ch);
}
(a) FOPEN opens a file named readme.txt in Read Mode ('r).
(b) EOF is End Of File. ch==EOF checks for end of file and while loop stops or exits.
(c) FGETC(p) is a function that returns one character and cursor goes to next character.
(d) All of above
(d) All of above
(a) "W"
(b) "W+"
(c) "R+"
(d) "A+"
(c) "R+"
(a) pits()
(b) putc()
(c) fputs()
(d) fgets()
(c) fputs()
(a) fscanf()
(b) getch()
(c) fgetc()
(d) fgets()
(c) fgetc()
(a) ASC11 code
(b) Binary code
(c) Octal code
(d) text code
(a) ASC11 code
(a) int
(b) double
(c) void
(d) File
(d) File
(a) ordered indexes
(b) unordered indexes
(c) linear indexes
(d) relative search indexes
(a) ordered indexes
(a) sequential file
(b) indexed sequential file
(c) Direct Access File
(d) none of the mentioned
(c) Direct Access File
(a) Larger access time
(b) ease of update
(c) Simple maintenance
(d) economy of storage
(a) Larger access time
(a) <ifstream>
(b) <ostream>
(c) <fstream>
(d) <iostream>
(c) <fstream>
(a) ofstream
(b) ifstream
(c) iostream
(d) fstream
(c) iostream
(a) ios::trunc
(b) ios:binary
(c) ios::in
(d) ios::ateption 1
(a) ios::trunc
(a) fgetpos()
(b) fseek()
(c) ftell()
(d) fsetpos()
(c) ftell()
(a) ofstream
(b) ifstream
(c) fstream
(d) iostream
(a) ofstream
(a) ios:app
(b) ios::out
(c) ios::in
(d) ios::binary
(d) ios::binary
Related Topics
"File Organization important MCQs","Multiple Choice Questions on File Organisations","File Organization MCQ with Answers PDF","FIle Structure and Organization solved MCQs","Important MCQ's on File Organization for Online Examination","File Organization and Indexing MCQ","Files Management Mcqs"
Post a Comment
To be published, comments must be reviewed by the administrator.