Question: Java programming Question 7 0.05 pts Instance data is usually declared with the modifier keyword public. O True False D Question 8 0.05 pts Constants
Java programming



Question 7 0.05 pts Instance data is usually declared with the modifier keyword public. O True False D Question 8 0.05 pts Constants that might be of interest to other classes are usually declared with the modifier keywords... O static nonstatic O private public final enum Question 9 0.05 pts Methods that are to be accessible by outside classes are usually declared with the modifier keywords... O private O public instance static Question 10 0.05 pts A has a" relationship is created when a class contains a variable that is a reference to an object from another class. O True False Question 11 0.05 pts Assume the class Foo exists. If the calling method makes this call: Foo foo = new FooO; myMethod(foo); True or false: myMethod can be coded in a way that will make the caller's foo reference point to something different than it did when the call to myMethod was initiated. O True O False D Question 12 0.05 pts Based on information in the UW Design Principles slide deck, what can we say about coupling and cohesion? O coupling and cohesion should both be maximized O coupling should be maximized and cohesion minimized O coupling should be minimized and cohesion maximized O both coupling and cohesion should be minimized Question 13 0.05 pts When creating "happy path" unit tests, in general you should create one test method for each production method. O True O False Question 14 0.05 pts When writing a test method for a precondition, you may test several preconditions in the same method. True O False Question 15 0.05 pts Which of these correctly declares a two-dimensional array of integers? O array mylnts = int(10,5); o int[] = new array.int[10][5]; int[ 1 ] myints = int[10,5); o int[] mylnts = new int[10][5]; O int[][] mylnts = new [10][5]; U Question 16 0.05 pts Which of these correctly displays the count of elements in the array mylnts? System.out.print(mylnts); System.out.print(mylnts.length()); System.out.print(mylnts.length); System.out.print( mylnts.count()); n Question 17 0.05 pts Java can create two-dimensional arrays, but not arrays of three or more dimensions. O True False D Question 18 0.05 pts In Java, it is possible for an array element to reference an object or another array instead of primitive data. O True O False Question 19 0.05 pts Which of these correctly declares an enumerated type called Studentstanding? O public enum Studentstanding; o public enum Studentstanding {GOOD,PROBATION,EXPELLED}; public enum Studentstanding = new Enum(GOOD,PROBATION,EXPELLED); o public enum Studentstanding {"GOOD","PROBATION","EXPELLED"); Question 20 0.05 pts Which of these JavaDoc tags are you expected to use this quarter? @comment @version O @descrip O @author @parameter @param @return O @returns
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
