subject

3. if x refers to an array of int values with three elements, which statement assigns the value 12 to the last element in the array? a} x [3] = 12; b} x. set (3) = 12; c} x [2] = 12; d} x. set (3, 12) ; 4. if x refers to an array of int values, which of the following will display all of the values in the array? a) for (int x, y) { system. out. println (y); } b) for (int y, x) { system. out. println (y) ; } c) for (int x : y) { system. out. println (y) ; } d) for (int y : x) { system. out. println (y) ; } 5. which of th following statements contains incorrect syntax? a) int x = {1, 2, 3, 5, 10} ; b) boolean [ ] b = {true, true, false} ; c) double [ ] d ; d) string [ ] str = { "abc", "xyz" } ;

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 00:30
If joey was single and his taxable income was $9,500, how much would he pay in taxes each year?
Answers: 1
question
Computers and Technology, 23.06.2019 07:10
If you want to import a picture into a dtp application, what must you do first? draw an image frame. import text. open the folder containing the file. select get image… from the windows menu.
Answers: 2
question
Computers and Technology, 24.06.2019 09:50
Suppose you are an ad-serving company and you maintain a log of cookie data for ads you serve to the web pages for a particular vendor (say amazon). a. how can you use this data to determine which are the best ads? b. how can you use this data to determine which are the best ad formats? c. how could you records of past ads and ad clicks to determine which ads to send to a given ip address? d. how could you use this data to determine how well the technique you used in your answer to part c was working? e. how could you use this data to determine that a given ip address is used by more than one person? f. how does having this data give you a competitive advantage vis-à-vis other ad-serving companies?
Answers: 2
question
Computers and Technology, 24.06.2019 17:40
Write an assembly language program to input a string from the user. your program should do these two things: 1. count and display the number of words in the user input string. 2. flip the case of each character from upper to lower or lower to upper. for example if the user types in: "hello there. how are you? " your output should be: the number of words in the input string is: 5 the output string is : hello there. how are you?
Answers: 2
You know the right answer?
3. if x refers to an array of int values with three elements, which statement assigns the value 12 t...
Questions
question
Mathematics, 08.07.2021 05:40
question
Biology, 08.07.2021 05:40
question
Mathematics, 08.07.2021 05:50
question
Mathematics, 08.07.2021 05:50
Questions on the website: 13722367