3i Infotech Papers: Sample Questions 106 - 108 of 1245

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

Question number: 106

» Basic CS » Networks

Short Answer Question▾

Write in Short

What is SAP?

Explanation

  • Service access point or SAP is an identifying label for network used in OSI networking.

  • Allows other computers to communicate with the other layers of network protocol stack.

  • Conceptual location at which one OSI layer can request the services of another OSI layer.

  • At low level, it is a data structure and identifier for a buffer area in system memory.

  • Source Service Access Point or a Destination Service Access Point refers to the boundary between the Data Link Layer and the Network Layer.

Question number: 107

» Languages » C & C Plus Plus

Short Answer Question▾

Write in Short

What is the output of the following program?

  1. main ()
  2. {
  3.     register int a = 2;
  4.     printf ( “Address of a = %d” ,&a);
  5.     printf ( “Value of a = %d”, a);
  6. }

Explanation

In this program

Table shows the program

Table shows the program

register int a = 2;

  • Given the integer variable a = 2

  • And this variable also uses register keyword.

  • Registers are faster than memory access, so the variables which are most frequently used in c program can be put in registers using register keyword. It is only a hint to the compiler and not a gurantee

printf (“Address of a =%d”, &a);

& (address of) operator cannot be applied on register variables.

Question number: 108

» Basic CS » Networks

Essay Question▾

Describe in Detail

What is mail Gateway?

Explanation

Structure using mail getway

Structure Using Mail Getway

Structure using mail getway

  • The mail gateway machine handles connections between networks running different protocols- allowing mail to be sent from one network to another.

  • Example a mail gateway can connect a TCP/IP network to a system network architecture protocol network.

  • Performs a protocol translation between different electronic mail delivery protocols.

  • The gateway system will handle mail with address for which “send mail” cannot find a recipient in domain.

  • If a mail gateway exits- “send mail” uses the gateway to send and receive mail outside domain.