TCS Papers: Sample Questions 493 - 495 of 502

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

Question number: 493

» Languages » C & C Plus Plus

MCQ▾

Question

Which of the following cannot be friend?

Choices

Choice (4) Response

a.

Class

b.

Function

c.

Object

d.

Operator function

Answer

c.

Explanation

  • An object cannot be friend.

  • An object is an instance of a Class.

  • When a class is defined, no memory is allocated but when it is instantiated (i. e. an object is created) memory is allocated.

  • “Friend” is a compile time construct while “Objects” exist at run time.

  • A class is defined in C++ using keyword class followed by the name of class.

  • When a class is defined, only the specification for the object is defined; no memory or storage is allocated. To use the data and access functions defined in the class objects have to be created.

  • Syntax: ClassName ObjectName;

Class and object

Class and Object

Given the image is define the class and object example

Question number: 494

» Basic CS » Networks

Essay Question▾

Describe in Detail

What is Redundancy?

Explanation

  • Redundancy includes extra information for detecting or correcting errors.

  • A shorter group of bits is appended to the end of each unit

  • Extra redundant bits are discarded as soon as the accuracy of the transmission has been determined.

 Image of the redundancy

Image of the Redundancy

Given the image is define the Redundancy

  • Sender adds the redundant bits and the receiver checks the complete bit stream through the checking function.

Question number: 495

» Basic CS » Networks

Essay Question▾

Describe in Detail

What is Proxy ARP?

Explanation

  • Proxy Address Resolution Protocol enables the switch to respond to ARP queries for network addresses by giving it an Ethernet media access control address.

    • Switch captures and routes traffic to the intended destination.

    • Used when hosts are on different physical networks without subnet masking.

    • With proxy enabled, ARP broadcasts do not propagate between hosts on different physical networks- hosts thus do not receive a response to their ARP request if the destination is on a different subnet.

    • Allows hosts to communicate with each other through the switch.

  • Allows a subnet to reach remote subnets without using a routing or a default gateway.

The IP Proxy ARP (proxy Address Resolution Protocol)

The IP Proxy ARP (Proxy Address Resolution Protocol)

Given the image is define the IP Proxy ARP (proxy Address Resolution Protocol)