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

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

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

  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

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

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

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

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

  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

  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