Answer:
import java.io.*;
import java.util.Scanner;
class Odd {
public static void main (String[] args) {
Scanner ele=new Scanner(System.in);//creating a scanner object.
int n,sum=0;//declaring n and sum and initializing sum with 0.
n=ele.nextInt();//taking input of the n.
int [] arr =new int[n];//declaring an array arr.
for(int i=0;i<n;i++)
{
arr[i]=ele.nextInt();//taking input of the array.
}
for(int i=0;i<arr.length;i++)
{
if(i%2!=0)//adding to the if index is odd.
{
sum+=arr[i];
}
}
System.out.println(sum);
}
}
Input:-
6
1 2 3 4 5 6
Output:-
12
Explanation:
First I have created an a scanner object ele. I have taken two integers n and sum, n for number of array elements and sum for calculating the sum of odd indexed elements hence initializing it with 0.Then I have created an array named arr.Then taking the input of the n and array elements.Then looping over the array and calculating the sum.
Answer:
The Storage Spaces feature in Windows
Explanation:
The Storage Spaces feature can be used here. This feature was initiated in Windows server 2012 and allows the user store his files on the cloud or virtual storage. This makes it possible to have a flexible storage as there is a storage pool which is updated with more storage capacity as it decreases. The feature also offers storage security, backing up files to other disks to protect against total loss of data on a failed disk.
Answer:
four
Bitmap images can contain any number of colours but we distinguish between four main categories: Line-art. These are images that only contain two colours, usually black and white. Sometimes these images are referred to as bitmaps because a computer has to use only 1 bit (on=black, off=white) to define each pixel.
Answer:
PAP authentication method
Explanation:
PAP known as Pass word authentication protocol Basically, PAP works like a standard login procedure; the remote system authenticates itself to the using a static user name and password combination, so not recommended for applications.