Answer:
In Python:
year = int(input("Year: "))
if (year % 4) == 0:
if (year % 100) == 0:
if (year % 400) == 0:
print("Leap year")
else:
print("Not a leap year")
else:
print("Leap year")
else:
print("Not a leap year")
Explanation:
This line prompts user for year
year = int(input("Year: "))
This condition checks if input year is divisible by 4
if (year % 4) == 0:
If yes, this condition checks if input year is divisible by 100
if (year % 100) == 0:
If yes, this condition checks if input year is divisible by 400
if (year % 400) == 0:
If divisible by 4, 100 and 400, then it is a leap year
print("Leap year")
else:
If divisible by 4 and 100 but not 400, then it is not a leap year
print("Not a leap year")
else:
If divisible by 4 but not 100, then it is a leap year
print("Leap year")
else:
If it is not divisible by, then it is not a leap year
print("Not a leap year")
Answer:
D. All of the options listed are correct.
Explanation:
A macro, in excel sheet, is an action or series of action that repeats the keystrokes or mouse actions as many times as one wants. To view macro, shortcut key is to Pres Alt+F8; to delete, one needs to select the macro one wants to delete and press Delete button.
The another way to view macro is to go to the Developer tab, and select the Macro option in Code group. And, then select macro need to delete, and press Delete button.
Another shortcut is to press Alt+F11, and click on Tools tab, click on Macros and then select macro need to be deleted, and press Delete.
So, all the options stated above are correct.
Therefore, option D is correct answer.
B.using too much jargon means you are using words that may be unfamiliar to the audience. <span>is the answer. jargon is</span><span> difficult words that others might not understand.</span>
Packet analyzer is a tool that captures every packet transmitted over a network and analyzes the content. Basically this is used to gather network statistics and troubleshoot network issues.
<u>If statements</u>- This statement is used to check the condition.
if(condition)
{
statement
}
If the condition is true,then statement will run,else not.
<u>Switch statement</u>-This statement is used for long conditions.It is a substitute for if,else conditions
switch(a)
{
case1: statement 1//if a=1
break;
case2: statement 2 //if a=2
break;
.....
default:statement//if a is not equal to any of the cases.
<u>Multiway if</u>-In this statement ,if elseif and else were there.
if(condition1)
{
statement 1
}
elseif(condition2)
{
statement 2
}
..............
else
{
statement n
}
<u>Nested loops</u>-This statements are used when we use if-else conditions in other if,else conditions.
if(condition 1)
{
if(condition 2)
{
if (condition 3)
{
statement 3
}
else
{
statement 4
}
}
]
<u>rand()</u>-This method is used for generating random number.The expression is
number=rand()%50;
It will generate a random number ranges between 0 to 50.
<u>srand()</u>-This method is used to set the starting value for random number series.
srand (time(NULL));
<u>seed()</u>-It is a method for initializing the same random series,it is passed in srand().