Question: If the time cost for each for loop below ( true and false conditions take the same time ) takes 1 us ( microsecond =

If the time cost for each for loop below (true and false conditions take the same time) takes 1us (microsecond =0.000001 seconds), for following code how many microseconds (us) will it take to execute if n =10?
for( int i =2; i < n; ++n)// for loop line costs 1us each time it loops once
x = algorithm_00(x)// algorithm00 cost 100us each time it is called for x
}
What is the nearest value of the time it takes to run this loop code?
Question 2 options:
111us
80us
809us
1011us

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!