Answer:
a. Convenience
b. Random
c. Stratified
d. Systematic
Explanation:
Types of sampling:
The selection of sample is arbitrary and each member has an equal chance of selection.
This selection does not take probability of selection into account rather focuses on the convenience and proximity of the member for selection.
An ordered system is decided to choose the members for this sample.
This sampling plan divided the population into groups, called clusters. A cluster is then randomly selected from the selected population.
The members of the population are divided into groups, called strata. A random sample is drawn from each strata.
Answer:
All of the given options apply and are correct.
Explanation:
a) The first option is correct because the intruder can use denial-of-service attack and by flooding the site with traffic to get the voter server unavailable. Then he can direct the voters to a fraud vote server.
b) The second options correctly applies too because the thief also buys the pass codes from the people who want to sell their right to vote and this way the thief can purchase multiple pass code and cast multiple votes.
c) The hackers can set up fake vote servers and then direct the voters to these servers or websites in order to collect pass codes of voters. These pass codes can then be misused by the thief to cast multiple votes in an online election.
d) Social engineering techniques can also be used to get pass codes from certain voters. By manipulating the targeted voters psychologically they can get their pass codes to cast multiple votes illegally.
Million instructions per second (MIPS) is an approximate measure of a computer's raw processing power.
Answer:
2. int i; for (i = 0; i <= arr.length; i++) { System.out.println(arr[i]); }
3. for (int i : arr) { System.out.println(i); }
second and third code segments print the same output.
Explanation:
In first code segment, while loop starts printing from arr[0] and it continues till the second last element of the the array as in statement of while loop i<arr.length. Which print till arr[length - 1].
In second code, for loop starts from 0 and ends at the last element of the array. which prints from arr[0] to arr[length].
In third code segment, it also print from arr[0] to arr[length]. In this case for (int i : arr) means start from first value of array and continues till last element of the array.