Miscellaneous On Data Structures - Study Mode

[#441] Which among the following is an application of the least recently used algorithm?
Correct Answer

(A) Paging for memory management

[#442] What should be the return type of rand() function?
Correct Answer

(A) int

[#443] hat is the correct formula for generating random numbers in the range (lower,upper) using rand()?
Correct Answer

(D) (rand()%(upper-lower+1)) + lower

[#444] What will be the plain text corresponding to cipher text "XKS" if the bifid cipher is used with key as "KEY" and period as 5?
Correct Answer

(B) USA

[#445] What is the LCM according to the given Venn Diagram?
Correct Answer

(C) 180