Basic CS [TCS Placement]: Sample Questions 95 - 96 of 196

Get unlimited access to the best preparation resource for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 95

Edit

Describe in Detail

Essay▾

Explain Belady՚s Anomaly

Explanation

  • Belady՚s anomaly is also called FIFO anomaly.
  • Usually, on increasing the number of frames allocated to a process virtual memory, the process execution is faster, because fewer page faults occur.
  • Sometimes, the reverse happens, i.e.. , the execution time increases even when more frames are allocated to the process, this is Belady՚s Anomaly.
  • This is true for certain page reference patterns.
  • The Belady՚s anomaly occurs in case of the FIFO page replacement policy in the OS.
  • When this FIFO is used and the number of page frames are increased in the frames that are required by the program varies in a large range (due to large no of pages) because of this the number of page faults increases with the number of frames.
  • Number of pages faults for four frames is more than the number of page faults for three frames.
  • This most unexpected result is known as Belady՚s anomaly.
  • For some page replacement algorithm, page fault may increase as the number of allocated frames increases.
Given the Image is Define the Belady՚s Anomaly with Example

Question 96

Basic CS
Edit

Write in Short

Short Answer▾

Which is the root namespace for fundamental types in . NET Framework?

Explanation

  • System. Object is the root namespace for fundamental types in . NET Framework.
  • System. Object is the ultimate base class of all classes in the . NET Framework- the root of type hierarchy.
  • Every type inherits from System. Object, directly or indirectly, and therefore has access to its members.
Given the Image is Define the System. Object Root Namespace

Developed by: