Miscellaneous On Data Structures - Study Mode

[#481] Consider a reference string: 7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2, 1, 2, 0, 1, 7, 0, 1 of frame size 4. Using FIFO algorithm, determine the number of page faults.
Correct Answer

(C) 10

[#482] What will be the co-ordinates of foot of perpendicular line drawn from the point (-1,3) to the line 3x-4y-16=0?
Correct Answer

(C) (68/25,-49/25)

[#483] What is the purpose of using function srand()?
Correct Answer

(A) to set the seed of rand() function

[#484] Problems that cannot be solved by any algorithm are called?
Correct Answer

(C) undecidable problems

[#485] Least recently used cache has the space complexity of O(n).
Correct Answer

(A) True