Answer:
When we know how many times a loop is going to occur when we make use of them for a loop. Like if we want to print a number 100 times, then we make use of them for a loop. However, if we only know the condition then we make use of the while loop.
Like while( sum<=100):
sum +=i
i=i+1
And this will add till sum <=100.
Hence, while requires us to know the number of times the loop will take place. And while requires a condition. On many occasions, both can be used. However, it must be understood that we increment the loop number at the end in case of the while loop and the beginning in case of a loop.
Explanation:
Please check the answer section.
Answer:
4
Explanation:
Trees are data structures fundamental in computer science, widely used in these fields because they are well adapted to the natural representation of homogeneous organized information, and great convenience and speed of manipulation.
A tree is a data structure (often dynamic) representing a set of hierarchically organized (non-linear) values. Each value is stored in a node. The nodes are joined to each other by the edges which represent parent/child relationships.
We can define a binary search tree as a root binary tree with the presence of its internal nodes which usually stores a key that is higher than all the keys remaining in the sub-tree of the left node and lower than those in the right sub-tree.
From the given information; if we want to add all +ve integers from 1 → 31 to the tree and we intend that the first number that to be added should be 16, then the smallest possible height of the tree will be 4.
The right sub-tree computation for the tree diagram can be seen in the image below.
<u>Evidence </u>consists of documents, verbal statements, and material objects that are admissible in a court of law.
What is an evidence?
- In law, rules of evidence govern the types of evidence that are admissible in a legal proceeding.
- Types of legal evidence include testimony, documentary evidence, and physical evidence.
- The parts of a legal case that are not in controversy are known, in general, as the "facts of the case."
- Beyond any facts that are undisputed, a judge or jury is usually tasked with being a trier of fact for the other issues of a case.
- Evidence and rules are used to decide questions of fact that are disputed, some of which may be determined by the legal burden of proof relevant to the case.
- Evidence in certain cases (e.g. capital crimes) must be more compelling than in other situations (e.g. minor civil disputes), which drastically affects the quality and quantity of evidence necessary to decide a case.
- Evidence is critical to convincing management, juries, judges, or other authorities that some kind of violation has occurred.
To know more about evidence, refer:
brainly.com/question/20840904
#SPJ4
Near-perfect eyesight and detail perception would be good traits to have.