3i Infotech Placement: Sample Questions 337 - 338 of 1245

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 337

Describe in Detail Essay▾

Difference between malloc () & calloc () memory allocation.

Edit

Explanation

Difference between Malloc () & Calloc () Memory
malloc ()calloc ()
  • The name malloc stands for memory allocation.
  • The name calloc stands for contiguous allocation.
  • malloc () takes one argument that is, number of bytes.
  • calloc () take two arguments those are: number of blocks and size of each block.
  • syntax of malloc () :

    void ⚹ malloc (size_t n) ;

  • syntax of calloc () :
void ⚹ calloc (size_t n, size_t size) ;
  • Byte of memory is allocated
  • Block of memory is allocated
  • Memory initialization is not performed
  • Memory is initialized
  • Return a pointer with enough storage with s bytes.
  • Returns a pointer with enough storage each with s bytes.

Question 338

Describe in Detail Essay▾

What is traffic shaping?

Edit

Explanation

Define Traffic Shapping
  • Also known as packet shaping.
  • The practice of regulating network data transfer to assure a certain level of performance, quality of service or return on investment.
  • Attempts to normalize traffic peaks and bursts to prioritize certain flows over others.
  • Tries to get around physical limitation on amount of data which can be buffered by prioritizing traffic.
  • Prioritizes traffic whose potential loss is less disadvantageous- by user ID, IP, host name, or application
  • Prioritization of business over non-critical traffic and the certain of tiered service level.
  • Applied both at the network level and the application level.