Computer Applications
In …………… search, the algorithm uses the middle value of the array for the search operation.
- binary
- linear
- bubble
- selection
Java Arrays
2 Likes
Answer
binary
Reason — In binary search, the algorithm uses the middle value of the array for the search operation.
Answered By
1 Like
Related Questions
Give the output of the following
switch (x) { case 'M' : System.out.print ("Microsoft Teams"); break; case 'G': System.out.print ("Google Meet"); default: System.out.print("Any Software"); break; case 'W': System.out.print("Web Ex"); break; }when x = 'g'
- Google Meet
- Any Software
- Google Meet
Any Software - Web Ex
Given array int Z[ ] = {15, 16, 17} ; it will occupy …………… bytes in memory.
- 3
- 12
- 24
- 64
A single dimensional array contains N elements. What will be the last subscript?
- N
- N - 1
- N - 2
- N + 1
Identify the output of the following code :
String P = "20", Q = "19"; int a = Integer.parseInt(P); int b = Integer.valueOf(Q); System.out.println(a + "" + b);- 2019
- 39
- 20
- 19