3i Infotech Papers: Sample Questions 584 - 586 of 1245

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

Question number: 584

» Basic CS » Networks

Short Answer Question▾

Write in Short

What is autonomous system?

Explanation

  • An autonomous system is the unit of router policy, either a single network or a group of network controlled by a common network administrator on behalf of a single administrative entity.

  • Also referred as routing domain.

  • Assigned a globally unique number, sometimes called an Autonomous System Number.

  • Shares routing information with other autonomous systems using the Border Gateway Protocol.

  • Autonomous system can have many different networks operated under a single entity for easy management.

  • A single identifier is allocated to each autonomous system for BGP routing.

Question number: 585

» Database » MySQL

Short Answer Question▾

Write in Short

What does the following query do?

SELECT SAL + NVL (COMM, 0) FROM EMP.

Explanation

  • This displays the total salary of all employees.

  • Null values in the commission column [NVL (COMM, 0) ] will replaced by 0 and added to salary.

Question number: 586

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

  1. #define clrscr () 100
  2. main ()
  3. {
  4.     clrscr ();
  5.     printf ( “%d ” clrscr () );
  6. }

Explanation

  • In a program preprocessor executes as a separate pass before the execution of the compiler.

Table shows the program

Table shows the program

#define clrscr () 100

Given the clrscr () value is 100.

main ()

{

clrscr ();

printf (“%d ” clrscr () );

}

So, textual replacement of clrscr () to 100 occurs.

The input program to compiler look like this:

Main ()

{

100;

Printf (“%d”, 100);

}

  • So, the answer is 100

  • NOTE (100; is an executable statement but with no action. So doesn’t give any problem. )