TCS Placement: Sample Questions 296 - 297 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 296

Edit

Describe in Detail

Essay▾

What is the data structures used to perform recursion?

Explanation

  • The data structure used for recursion is stack.
  • it՚s LOFO (Last in First Out) property that helps the stack “unfold” on return- This helps it know the data to be returned when function has to return.
  • System stack is used for storing the return addresses of the function calls.
  • Recursion makes use of system stack for storing the return addresses of the function calls.
  • Every recursive function has its equivalent iterative (non-recursive) function- such equivalent iterative procedures need to use explicit stack.
Given the Image is Define the Stack Data Structure

Question 297

Edit

Describe in Detail

Essay▾

What is attenuation?

Explanation

  • The degeneration of a signal with distance on a network cable is called attenuation.
  • As signal travels it losses strength called attenuation. Since received signal strength must be enough to be detected and sufficiently higher than noise to be received without error, communication network must include amplifiers or repeaters at specific intervals to boost the signal strength.
  • The distance a signal can travel before is needs amplification depends on the medium.
  • Attenuation increases as a function of frequency, Equalizers equalize attenuation across a band of frequency.
  • Attenuation occurs with both digital and analog signals.
  • Extent of attenuation is expressed in decibels (dBs) .
  • For guided media, attenuation is generally logarithmic.
  • For unguided media, attenuation is more complex.
Given the Image is Define the Attenuation

Developed by: