The answer to this blanks are black and visible
Answer:
It's a compact way of doing an if-else statement.
General Format is
<<em>condition</em>> ? <if condition is true> : <else>;
Example:
I could rewrite:
if(a==1) temp = 1;
else temp = 999;
as
temp = (a==1) ? 1 : 999;
Answer:
Explanation:
We start from the bottom-most and rightmost internal node of min Heap and then heapify all internal modes in the bottom-up way to build the Max heap.
To build a heap, the following algorithm is implemented for any input array.
BUILD-HEAP(A)
heapsize := size(A)
for i := floor(heapsize/2) downto 1
do HEAPIFY(A, i)
end for
Convert the given array of elements into an almost complete binary tree.
Ensure that the tree is a max heap.
Check that every non-leaf node contains a greater or equal value element than its child nodes.
If there exists any node that does not satisfy the ordering property of max heap, swap the elements.
Start checking from a non-leaf node with the highest index (bottom to top and right to left).
Read and write. Think of the term "literacy rate" it refers to how much of a population can read and write.
Answer:
4000k-ohm to 10,000k-ohm
Explanation:
As we know that time constant for an RC circuit is t=RC
Putting the values of t we can get the range of varaiable resistor as;
t=RC
Putting t=2 we get the first value of the range for the variable resistor
2=R*0.500*10^-6
R=2/(0.500*10^-6)
R=4*10^6
R=4000k-ohm
Now putting t=5 we get the final value for the range of variable resistor
t=RC
5=R*0.500*10^-6
R=5/(0.500*10^-6)
R=10*10^6
R=10,000k-ohm
So variable resistance must be made to vary in the range from 4000k-ohm to 10,000k-ohm