TCS Placement: Sample Questions 239 - 241 of 502

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 239

Edit

Describe in Detail

Essay▾

What is managed extensibility framework?

Explanation

  • Managed extensibility framework (MEF) is a new library introduced as a part of . NET 4.0 and Silverlight 4.
  • Provides greater reuse of applications and components.
  • Allows host application to consume external extensions without any configuration requirement, allowing lightweight, extensible applications.
  • Allows application developers to discover and use extensions with no configuration and allows code encapsulation to avoid fragile hard dependencies.
  • MEF allows extensions to be reused across applications as well.
Given the Image is Define the Managed Extensibility Framework (MEF) Demo

Question 240

Edit

Write in Short

Short Answer▾

Advantages of a macro over a function?

Explanation

  • Program is slightly faster
  • No overhead of a function call and function return.
  • Macro parameters are generic
  • Macro parameters do not have types, so can be used with int, float, double etc. arguments
Given the Image is Define the Advantages of a Macro over a Function

Question 241

Edit

Write in Short

Short Answer▾

If QKFBTF is the code for PLEASE then for which word code is HBJO?

Explanation

  • Here, QKFBTF is the code word for PLEASE
  • For Q, it is shifted towards left by one position, i.e.. P
  • For K, it shifted towards right by one position, i.e.. L
  • For F, it is shifted towards left by one position, i.e.. E
  • For B, it is shifted towards left by one position, i.e.. A
  • For T, it is shifted towards left by one position, i.e.. S
  • For F, it is shifted towards left by one position, i.e.. E
  • We have to follow the same pattern for code word HBJO
  • Here, shifting the first letter H towards left, it will be G
  • Shifting the second letter B towards right, it will be A
  • Shifting the third letter J towards left, it will be I
  • Shifting the fourth letter O towards left, it will be N
  • So, HBJO is the code word for GAIN

Developed by: