Monday 19 March 2012

Internet, Web Programming and Java MCQ 17


  1. Which refers to a channel through which data flow from the source to the destination:

    1. String
    2. Character
    3. Stream
    4. Buffer

  1. Java Stream classes can be categorised into two groups:
    1. Byte  and Character Stream Classes
    2. Stream and String Classes
    3. String and Character Stream Classes
    4. Buffer and Character Stream Classes
  2. Java Stream classes can be categorised into _______ groups:

    1. 1
    2. 2
    3. 3
    4. 4

  1. Byte Stream Classes support input/output operations on _____ bytes:

    1. 8 bit byte
    2. 16 bit byte
    3. 32 bit byte
    4. 64 bit byte

    1.  
  1. Character Stream Classes support input/output operations on _______ characters:

    1. 8 bit Unicode
    2. 16 bit Unicode
    3. 32 bit Unicode
    4. 64 bit Unicode

  1. Java supports input/output of data through the classes included in the _______ package:

    1. Java.oi
    2. Java.out
    3. Java.in
    4. Java.io

  1. Input stream  class is :
    1. An interface defined in the java.io package
    2. A byte stream class used to read bytes from a file
    3. An abstract class which contain method to read 8 bit-bytes
    4. A class used to read primitive data types
  2. The ________ method help in clearing the contents of the buffer:

    1. Flush()
    2. Clear()
    3. Rub()
    4. Vanish()

  1. The_____ class is used to read input from the console input device:
    1. Input Stream Reader
    2. Output Stream Reader
    3. Byte Stream Reader
    4. Buffer Stream Reader
  2. The _______ class is used to write bytes to a file:

    1. File Input Stream
    2. File Output Stream
    3. File Buffer Stream
    4. File String Stream

  1. The _______ class is used to read characters from the file:

    1. Stream Reader
    2. Character Reader
    3. Input Reader
    4. File Reader

  1. Data Input Stream class contains methods to read________

    1. Non primitive data type
    2. Primitive data type

    1.  
  1. Input data type what is the characters and sequence of characters marking the begging or end of a unit of data.

    1. Parsing
    2. Boolean
    3. Token
    4. Delimiters

  1. _______ is a string of characters, categorized according to the rules as a symbol.

    1. Delimiters
    2. Token
    3. Boolean
    4. Parsing


  1. The _______class distinguish among numbers, identifiers, quoted strings and different common styles.

    1. Stringtokenizer
    2. Streamtokenizer
    3. Inputstream
    4. Buffer


  1. The ______ class is used to display the result on an output device:

    1. Read Stream
    2. Write Stream
    3. Display Stream
    4. Print Stream

  1. Java provides _______ to convert byte-oriented data into character-oriented data:
    1. InputStreamReader
    2. OutputStreamReader
    3. StringStreamReader
    4. PrintStreamReader
  2. _________ method returns the current line number:

    1. int next()
    2. int line()
    3. int lineon()
    4. int lineno()

  1. Which specifies that all the character within the range between low & high are white space characters:

    1. Void wordChars
    2. Void whitespaceChars
    3. Void resetSyntax()
    4. Void Chars

5 comments :