3i Infotech Papers: Sample Questions 715 - 717 of 1245

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

Question number: 715

» Basic CS » Operating System

Essay Question▾

Describe in Detail

What is Executive in Windows NT?

Explanation

  • Executive is a collection of modules within the Microsoft Windows NT operating system run in kernel mode providing process, memory and object management, thread scheduling, interrupt processing, security.

Three component of window NT executive:

  • Executive services

    • Managers and device drivers

  • Microkernel

    • OS services, thread scheduling and interrupt handling

  • HAL

    • Hardware abstraction layer isolates hardware differences from NT allowing it to work on different platforms.

Three component of window NT executive

Three Component of Window NT Executive

Three component of window NT executive

Components under Window NT executive:

  • I/O Manager

  • Object manager

  • Security reference monitor

  • Process manager

  • Local procedure call facility

  • Remote procedure call facility

  • Virtual memory manager

  • Win 32k Window manager and GDI

  • Hardware device drivers

Question number: 716

» Languages » C & C Plus Plus

Short Answer Question▾

Write in Short

  1. void main ()
  2. {
  3.     int i = 7;
  4.     printf ( “%d”, i + + * i + + );
  5. }

Explanation

  • In the program

Table showing the program

Table showing the program

int i = 7;

  • Define the integer variable i = 7

printf (“%d”, i ++ * i ++);

  • Solve the equation to print the value

  • =i++* i++

  • Here (i++) makes the second value 7 + 1=8

  • So 7 * 8=56

Question number: 717

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

  1. main ()
  2. {
  3.     show ();
  4. }
  5. void show ()
  6. {
  7.     printf ( “I'm the greatest” );
  8. }

Explanation

  • Compiler error: Type mismatch in redeclaration of show.
  • In a program

    Table showing the program

    Table showing the program

    1. main ()
    2. {
    3.     show ();
    4. }

    When the compiler sees the function show it doesn’t know anything about it.

    So the default return type (i. e. int) is assumed.

    1. void show ()
    2. {
    3.     printf ( “Im the greatest” );
    4. }

    However, when compiler sees the actual definition of show mismatch occurs.

    Since it is declared as void.

    Hence the error.

  • This type of mistakes solutions are as bellows:

    1. Declare void show () in main ().

    2. Define show () before main ().

    3. Declare extern void show () before the use of show ().