Answer:
The correct answer is:
C. ndx = 0;
while (ndx < 3) {
ar[ndx] = 0;
ndx++;
}
Explanation:
The declaration given is:
int ar[3];
This means the array consists of three locations and is named as ar.
We know that the indexes are used to address the locations of an array and the index starts from 0 and goes upto to 1 less than the size of the array which means the indexes of array of 3 elements will start from 0 and end at 2.
Now in the given options we are using ndx variable to run the while loop.
So the code to assign zero to all elements of array will be
ndx = 0;
while(ndx<3)
{
ar[ndx] = 0;
ndx++;
}
Hence, the correct answer is:
C. ndx = 0;
while (ndx < 3) {
ar[ndx] = 0;
ndx++;
}
Answer:
Phishing
Explanation:
Phishing = Link to a site, usually a fake replica of a legitimate site but with added implements that can be used to spy on you (how people become victims of identity theft
Answer:
(a)Applications Time Stamp Events
(b)S=0.5(W-
)+
, where
≤W≤
+8.
Explanation:
Some applications assume that clocks always advance, so they could timestamp events under this assumption.
In our case we have the wrong timed clock, say W and the hardware clock H which is supposed to advance at a perfect rate.
We proceed to construct a software clock such that after 8 seconds we can replace the wrong timed clock with the software clock in good conditions.
Let us denote the software clock with S.
Then, S=c(W-
)+
where:
=The current Time(10:27:54) and;
c is to be found.
We already know that S=
+4 when W=
+8,
So:
S=c(W-
)+
+4=c(
+8-
)+
4=8c
c=0.5
We obtain the formula
S=0.5(W-
)+
, where
≤W≤
+8.
What game ? I’m not sure what ur trying to ask