TCS Papers: Sample Questions 364 - 365 of 502

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

Question number: 364

» Basic CS » Networks

Essay Question▾

Describe in Detail

Define Network?


  • A network is a set of devices connected by physical media links.

  • It is a recursive connection of two or more nodes by a physical link or two or more networks connected by one or more nodes.

  • A network contains computers, servers, mainframes, network devices, peripherals, or other devices connected to one another to allow the sharing of data.

  • An excellent example of a network is the Internet, which connects millions of devices across the world.

  • Following image shows a home network with multiple computers and other devices all connected to each other and the Internet.

 Image of the home network

Image of the Home Network

Given the image is define the home network

Question number: 365

» Basic CS » Data Structures

Essay Question▾

Describe in Detail

What is the data structures used to perform recursion?


  • 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.

The stack data structure

The Stack Data Structure

Given the image is define the stack data structure