Question Set

1. Which of the following is the correct way to find out the number of elements currently present in an ArrayList Collection called arr?






Ask Your Doubts Here

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

Comments

Show Similar Question And Answers
QA->Find out the correct alternative with the series K4J3RPQ2TV3A3....
QA->If a  stands for +,  stands for x,  stands for <,  stands for = ,  stands for -,  stands for ÷ ,  stands for > Find out the correct choice: 15  3  72251 15  372251 15372251 15372251....
QA->Find out the correct alternative with the series.K4J3RPQ2TV3A3....
QA->A word given in Capital Letters is followed by four answer words. Out of these only one can be formed by using the letters of the given words. Find out that word— ENVIRONMENT....
QA->A word given in capital letters is followed by four words. Out of these only one cannot be formed by using the letters of the given word. Find out that word— REVOLUTIONARY....
MCQ->Which of the following statements are correct about an ArrayList collection that implements the IEnumerable interface? The ArrayList class contains an inner class that implements the IEnumerator interface. An ArrayList Collection cannot be accessed simultaneously by different threads. The inner class of ArrayList can access ArrayList class's members. To access members of ArrayList from the inner class, it is necessary to pass ArrayList class's reference to it. Enumerator's of ArrayList Collection can manipulate the array.....
MCQ->What will be the output of the program ? #include<stdio.h> int main() { static int arr[] = {0, 1, 2, 3, 4}; int p[] = {arr, arr+1, arr+2, arr+3, arr+4}; int ptr=p; ptr++; printf("%d, %d, %d\n", ptr-p, ptr-arr, ptr); ptr++; printf("%d, %d, %d\n", ptr-p, ptr-arr, ptr); ++ptr; printf("%d, %d, %d\n", ptr-p, ptr-arr, ptr); ++ptr; printf("%d, %d, %d\n", ptr-p, ptr-arr, ptr); return 0; }....
MCQ->Which of the following is the correct way to find out the number of elements currently present in an ArrayList Collection called arr?....
MCQ->What will be the output of the following program? #include<iostream.h> struct IndiaBix { int arr[5]; public: void BixFunction(void); void Display(void); }; void IndiaBix::Display(void) { for(int i = 0; i < 5; i++) cout<< arr[i] << " " ; } void IndiaBix::BixFunction(void) { static int i = 0, j = 4; int tmp = arr[i]; arr[i] = arr[j]; arr[j] = tmp ; i++; j--; if(j != i) BixFunction(); } int main() { IndiaBix objBix = {{ 5, 6, 3, 9, 0 }}; objBix.BixFunction(); objBix.Display(); return 0; }....
MCQ->What will be the output of the following program? #include<iostream.h> struct BixArray { int arr[5]; public: void BixFunction(); void Display(); }; void BixArray::BixFunction() { static int i = 0, j = 4; i++; j--; if(j > 0) BixFunction(); int tmp = arr[i]; arr[i] = arr[j]; arr[j] = tmp; i--; j++; } void BixArray::Display() { for(int i = 0; i < 5; i++) cout<< arr[i] << " "; } int main() { BixArray objArr = {{5, 6, 3, 9, 0}}; objArr.BixFunction(); objArr.Display(); return 0; }....
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