Computer Applications
Given array int x[ ] = {11, 22, 33, 44}; the value of x[1 + 2] is :
- 11
- 22
- 33
- 44
Java Arrays
1 Like
Answer
44
Reason — Array index starts from 0 to Size - 1. The value of x[1 + 2]
equals x[3]
. The value at index 3 is 44.
Answered By
2 Likes
Related Questions
Class initialisation is the …………… initialisation of class fields of values.
- explicit
- implicit
- Both a and b
- None of the above
Operations like square root, sine and cosine are
- impure functions
- pure functions
- static functions
- class functions
A linear search
- can be used with sorted arrays only.
- can be used with unsorted arrays only.
- can be used with both sorted and unsorted arrays.
- cannot be used with arrays.
Method that converts a character to uppercase is
- toUpper()
- ToUpperCase()
- TOUPPERCASE()
- toUpperCase(char)