TCS Papers: Sample Questions 290 - 291 of 502

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

Question number: 290

» Basic CS » Networks

Essay Question▾

Describe in Detail

What is MAU?

Explanation

  • Media Access Unit is also known as an Ethernet transceiver or MSAU (Multistation Access Unit).

  • MAU is a device that interconnects the attachment unit interface port on an attached host computer to the Ethernet network medium (such as unshielded twisted pair or coaxial cable).

  • MAU provides fault tolerance and are commonly either active or passive.

    • Passive MAU is not powered and does not strengthen signal from a device.

    • An active MAU is powered- repeats, and strengthens a signal.

  • The MAU provides services to the physical layer of the Open Systems Interconnection (OSI) reference model- provides electrical connection and a transceiver that maps the digital bits between the computer and the network and detects collisions and retries transmissions.

  • A MAU can be built into the computer workstation or other device or it can be a separate device.

Multistation Access Unit (MAU)

Multistation Access Unit (MAU)

Multistation Access Unit (MAU)

Question number: 291

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array?

Explanation

  • If the index of the array size is exceeded, the program will crash. C does not check for buffer overflow and hence some random memory will be written in the process space causing undefined behaviour

  • Example:

  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int arr[2];
  5.     arr[3]=10;
  6.     printf(“%d”,arr[3]);
  7.     return 0;
  8. }
  • Output:

10