In CSMA/CD the sender senses the medium(eg wire) if the medium is free it starts sending the data if in between any other sender sends data at same time collision occurs and this collision can be detected by all the devices in that network hence the sending device stops sending the data and waits untill … Read more
#include<stdio.h>
#include<conio.h>
void main()
{
int a;
float b;
char c;
double d;
clrscr();
printf("The size of a is %d bytes",sizeof(a));
printf("The size of a is %d bytes",sizeof(b));
printf("The size of a is %d bytes",sizeof(c));
printf("The size of a is %d bytes",sizeof(d));
getch();
}
#include <iostream.h>
#include <conio.h>
class Triangle
{
float b,h;
Triangle()
{
b=0;
h=0;
}
Triangle(float x, float y)
{
b=x;
h=y;
}
float Area()
{
return 0.5*b*h;
}
}
class Circle
{
float r;
Circle()
{
r=0;
}
Circle(float x)
{
r=x;
}
float Area()
{
return 4.3*r*r;
}
}
class Square
{
float a; … Read more
Import java.io.*;
class Check
{
public static void main(String args[])
{
DataInputStream d = new DataInputStream(System.in);
int n=0;
System.out.print("Enter any integer number");
n=Integer.parseInt(d.readLine());
if(n>0)
System.out.println("I am the first"); //number is positive
else
system.out.println("The number is negative");
}
}
By normalization you can avoid certain problems like concurrency,redundancy etc.
We use normalization for efficient databases since it helps in saves memory etc.
Application software and operating system will not work at same time. Operating system supports the application software. Operating system does the jobs which are essential to work the application like loading,compiling etc.
Main is a driver function. Void is a return type of the main function void means not returning any thing.
The program execution starts from the function main this means main is a starting point of your program.
In VB the execution of the program takes when a event associated with the code happens like click event etc.
The third normal form says that a primary key should uniquely identify all other non prime key. There should not exit transparent dependency.
For example take a relation of employee - name,eno,dob,address,dno,dname,mgreno as its attributes.
Here eno is primary key which uniquely identifies name,dob,address,dno and dno which is non prime attribute identifies dname,mgreno.eno identifies dname … Read more
Description of data base is called schema. Description of database includes specifying data type,constraints etc on data to be stored on data base.
The syntax of delay function is delay(int_value);
example delay(200);
Here 200 refers to time in microseconds
ROM is a primary memory works faster then secondary memory
Rom is non volatile(permanent) memory
ROM has a program called boot strap loader which loads operating system from hard disk to main memory.
By sending and receiving control signals all components of computer system interact each other.
The function of RAM is just to store the executable instruction temporarily.