41. which layout is the defauld layout of a panel object?
a. gridlayout
b. flowlayout(*)
c. gridlinelayout
d. linelayout
43. which of the following are true?
a. java only supports preemptive scheduling.
b. java only supports time slicing.
c. the jvm has been implemented on os that use time slicing(*)
d. the jvm has been implemented on os that use preemptive scheduling.(*)
44. what should you use to position a button within an application frame so that the size of the button is not affected by the frame size?
a. flowlayout(*)
b. gridlayout
c. the center area of a borderlayout
d. the east or west area of a borderlayout
e. the north or south area of a borderlayout
45. a catch clause may catch exceptions of which types?
a. thowable type(*)
b. error type(*)
c. exception(*)
d. string
46. what is the value displayed by the following program?
class question{
public static void main(string[] args) {
int x=0;
boolean b1,b2,b3,b4;
b1= b2= b3= b4= true;
x = (b1|b2&b3^b4)?x++:--x;
system.out.println(x)
}
}
a. 0(*)
b. -1
c. 1
d. none of the above
47. which method is used to set the text of a label object?
a. settext() (*)
b. setlabel()
c. settextlabel()
d. setlabeltext()
48. which of the following methods cause the string object referenced by s to be changed?
a. s.concat()
b. s.touppercase(0
c. s.replace()
d. none of the above(*)
49. in order for teh myprogram proram to be compiled and run, which of the followin must be true?
a. the myprogram class must be defined in myprogram.java
b. myprogram must be declared as public
c. myprogram must have correctly formed main() method(*)
d. myprogram must import java.lang
50. which of the followin are true?
a. textcomponent extends textarea
b. textarea extends textfield
c. textfield extends textcomponent(*)
d. textcomponent extends textfield
d. textarea extends textcomponent(*)
a. gridlayout
b. flowlayout(*)
c. gridlinelayout
d. linelayout
43. which of the following are true?
a. java only supports preemptive scheduling.
b. java only supports time slicing.
c. the jvm has been implemented on os that use time slicing(*)
d. the jvm has been implemented on os that use preemptive scheduling.(*)
44. what should you use to position a button within an application frame so that the size of the button is not affected by the frame size?
a. flowlayout(*)
b. gridlayout
c. the center area of a borderlayout
d. the east or west area of a borderlayout
e. the north or south area of a borderlayout
45. a catch clause may catch exceptions of which types?
a. thowable type(*)
b. error type(*)
c. exception(*)
d. string
46. what is the value displayed by the following program?
class question{
public static void main(string[] args) {
int x=0;
boolean b1,b2,b3,b4;
b1= b2= b3= b4= true;
x = (b1|b2&b3^b4)?x++:--x;
system.out.println(x)
}
}
a. 0(*)
b. -1
c. 1
d. none of the above
47. which method is used to set the text of a label object?
a. settext() (*)
b. setlabel()
c. settextlabel()
d. setlabeltext()
48. which of the following methods cause the string object referenced by s to be changed?
a. s.concat()
b. s.touppercase(0
c. s.replace()
d. none of the above(*)
49. in order for teh myprogram proram to be compiled and run, which of the followin must be true?
a. the myprogram class must be defined in myprogram.java
b. myprogram must be declared as public
c. myprogram must have correctly formed main() method(*)
d. myprogram must import java.lang
50. which of the followin are true?
a. textcomponent extends textarea
b. textarea extends textfield
c. textfield extends textcomponent(*)
d. textcomponent extends textfield
d. textarea extends textcomponent(*)
No comments:
Post a Comment