Sasken Placement: Sample Questions 1 - 3 of 35

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 1

Write in Short Short Answer▾

What does transport layer do?

Edit

Explanation

In the Open Systems Interconnection (OSI) communications model, the Transport layer ensures the reliable arrival of messages and provides error checking mechanisms and data flow controls. The Transport layer provides services for both “connection-mode” transmissions and for “connectionless-mode” transmissions. For connection-mode transmissions, a transmission may be sent or arrive in the form of packets that need to be reconstructed into a complete message at the other end.

Question 2

Write in Short Short Answer▾

What is the output of the Program?

  1. main ()
  2. {
  3. int a[10];
  4. a[3] =10;
  5. printf ( “%d” ,⚹(a +3) );
  6. }
Edit

Explanation

Here, in the main () function an integer array is defined, i.e.. a is an integer array of 10 elements. The 3rd element of this array is initialized with 10. In the printf statement we want to print the value at a + 3. Here, a without any argument means a [0] , i.e.. we want to print the value of a [0 + 3] , i.e.. a [3] . As a [3] is initialized with 10 the output of the program will be 10.

Question 3

Write in Short Short Answer▾

A person has certain no. of cows & birds, they have 172 eyes and 344 legs. How many cows and birds does he have?

Edit

Explanation

Let person is having x number of cows and y number of birds.

Total number of eyes is 172.

Total number of legs is 344.

Equating both the equations,

Substituting the value of x in any of the equation,

Person is having total 81 cows and 0 birds.