Answer:
<u> A. It uses binary numbers in its algorithm</u>
Explanation:
A Binary search is a type of algorithm designed to look through <em>only </em>a sorted array of data for a particular item.
It is<em> more efficient (faster) </em>than sequential search since the algorithm doesn't have to look up the entire array of data, but simply repeatedly divide in half the section of the array that could contain the searched item.
Answer:
Following are the statement in C++ language :
#include <iomanip> // header file
using namespace std; // namespace
int main() // main method
{
int x1,x2,x3,x4,x5; // variable declaration
cout<<" Enter the 5 sucessive integer:";
cin>>x1>>x2>>x3>>x4>> x5; // taking 5 input from user
cout<<right;
// prints each of its own line and form a right-justified
cout<<setw(5)<< x1 << "\n" << setw(5) << x2 << "\n" <<setw(5) << x3 << "\n" << setw(5) << x4 << "\n" << setw(5) << x5 << "\n";
return(0);
}
Output:
Enter the 5 sucessive integer: 45
23
445
6
8
45
23
445
6
8
Explanation:
Description of program is given below
- Declared a 5 integer value x1,x2,x3,x4,x5 respectively.
- Read the 5 integer value from user by using cin funtion.
- Finally Print these 5 value in its own line and form a right-justified by using setw() function on it
Answer:
Explanation:
it is important to be succinct, and help the reader to find the information that they need quickly, and without wading through reams of superfluous information. formatting of table plays an important role in presenting the data clearly and scuccinctly.
Answer:
D. method, class, generalization/specialization
Explanation:
The Cohesion is said to be the level to what an element of a module is related to others. Generally, the cohesion can be understood as an internal adhesive that holds together the modules. If the software is good then it is going to have high cohesion. Method and class are type of cohesion, as they hold the modules together. And generalization/specialization also is a general type of cohesion as generalization tracks the common features among the class, and binds them into one superclass. However, the specialization means creating subclasses out of the classes, and which is the meaning of the specialization. In an ideal situation, there should be high cohesion or single responsibility. However, in the case of inheritance, there can be multiple responsibilities. And hence composition like a generalization, specialization, association, aggregation are used to make use of the composition for reuse rather than inheritance. Have you seen language supporting multiple inheritances. You will never see it though there is some way. And its never allowed to ensure high cohesion. And hence three general types of cohesion are method, class and generalization/specialization. And this is option D.