subject

1- which of the following correctly creates an anonymous array and passes it's reference to a method named print? a) print ( {1, 2, 3} ); b) print (int [ ] x = {1, 2, 3} ) ; c) print (int [ ] {1, 2 ,3} ) ; d) print (new int [ ] {1, 2, 3} ) ; 2- which of the following shows the header for a method that correctly accepts a reference to an array and returns a reference to an array? a) public static void process (int [ ] x) b) public static double process (int [ ] x) c) public static double[ ] process (int [ ] x) d) public static double[ ] process (int [ ] {1, 2, 3} ) 3- if x is an array of int values with 10 elements defined inside a method, which of the following would return a reference to that array from the method? a) return x ; b) return x[0] ; c) return int[ ] x ; d) return new int[ ] x ; 4- which of the following shows the header for a method that will accept any number of int values? a) public static int add (int x) b) public static int add (int x, int y, int. . z) c) public static int add (int. . x) d) public static int add (int [ ] x) 5- which of the following method headers contains incorrect syntax? a) public static void print ( x) b) public static string getstring (string[ ] x) c) public static string getstring (string x, ) d) public static void print ( x, string y)

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:30
This isn’t really school related, but like where the heck can you find manga, to read to where you don’t have to pay money, for points? my friend wants me to read bj alex, and i can’t find it anywhere for free.
Answers: 2
question
Computers and Technology, 22.06.2019 21:10
Dameas communication challenge is due to which factor
Answers: 2
question
Computers and Technology, 23.06.2019 04:00
Another name for addicting games.com
Answers: 1
question
Computers and Technology, 23.06.2019 04:31
This graph compares the cost of room and board at educational institutions in texas.
Answers: 1
You know the right answer?
1- which of the following correctly creates an anonymous array and passes it's reference to a method...
Questions
question
Mathematics, 24.01.2020 02:31
Questions on the website: 13722360