Answer:
The answer is option 1 arr.length.
Explanation:
In java arr.length gives the correct number of elements in the array.The length is function is only applicable for arrays.
The length() method is applicable for strings.
arr.length-1 will give 1 element less.
There is no .size for arrays in java.
So we conclude that arr.length is correct way of getting the number of elements in one dimensional array arr.
Import java.util.Scanner;
public class MinutesConversion {
private static Scanner inputDevice;
public static void main(String[] args) {
int minutes, hours;
float days; // float for decimal point
inputDevice = new Scanner(System.in);
System.out.println("Please enter minutes for conversion >> ");
minutes = inputDevice.nextInt();
hours = minutes / 60;
days = hours / 24.0f;
System.out.println(+ minutes + " minutes is " + hours + " hour(s) or" + days " days");
}
}
Answer:
D. replacing cathode ray tube technology
Explanation:
In past few years traditional TV set are being replaced by LCD and LED tv technology. In Traditional TV sets, cathode ray tube is used that is large in size and heavy in weight. Due to this reason, the size of the TV set is too large.
The cathode ray technology is replaced with liquid crystal display (LCD) which may use plasma and Light emitting diode (LED) technology that are smaller in size that make TV sets slim and sleek. This the reason, that the size of TV is reduced significantly.