File Organization important MCQs

File Organization important MCQs

File Organization important MCQs

  1. A unit of storage that can store one or more records in a hash file organization is denoted as
  2. (a) Buckets
    (b) Disk pages
    (c) Blocks
    (d) Nodes

    (a) Buckets

  3. The file organization which allows us to read records that would satisfy the join condition by using one block read is
  4. (a) Heap file organization
    (b) Sequential file organization
    (c) Clustering file organization
    (d) Hash file organization

    (c) Clustering file organization

  5. The file organization that provides very fast access to any arbitrary record of a file is
  6. (a) Ordered file
    (b) Unordered file
    (c) Hashed file
    (d) B-tree

    (c) Hashed file

  7. Which of the following true about FILE *fp?
  8. (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

  9. fseek() should be preferred Over rewind() mainly because
  10. (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

  11. 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.
  12. (a) field
    (b) record
    (c) file
    (d) database

    (a) field

  13. 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.
  14. (a) pile
    (b) sequential
    (c) indexed sequential
    (d) indexed

    (b) sequential

  15. Ihe _____ noneneeuus maintains the key characteristic of the sequential file: Records are organized in sequence based on a key field.
  16. (a) pile
    (b) sequential file
    (c) indexed sequential file
    (d) indexed file

    (c) indexed sequential file

  17. The ______ greatly reduced the time required to access a single record, without sacrificing the sequential nature of the file.
  18. (a) pile
    (b) sequential file
    (c) indexed sequential file
    (d) indexed file

    (c) indexed sequential file

  19. ________ 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.
  20. (a) Indexed files
    (b) Direct files
    (c) equential files
    (d) Indexed Sequential files

    (b) Direct files

  21. A _file system is software that enables multiple computers to share file storage while maintaining consistent space allocation and file content.
  22. (a) Storage
    (b) Tertiary
    (c) Secondary
    (d) Cluster

    (d) Cluster

  23. When fopen() is not able to open a file, it returns
  24. (a) EOF
    (b) NULL
    (c) Runtime Error
    (d) Compiler Depedent

    (b) NULL

  25. What is the need for a File when you can store anything in memory?
  26. (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

  27. Choose a correct statement about C File operation Program?
  28.           
    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

  29. A mode which is used to open an existing file for both reading and writing
  30. (a) "W"
    (b) "W+"
    (c) "R+"
    (d) "A+"

    (c) "R+"

  31. Select a function which is used to write a string to a file ____.
  32. (a) pits()
    (b) putc()
    (c) fputs()
    (d) fgets()

    (c) fputs()

  33. Select a function which is used to read a single character froma file at a time?
  34. (a) fscanf()
    (b) getch()
    (c) fgetc()
    (d) fgets()

    (c) fgetc()

  35. Select text file in which data is stored in _____.
  36. (a) ASC11 code
    (b) Binary code
    (c) Octal code
    (d) text code

    (a) ASC11 code

  37. which Is data type of file pointer is ___.
  38. (a) int
    (b) double
    (c) void
    (d) File

    (d) File

  39. Primary indexes, secondary indexes and cluster indexes are all types of
  40. (a) ordered indexes
    (b) unordered indexes
    (c) linear indexes
    (d) relative search indexes

    (a) ordered indexes

  41. Airline reservation systems and inventory control system are the examples of _____ System.
  42. (a) sequential file
    (b) indexed sequential file
    (c) Direct Access File
    (d) none of the mentioned

    (c) Direct Access File

  43. Which of the following is not an appropriate criterion for file organization?
  44. (a) Larger access time
    (b) ease of update
    (c) Simple maintenance
    (d) economy of storage

    (a) Larger access time

  45. Which header file is required to use file l/O operations?
  46. (a) <ifstream>
    (b) <ostream>
    (c) <fstream>
    (d) <iostream>

    (c) <fstream>

  47. Which of the following is used to create a stream that performs both input and output operations?
  48. (a) ofstream
    (b) ifstream
    (c) iostream
    (d) fstream

    (c) iostream

  49. Which of the following is not used as a file opening mode ?
  50. (a) ios::trunc
    (b) ios:binary
    (c) ios::in
    (d) ios::ateption 1

    (a) ios::trunc

  51. Which function will return the current file position for stream?
  52. (a) fgetpos()
    (b) fseek()
    (c) ftell()
    (d) fsetpos()

    (c) ftell()

  53. Which stream class is to only write on files?
  54. (a) ofstream
    (b) ifstream
    (c) fstream
    (d) iostream

    (a) ofstream

  55. Which among following is used to open a file in binary mode?
  56. (a) ios:app
    (b) ios::out
    (c) ios::in
    (d) ios::binary

    (d) ios::binary

File Organization important MCQs
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.

Previous Post Next Post