Samaya AP MCQ Corrections - samayass/flask_portfolio GitHub Wiki

Question My Answer Explanation
D The counter is increased by one each time the piece is moved and the piece is only moved 4 times.
A In the iteration of the loop the robot only moves if a space to the left of it is open. There is no open space on the left at the initial position so there is an infinite loop and the robot never moves.
A The internet uses non-proprietary communication protocols.
A The procedure will run, there will be no error, and it will return a value.
A Data is transmitted when it is broken into packets and it sent along different paths not the same.
D Adding one zero will increase the number 2 times. So adding 3 0s would be 2^3 = 8 times.
A This expression will always be false because the price range cannot be equal to lo and med.
C There a problems which are not able to have an algorithm which can always give a specific yes or no answer and there is no algorithm solution that can solve all the different possibilities of a problem.
A The code segment in C gives the value of the last element to the temp variable and then it removes the last element and puts temp as the first.