Answer:
- public class FindDuplicate{
-
- public static void main(String[] args) {
- Scanner input = new Scanner(System.in);
-
- int n = 5;
- int arr[] = new int[n];
-
- for(int i=0; i < arr.length; i++){
- int inputNum = input.nextInt();
- if(inputNum >=1 && inputNum <=n) {
- arr[i] = inputNum;
- }
- }
-
- for(int j =0; j < arr.length; j++){
- for(int k = 0; k < arr.length; k++){
- if(j == k){
- continue;
- }else{
- if(arr[j] == arr[k]){
- System.out.println("True");
- return;
- }
- }
- }
- }
- System.out.println("False");
- }
- }
Explanation:
Firstly, create a Scanner object to get user input (Line 4).
Next, create an array with n-size (Line 7) and then create a for-loop to get user repeatedly enter an integer and assign the input value to the array (Line 9 - 14).
Next, create a double layer for-loop to check the each element in the array against the other elements to see if there is any duplication detected and display "True" (Line 21 - 22). If duplication is found the program will display True and terminate the whole program using return (Line 23). The condition set in Line 18 is to ensure the comparison is not between the same element.
If all the elements in the array are unique the if block (Line 21 - 23) won't run and it will proceed to Line 28 to display message "False".
An optical instrument used for viewing small objects is a microscope
Answer: The user had a mandatory profile.
Explanation:
A user profile is considered mandatory and such profile is known as pre-configured roaming user profile that only administrators can use to make precise settings for clients. In this type of profile, one can adjust his or her desktop settings, the adjustment are temporarily stored after logging off from the profile.
Answer:
The correct answer to the following question will be option D. 300 nits.
Explanation:
LCD Monitors: LCD stands for Liquid Crystal Display, the display which uses two sheets of liquid crystal with polarizing material between the sheets and also known as Flat panel monitor.
- Each of the crystal in LCD's is like a shutter, it either allows to pass the light or it blocks the light. There is a fixed type of resolution in LCD
- LCD panels can be easily moved around all, lightweight, compact and small in size.
- An average 17-inch LCD monitor could be around 15 pounds, upwards 300 nits which gives the perfect brightness.
So, Option D is the correct answer.
Answer:
The metric column basically indicate the cost of the route in the routing table and also decide correct route in the routing table.
In the routing table, the lowest metric route is more preferable route as compared to others. In the networking, the routing table is basically used to store the data or information in the form of table in the router.
In the computer network, the routes are listed for the particular destination in which the routes are basically associate that particular routes.