Answer:
The correct option of the following question is a.).
Explanation:
The PC1 will send the Ethernet frames to the Router1, with the PC1's MAC address as source address and the Router1's MAC address as destination address. The Router1 will removes an encapsulated the IP packets from that Ethernet frames, discarding frames header and the trailer. The Router1 will be forward IP packets by the first an encapsulating it's inside the HDLC frames, but the Router1 will not an encapsulate Ethernet frames in the HDLC frames, but rather than an IP packets. The Router2 will be deencapsulate the IP packets from HDLC frames and forward onto Ethernet Local Area Network and adding the new Ethernet headers and the trailer, but this is the header will be different. It will the list Router2's MAC address as source address and the PC2's MAC address as destination address.
Answer:
13,33 MIN.
Explanation:
1. Time with Older Computer (OC) = 2 time with New Computer (NC)
2. OC+ NC = 10 MIN.
replacing 1. in 2. OC + OC/2 = 10 min.
1.5 OC =10min
OC=6.66 MIN
NC = 3,33 MIN.
If we replace NC with OC , 3,33 min will take 2 times (6,66 min)
Total Time = 6,66 + 6,66= 13,33 min
Answer:
1. G=D+(A+C^2)*E/(D+B)^3
cobegin:
p1: (D+B)
p2: p1^3
p3: C^2
p4: A+ p3
p5: E/p2
p6: p4 * p5
p7: D + p6
:G
coend
2. Now The value A=2, B=4, C=5, D=6, and E=8
p1: 6+4 =10
p2: p1 ^3= 10^3= 1000
p3: c^2= 5^2 =25
p4: A + p3= 2 +25 =27
p5: 8/1000
p6: 27 *8/1000
p7: D+ P6= 6+ 216/1000
= 6216/1000
=6.216
Explanation:
The above, first bracket with power is processed, and then power inside and outside bracket. And rest is according to BODMAS, and one process is solved at a time.
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