3i Infotech Papers: Sample Questions 484 - 486 of 1245

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

Question number: 484

» Languages » C & C Plus Plus

Short Answer Question▾

Write in Short

Name the operators that cannot be overloaded.


  • Scope Resolution operator (: : )

  • Pointer to member operator (. *)

  • Member Access or Dot operator (. )

  • Ternary or Conditional operator (? : )

  • Object size operator (sizeof)

  • Object type operator (typeid)

Question number: 485

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

  1. main ()
  2. {
  3.     extern int i;
  4.     i = 20;
  5.     printf ( “%d” sizeof (i) );
  6. }


  • In a program,

    Table showing the program

    Table showing the program

    extern int i;

    Extern declaration specifies that the variable i is defined somewhere else.

    i = 20;

    printf (“%d” sizeof (i) );

    The compiler passes the external variable to be resolved by the linker.

    So compiler doesn’t find an error.

  • During linking the linker searches for the definition of i.

  • Since it is not found the linker flags an error

Question number: 486

» Operating System » Unix

Short Answer Question▾

Write in Short

What are the requirements for a swapper to work?


  • The scheduling priority of swapper is highest.

  • The requirement for the swapper is to work for the process that is ready to run and resident for at least 2 seconds before swapping out that is process resided in the swap device for 2 second.

  • The swapper searches for sleeping process- searches for the processes that are ready to run for swapping, if the sleeping process is not found.

  • If requirement is not satisfied the swapper will go into the wait state.

  • It will be awaken once in a second by the kernel of the OS.