please answer with A B C or D 6. (co 1) WI does the following statement do? hat
ID: 3551331 • Letter: P
Question
please answer with A B C or D
6. (co 1) WI does the following statement do? hat double array[ new double[15]: (Points 6) O Creates a double array containing an unknown number of elements O Generates a compile error because the number of elements is not specified o Creates a double array containing 15 elements. Declares an array reference but does not create an actual array object. 7. (TCO 2) V should be declared as local variables of a method if (Points 6) ariables o they are used as arguments to other methods of the class. O their values are only used by the method O their values must be shared between different methods of the class. the are method parameters 8. TCO 2) Which of the following indicates that class X inherits from class Y in Java? (Points 6) O public class X inherits Y O public class Y extends X class X:Y O public class X extends Y 9. (TCO 3) How would you set the layout of a JFra e to create 64 equal sized areas arranged like a chess board? (Points 6) O frame setLayout (new FlowLayout (64)) O frame setLayout GridLayout (8, 8)); (new O frame setLayout (new BorderLayout (64)) O None of the above 10. (TCO 3) W does the following Java code do? hat JPanel pane new JPanel (Points 6) which onents into 5 areas, NORTH, SOUTH, EAST EST CENTER reates a p organize its comp ane O Creates a panel which will organize its components left to right, top to bottom O Creates a panel which will organize its components into a specific number of rows and columns. O None of the aboveExplanation / Answer
6 . A
7. B
8. D
9. B
10. B
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.