1. Which one creates an instance of an array?





Ask Your Doubts Here

Type in
(Press Ctrl+g to toggle between English and the chosen language)

Comments

  • By: guest on 02 Jun 2017 01.25 am
    Option A is correct. It uses correct array declaration and correct array construction. Option B is incorrect. It generates a compiler error: incompatible types because the array variable declaration is not correct. The array construction expects a reference type, but it is supplied with a primitive type in the declaration. Option C is incorrect. It generates a compiler error: incompatible types because a string literal is not assignable to a character type variable. Option D is wrong, it generates a compiler error <identifier> expected. The compiler thinks that you are trying to create two arrays because there are two array initialisers to the right of the equals, whereas your intention was to create a 3 x 3 two-dimensional array.
Show Similar Question And Answers
QA->Who exhorted the world famous dictum "One caste, One religion, One clan, One world, One God"?....
QA->“One caste, One religion and One God for man of the same blood and form, there is no difference animals of the same caste alone procreate Viewed thus all humanity belong to one caste”- In which book of Sree Narayana Guru these words can be seen?....
QA->……is writing which the author creates from imagination?....
QA->An object made from a material that is magnetized and creates its own persistent magnetic field is called ?....
QA->The artistic media tool in the spray mode lets us fill creates strokes of different kinds of patterns:....
MCQ->Which of the following statements are correct about the C#.NET code snippet given below? int[] a = {11, 3, 5, 9, 4}; The array elements are created on the stack. Refernce a is created on the stack. The array elements are created on the heap. On declaring the array a new array class is created which is derived from System.Array Class. Whether the array elements are stored in the stack or heap depends upon the size of the array.....
MCQ->Consider the following statements (L is the length of array between centres of end antennas and A is wave-length)Width of major lobe between nulls of broad side array and end fire array are different.Directive gain of broadside array and end fire array are different.Directive gain of broadside array is 4 Which of the above statements are correct?....
MCQ->Which of the following statements are correct about the this reference? this reference can be modified in the instance member function of a class. Static functions of a class never receive the this reference. Instance member functions of a class always receive a this reference. this reference continues to exist even after control returns from an instance member function. While calling an instance member function we are not required to pass the this reference explicitly.....
MCQ->Which of the following statements mentioning the name of the array begins DOES NOT yield the base address? 1: When array name is used with the sizeof operator. 2: When array name is operand of the & operator. 3: When array name is passed to scanf() function. 4: When array name is passed to printf() function.....
MCQ->Consider the following statements about an array in Pascal An array has a fixed predetermined number of components.Any component of an array can be accessed using an index.An array variable name refers to a group of quantities by a single name.When array variables are used an appropriate declaration is required. Which of the above are correct?....
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use | Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions
Question ANSWER With Solution