Computer Applications
Given that int A[ ] = {35, 26, 19, 76, 58};
What will be value contained in A[3] ?
- 35
- 26
- 19
- 76
- 58
Related Questions
Consider the following code
int number[ ] = new int[5];After execution of this statement, which of the following are True ?
- number[0] is undefined
- number[5] is undefined
- number[2] is 0
- number.length is 5
Which of the following contain error ?
- int x[ ] = int[10];
- int[ ] y = new int[5];
- float d[ ] = {1, 2, 3};
- x = y = new int[10];
- int a[ ] = {1, 2}; int b[ ]; b = a;
- int i = new int(10);
Given that
int z[ ][ ] = {{2, 6, 5}, {8, 3, 9}};What will be value of z[1][0] and z[0][2] ?- 2 and 9
- 8 and 5
- 2 and 5
- 6 and 3
Given array 12, 3, 8, 5. What will be array like after two passes of selection sort ?
- 12, 3, 8, 5
- 3, 5, 8, 12
- 3, 8, 5, 12
- 3, 5, 12, 8