Q.1) TextField is also called as………?
A. Label
B. Edit Control
C. Both A & B
D. None of the above
ANSWER
B. Edit Control
Q.2) TextField is a subclass of…??
A.TextComponent
B.TextControl
C.TextArea
D. None of the above
ANSWER
A.TextComponent
Q.3) Which method is not used in
TextField class ?
A. getText( )
B. echoCharIsSet( )
C. setTextSize( )
D. isEditable( )
ANSWER
C. setTextSize( )
Q.4)Which method in TextField can be
used to show password entered by
user in “ **** “ this format ??
A. setText( )
B. echoCharIsSet( )
C. setEchoChar(char ch)
D. setEditable(boolean canEdit)
ANSWER
C. setEchoChar(char ch)
Q.5) Which value indicates
horizontal scrollbar in TextArea..?
A. 1
B. 2
C. 3
D. 4
ANSWER
B. 2
Q.6) What specifies width of TextArea..?
A. numLines
B. str
C. sBars
D. numChars
ANSWER
D. numChars

Advance Java msbte MCQ for diploma students

  • 1.
    Q.1) TextField isalso called as………? A. Label B. Edit Control C. Both A & B D. None of the above ANSWER B. Edit Control
  • 2.
    Q.2) TextField isa subclass of…?? A.TextComponent B.TextControl C.TextArea D. None of the above ANSWER A.TextComponent
  • 3.
    Q.3) Which methodis not used in TextField class ? A. getText( ) B. echoCharIsSet( ) C. setTextSize( ) D. isEditable( ) ANSWER C. setTextSize( )
  • 4.
    Q.4)Which method inTextField can be used to show password entered by user in “ **** “ this format ?? A. setText( ) B. echoCharIsSet( ) C. setEchoChar(char ch) D. setEditable(boolean canEdit) ANSWER C. setEchoChar(char ch)
  • 5.
    Q.5) Which valueindicates horizontal scrollbar in TextArea..? A. 1 B. 2 C. 3 D. 4 ANSWER B. 2
  • 6.
    Q.6) What specifieswidth of TextArea..? A. numLines B. str C. sBars D. numChars ANSWER D. numChars