Answer:
Alice is correct.
The loop are dependent.
Explanation:
for(i = 1; i <= N; i = (i*2)+17 )
for(k = i+1; k <= i+N; k = k+1) // notice i in i+1 and i+N
printf("B")
This is a nested for-loop.
After the first for-loop opening, there is no block of statement to be executed rather a for-loop is called again. And the second for-loop uses the value of i from the first for-loop. The value of N is both called from outside the loop.
So, the second for-loop depend on the first for loop to get the value of i. For clarity purpose, code indentation or use of curly brace is advised.
Answer:
The correct answer is option 'B': Load is far from fulcrum and the effort is applied near the fulcrum
Explanation:
A lever works on the principle of balancing of torques. The torque about the fulcrum by the load should be equal to the torque by the applied effort. Since we know that the torque is proportional to both the force and the distance it is applied from the distance from the axis of rotation. A lever is used when we need to lift a heavy load by utilizing this effect of the lever arm.
A mechanical disadvantage occurs when we are not able to lift the weight easily due to the fact we apply effort near the fulcrum.
It is important because now a days we all need help from engineers