TCS Placement: Sample Questions 91 - 92 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 91

Edit

Describe in Detail

Essay▾

What does the format % 10.2 mean when included in a printf statement?

Explanation

  • This format is used for two things:
    • Set the number of spaces allotted for the output number
    • Set the number of decimal places
  • The number before the decimal point is for the allotted space, in this case it would allot 10 spaces for the output number.
  • If the number of space occupied by the output number is less than 10, addition space characters will be inserted before the actual output number.
  • The number after the decimal point sets the number of decimal places, in this case, its 2 decimal spaces.
Given the Image is Define the Format % 10.2 Mean when Included in a Printf Statement

Question 92

Edit

Describe in Detail

Essay▾

What are the different link types used to build a computer network?

Explanation

  1. Cables

    These connect nodes in the same room, building, or even the same site (e. g. campus) using a piece of cable that physically strings between the nodes.

  2. Leased Lines

    Connects two nodes across large distances- on opposite sides of the country, or even across continents.

  3. Last-Mile Links

    “Last-mile” links are less expensive than leased lines- only span the last mile from network service provider.

  4. Wireless Links

    For example the mobile phone system.

Developed by: