Will give thumbs up if all questions answered if possible..all are multiple choi
ID: 3898891 • Letter: W
Question
Will give thumbs up if all questions answered if possible..all are multiple choice questionsWhich is the correct syntax for placing the string "bou into an Amay.ist mamed reeVehicles in the 4" position a) recVehiclesset3, a 10. What is the valid range of indices Cindes values) for an armay of sine 5 a) 0 to 6 b) I to S c) I to 4 11Which one of the following statements is the conect iton for a two-dimensional array of 2 nows and 20 columns ofthe type ?er? a) intI 3um-new int 1201 121 c) int[][] num # new int(20,2); b, ist [] [] ? us new int t2] [20]; einti11new int 12.201 12. Coesidet the Sollowing code snippct int val-arrio1131 Which value is stored in the val variabie? The value storod a) In the first row and the second column c) In the first row and the fourth column b) In the fiest nd the first column d) In te dhind row and the second coln 13. How many elements can be stored in a two-dimensional 3 nowby 7 column 2D amay? a) 5 b) 6 e)21 d) 30 A method in a class that medifies information about an object is called alanmethod a) void b) accesso c) mutalor 15.Which of the following statements about constructons is conr a) A class can have only one constructor b) A constructor should always return a val C) A constructor mat ?ve the same name as daa d) A class must have at least one constructor supplied by the progr Which operator should you ?? to test wheth r two n%nwnpo tothg sate object? b) 1- The new operator a) allocates memory for an ebject b) is three Ictters long c)s u ed?.talize·n object All ofhe above 1n a UML class description, the-(-) ndak ? a) public access b) protected accessc)piva access dipackage access Mos programmning languages in utoday a a) object-oriented b) logic-based d procedural 20. The scope ofa private instance firld is c) inside the class, but not inside any method a) inside the methods of the same clas b) inside the parensheses of a method header d heod in which they are defined 21. Two or more methods in a class may have thc same nie as aK a) thay have diffcront return types b) they have difserent return types, buit the same parameter list yeu cannet have two methods with the same name c)tbcy have diffcrent parameter lists
Explanation / Answer
ANSWER 9: Here option(C) is correct because as we know the syntax of the method is java.util.ArrayList.add(int index, E element).
ANSWER 10: Here option(D) is correct no doubt.
ANSWER 11: Here option(B) is correct.
ANSWER 12: Here option(C) is correct.
ANSWER 13: Here option(C) is correct.
ANSWER 14: here option(D) is correct because it is the work of constructor.
ANSWER 15: HEre option(C) is must require for a constructor.
ANSWER 16: Here option(A) is correct because == is used to compare reference always.
ANSWER 17: Here option(D) is correct.
ANSWEr 18: Here option(C) is correct.
ANSWER 19: Here option(A) is correct.
ANSWER 20: Here option(A) is correct.
ANSWER 21: Here option(C) is correct.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.