Home / C Programming / Library Functions :: General Questions

C Programming :: Library Functions

  1. What will the function rewind() do?

  2. A.
    Reposition the file pointer to a character reverse.
    B.
    Reposition the file pointer stream to end of file.
    C.
    Reposition the file pointer to begining of that line.
    D.
    Reposition the file pointer to begining of file.

  3. Input/output function prototypes and macros are defined in which header file?

  4. A.
    conio.h
    B.
    stdlib.h
    C.
    stdio.h
    D.
    dos.h

  5. Which standard library function will you use to find the last occurance of a character in a string in C?

  6. A.

    strnchar()

    B.

    strchar()

    C.

    strrchar()

    D.

    strrchr()


  7. What is stderr ?

  8. A.
    standard error
    B.
    standard error types
    C.
    standard error streams
    D.
    standard error definitions

  9. Does there any function exist to convert the int or float to a string?

  10. A.

    Yes

    B.

    No


  11. What is the purpose of fflush() function.

  12. A.
    flushes all streams and specified streams.
    B.
    flushes only specified stream.
    C.
    flushes input/output buffer.
    D.
    flushes file buffer.

  13. Can you use the fprintf() to display the output on the screen?

  14. A.
    Yes
    B.
    No

  15. What will the function randomize() do in Turbo C under DOS?

  16. A.

    returns a random number.

    B.

    returns a random number generator in the specified range.

    C.

    returns a random number generator with a random value based on time.

    D.

    return a random number with a given seed value.