i) Class is a blueprint which is used to create multiple objects with similar characteristics and behaviour.It is known as a class factory.
Object is a unique entity containing certain characteristics and behavior.It is known as an instance of a class.
An object includes the characteristics and behavior of a class. Hence,it is referred to as an instance of a class.
Linear search-works on sorted as well as unsorted arrays,is slower as the several passes are made through the whole array.
Binary search-works only on sorted arrays,the array is divided into two halves at each iteration in the outer loop and either the upper half,or the lower half of the array is searched.
harithareddy 2 years ago