Answer:
To check if the year comes under each 100th year, lets check if the remainder when dividing with 100 is 0 or not.
Similarly check for 400th year and multiple 0f 4. The following C program describes the function.
#include<stdio.h>
#include<stdbool.h>
bool is_leap_year(int year);
void main()
{
int y;
bool b;
printf("Enter the year in yyyy format: e.g. 1999 \n");
scanf("%d", &y); // taking the input year in yyyy format.
b= is_leap_year(y); //calling the function and returning the output to b
if(b==true)
{
printf("Thae given year is a leap year \n");
}
else
{
printf("The given year is not a leap year \n");
}
}
bool is_leap_year(int year)
{
if(year%100==0) //every 100th year
{
if(year%400==0) //every 400th year
{
return true;
}
else
{
return false;
}
}
if(year%4==0) //is a multiple of 4
{
return true;
}
else
{
return false;
}
}
Explanation:
Output is given as image
Answer:
The answer is "second, third, and fourth choices"
Explanation:
In the question the numbering of the choices were missing if we numbering the choices so, the first choice will be one first number and second choice is in second and so on, and its explanation can be defined as follows:
The network safety key is a type of network login credentials or passwords which is used for provides authorization as well as access the network or device upon which client requests to communicate throughout the form of physical, digital, or biometrical information login.
- It doesn't ensure the extra key.
- It helps ensure there were no additional duplicates.
- It keeps strict access codes as well as keys command.
- It makes sure, that its key could not be linked to able to operate the lock.
Either your screen isnt plugged in and synced properly or you have a problem in the automatic boot system
Answer: (D) Distributed denial- of- service (DDoS)
Explanation:
The distributed denial of service attack is one of the type of attack that occur when the multiple system are basically flooded with the resources and the bandwidth.
- Botnet is one of the example of DDoS as it caused the DOS (denial of service) for the users.
- This type of attack is more substantial as compared to the DoS attack as they use the multiple system for attack the single target simultaneously.
Therefore, Option (D) is correct.
Explanation:
how much the project will cost