Answer:
following are the OSI Layers
1.physical layer
2.datalink layer
3.network layer
4.transport layer
5.session layer
6.presentation layer
7.application layer
Explanation:
physical layer is used to transmit media,signal and binary information
datalink layer is used for physical addressing MAC and LLC
network layer is used for path determination and ip
transport layer is for end to end communication and reliability
session layer is for interhost communication
presentation layer is for data representation and encryption
application layer is network process to application
Answer:
FALSE
Explanation:
The exit function is used to terminate or halt the process.
Syntax-
void exit(int status)
Exit function (exit()) can be used in any function not only main() and it will terminate your whole process.
<u></u>
<u>Example-</u> C Program
#include<stdio.h>
#include <stdlib.h>
// function declaration
float exitexample ( float x );
// Driver program
int main( )
{
float a, b ;
printf ( "\nEnter some number for finding square \n");
scanf ( "%f", &a ) ;
// function call
b = exitexample ( a ) ;
printf ( "\nSquare of the given number %f is %f",a,b );
/*This will not printed as exit function is in exitexample() function*/
}
float exitexample ( float x ) // function definition
{
exit(0); //exit function
float p ;
p = x * x ;
return ( p ) ;
}
Answer:
The typedef struct is as follows:
typedef struct jumper_t {
char name[16];
double tries[N_TRIES];
double best_jump;
double deviation;
} jumper_t;
The declaration of jlist is:
jumper_t jlist[10];
Explanation:
This defines the typedef structure
typedef struct jumper_t {
The following declares the variables as stated in the question
<em> char name[16];
</em>
<em> double tries[N_TRIES];
</em>
<em> double best_jump;
</em>
<em> double deviation;
</em>
}
This ends the typedef definition
jumper_t;
(b) The declaration of array jlist is:
jumper_t jlist[10];
Answer:
010100000001101000101
Explanation:
When an error occurs in data bits, the SEC code is used to determine where the error took place. 5 check-bits are needed to generate SEC code for 16-bits data word. The check bits are:
C16=0, C8=0, C4=0,C2=0,C1=1
Therefore the SEC code is 010100000001101000101
Answer:
Too much sitting-affects the back and makes our muscles tight
Carpal tunnel and eye strain-moving your hand from your keyboard to a mouse and typing are all repetitive and can cause injuries
Short attention span and too much multitasking-As you use a computer and the Internet and get immediate answers to your questions and requests, you become accustomed to getting that quick dopamine fix. You can become easily frustrated when something doesn't work or is not answered in a timely matter.