Data and File Structures
C programming data structures and file operations
Questions
In which of the following files, each record must have associated with it in integer key value that will help to identify the slot?
- Sequential file
- Relative file
- Command file
- Parameter file
- Password file
Which of the following data structures is a special type of data structure in which insertions and deletions are done either at the front end or at the rear end of the queue?
- Deque
- Ordinary queue
- Linked list
- Set
- Array
Which of the following functions accepts file pointer as a parameter and resets the position of the file pointer to the start of the file?
- getc()
- rewind()
- isset()
- fscanf()
- fclose()
Which of the following functions is used to obtain the current position of the file pointer?
- fscanf()
- ftell()
- ferror()
- strcat()
- abs()
Which of the following files is similar to the relative file except that the key value need not be an integer?
- Sequential file
- Data file
- Parameter file
- Direct file
- Archive file
Which of the following functions pushes the character read previously using getc() back into input stream pointed to by the file pointer?
- getc()
- GET
- fscanf()
- ungetc()
- ferror()
Which of the following data structures represents the collection of objects which may or may not contain duplicates?
- Set
- queue
- List
- array
- Tree
At which of the following specification of the data structure, the user or data structure designer is free to think outside the bounds of anyone programming language?
- The application level
- Data structure
- The abstract level
- Storage structure
- Set
In which of the following specification of the data structure, one needs to determine where the data will reside and allocate space in that storage area?
- Application level
- Storage structure
- Data structure
- Array
- Implementation level
In which of the following files, no sequence is imposed on the storage of records in the data files, therefore no overflow area is needed?
- Sequence file
- Archive file
- Indexed file
- Parameter file
- Password file
Which of the following data structures represents an ordered list in which insertion and deletion both occur only at one end?
- Queue
- Stack
- Set
- Array
- Linked list
Which of the following file control functions is used to move the file pointer to the desired position within the file?
- ferror()
- fseek()
- fscanf()
- getc()
- fopen()
Which of the following functions accepts file pointer, as a parameter and returns either a non zero integer or a zero integer?
- feof()
- ferror()
- fscanf()
- getc()
- fclose()
Which of the following data structures represents a list where the order does not matter to the application and it may contain duplicates?
- Multi set
- Set
- Linked list
- Ordinary queue
- Array