UAE University Algorithms and Problem Solving Spring 2016/2017 Name: Based on th
ID: 3837724 • Letter: U
Question
UAE University Algorithms and Problem Solving Spring 2016/2017 Name: Based on the followi lic static char method (int n double num) Consider the following declaratioss int a new int double Which of the following is a valid method call (0s mark a) method (a, x); b) x method (any); c) method (a, y): System out print(method 2, Which of the following is a valid method declaration/signatureheading in Java (0.5 mark): a) public static integer0nun(int list b) public static run(int0 list) c public static void run int[10 list) d) public static intrunint0 list 3, What is the value of int alpha new int [5]: int i 0 3a i++) for (int j 0: j 5a j++) 4. Enter (V) if the following is a valid array declaration or00 ifitisin valid (1 mark) Array declaration. double int int table (10,20 40, 501 int (1 table (10,20 30)Explanation / Answer
Q -1 answer d) System.out.print(method(a[0],x)); because method accepts the integer and double as arguments , in all other options other than (d) first argument is Array instead of integer
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.