Home / CSE MCQs / JAVA MCQs :: Input Output Streams - Java

CSE MCQs :: JAVA MCQs

  1. Which of these is used to perform all input & output operations in Java?
  2. A.
    streams
    B.
    Variables
    C.
    classes
    D.
    Methods

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. What does AWT stands for?
  4. A.
    All Window Tools
    B.
    All Writing Tools
    C.
    Abstract Window Toolkit
    D.
    Abstract Writing Toolkit

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Which of these is a type of stream in Java?
  6. A.
    Integer stream
    B.
    Short stream
    C.
    Byte stream
    D.
    Long stream

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Which of these classes are used by Byte streams for input and output operation?
  8. A.
    InputStream
    B.
    InputOutputStream
    C.
    Reader
    D.
    All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Which of these classes are used by character streams for input and output operations?
  10. A.
    InputStream
    B.
    Writer
    C.
    ReadStream
    D.
    InputOutputStream

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Which of these class is used to read from byte array?
  12. A.
    InputStream.
    B.
    BufferedInputStream.
    C.
    ArrayInputStream.
    D.
    ByteArrayInputStream.

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Which exception is thrown by read() method?
  14. A.
    IOException
    B.
    InterruptedException
    C.
    SystemException
    D.
    SystemInputException

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Which of these is used to read a string from the input stream?
  16. A.
    get()
    B.
    getLine()
    C.
    read()
    D.
    readLine()

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. Which of these class is used to read characters and strings in Java from console?
  18. A.
    BufferedReader
    B.
    StringReader
    C.
    BufferedStreamReader
    D.
    InputStreamReader

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. Which of these classes are used by Byte streams for input and output operation?
  20. A.
    InputStream
    B.
    InputOutputStream
    C.
    Reader
    D.
    All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum