TCS Placement: Sample Questions 380 - 381 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 380

Edit

Describe in Detail

Essay▾

What are the different storage classes in c?

Explanation

  • C has four types of storage: automatic, static , external and register
  • Variables having block scope and without static specifier have automatic storage allocation.
  • Variables with block scope, and with static specifier have static scope.
  • Global variables (i.e.. , file scope) with or without the static specifier also have static scope.
  • Memory obtained from calls to malloc () , alloc () or realloc () belongs to allocated storage class.
Given the Image is Define the Different Storage Classes in C

Question 381

Edit

Describe in Detail

Essay▾

What are the responsibilities of Session Layer?

Explanation

The Session layer is network dialog controller- establishes, maintains, and synchronizes interaction between the communicating systems.

  • Dialog control

    Allows two systems to start communication with each other in half-duplex or full duplex.

  • Synchronization
    • Allows a process to add checkpoints considered the synchronization points into stream of data.
    • Example: If a system is sending a file of 800 pages, adding checkpoints after every 50 pages is recommended. This ensures that 50-page unit is successfully received and acknowledged. This is beneficial at the time of crash as if a crash happens at page number 110; there is no need to retransmit pages 1 to100.

Developed by: