TCS Papers: Sample Questions 474 - 475 of 502

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

Question number: 474

» Basic CS » Networks

Essay Question▾

Describe in Detail

What is pipelining?

Explanation

  • In networking a task begun before the previous task has ended is known as pipelining.

  • Pipelining in a processor allows storing and executing many instructions in an orderly way. Here multiple instructions are overlapped during execution.

  • Pipeline is divided into stages connected with one another. Like a pipe instructions enter from one end and exit from another end. Each “stage” of pipeline consists of an input register followed by a combinational circuit. The register holds data and combinational circuit performs operations on it. The output of combinational circuit is applied to the input register of the next segment.

  • Pipeline system like the modern day assembly line setup in factories increases the overall instruction throughput.

Image shows the pipelining

Image Shows the Pipelining

Given the image is define the machine cycle with pipelining

Question number: 475

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

What is output redirection?

Explanation

  • It is the process of transferring data to an alternative output source other than the display screen.

  • Output redirection allows a program to have its output saved to a file.

  • For example, for program named COMPUTE, typing this on the command line “COMPUTE > DATA” will accept input from the user, perform certain computations, and have the output redirected to a file named DATA, instead of screen.

Image of the Redirection

Image of the Redirection

Given the image is defining the redirecting input from file.