Answer:
Option A is the correct choice answer for the above question.
Explanation:
The programming concept says that every function returns some value. If the return value is not defined by the user then the function returns the garbage value otherwise it returns the defined value by the user.
The return value is defined by the user with the help of the "return" statement and with the help of the following syntax-
return value; // The return statement.
Hence the option A is right because it satisfies the above concept while the other is not because--
- Option B states that it must be longer than one line which is not correct.
- Option C states that it cannot be longer than one line but this line does not make any sense about the returned statement.
- Option D states that it describes the parameter value which is the wrong definition about the returned statement.
Answer:
Metrical task system algorithm is the online algorithm that is used for organizing the online problems like k-server issues, paging issues etc.This task system works in the form of metrics to decrease the complete cost experienced due to processing of the operation and analyzing the competition.
It can be used for the online shopping project for the analyzing the comparison between the performance on basis of online and offline trends and then optimization can take place according to the the results.
Answer:
Top down design
Explanation:
Top-down design is an approach that is used to break down the problem into the smaller subpart so that it can be manageable into more clear form.
C programming is the example of a top-down approach while C++ is the example of the bottom-up approach.
The advantages of the top-down design approach are:
1) easy to manage
2) easy to find the error
3) easy to debug