File I/O


  1. Which of the following mode argument is used to truncate?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    w


  1. In C language, FILE is of which data type?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    struct



  1. What is the meant by ‘a’ in the following C operation?
    fp = fopen("Random.txt", "a");











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    Append


  1. When a C program is started, O.S environment is responsible for opening file and providing pointer for that file?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    All of above



  1. Which type of files can’t be opened using fopen()?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: E

    None of these