3i Infotech Papers: Sample Questions 445 - 447 of 1245

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

Question number: 445

» Languages » C & C Plus Plus

Short Answer Question▾

Write in Short

Is this code legal?

int * ptr;

ptr = (int *) 0 × 400;

Explanation

  • In these code

Table showing the code

Table showing the code

int * ptr;

  • Define the integer pointer ptr.

ptr = (int *) 0 × 400;

  • The pointer ptr will point at the integer in the memory location 0 × 400

Question number: 446

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

What is the output of the following program?

  1. main ()
  2. {
  3.     int i = 5j = 10;
  4.     i = i& = j&&10;
  5.     printf ( “%d %d”, ij);
  6. }

Explanation

In the program

Table shows the program

Table shows the program

int i = 5, j = 10;

  • Given the integer variable i = 5 and j = 10

i = i& = j&&10;

  • The expression can be written as i= (i&= (j&&10) );

  • The inner expression (j&&10) evaluates to 1 because j==10 and i is 5. i = 5&1 is 1.

printf (“%d % d”, i, j);

  • Print the value of i and j- 1 and 10.

Question number: 447

» Basic CS » Networks

Short Answer Question▾

Write in Short

What is Brouter?

Explanation

Understanding of brouter

Understanding of Brouter

Understanding of brouter

  • A network device that works as a bridge and a router.

  • The brouter routes packets for known protocols and simply forwards all other packets as a bridge.

  • Bridge connects one local area network to another local area network using the same protocol.

  • Term describes a bridge combined with router device- brouters are rarely used.

  • Functionality is often implemented using the router’s software interface.