Sasken Papers: Sample Questions 13 - 14 of 35

Examrace Placement Series prepares you for the toughest placement exams to top companies.

Question number: 13

» Aptitude

Short Answer Question▾

Write in Short

What is recursive function? Give its advantages.


  • Recursion is a programming technique that allows the programmer to express operations in terms of themselves. In C, this takes the form of a function that calls itself. A useful way to think of recursive functions is to imagine them as a process being performed where one of the instructions is to “repeat the process”. In programming language, if a program allows you to call a function, then it is called a recursive call of the function.
  • Recursive functions are very useful to solve many mathematical problems, such as calculating the factorial of a number, generating Fibonacci series, etc.

Question number: 14

» Aptitude



Which of the following layer in the OSI model does error handling?


Choice (4) Response


Network layer


Data link layer


Transport layer


Question does not provide sufficient data or is vague




  • The data link layer provides error-free transfer of data frames from one node to another over the physical layer, allowing layers above it to assume virtually error-free transmission over the link. The tasks of Data link layer are,
  • Link establishment and termination: establishes and terminates the logical link between two nodes.

  • Frame traffic control: tells the transmitting node to “back-off” when no frame buffers are available.

  • Frame sequencing: transmits/receives frames sequentially.

  • Frame acknowledgment: provides/expects frame acknowledgments. Detects and recovers from errors that occur in the physical layer by retransmitting non-acknowledged frames and handling duplicate frame receipt.

  • Frame delimiting: creates and recognizes frame boundaries.

  • Frame error checking: checks received frames for integrity.

  • Media access management: determines when the node “has the right” to use the physical medium.