3i Infotech Papers: Sample Questions 276 - 277 of 1245

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

Question number: 276

» Basic CS » Operating System

Essay Question▾

Describe in Detail

What level of security does windows NT meets?

Explanation

  • Level of security.

  • security standard originally required for deployment in government organizations- now commercial organizations demand same level of security.

  • Main requirements for compliance:

    • User identification and authentication:

      • A user proves their identity.

      • For example, providing user-id/password combination.

    • Discretionary access control:

      • Access control for every object within the system- printer, files and process access at various levels of granularity.

    • Auditing Capabilities:

      • System provides the ability to log all user action and object access with enough information for identifying the user who performed the operation.

    • Safe object reuse:

      • System guarantees that any discarded objects cannot be accessed by other entities.

    • System integrity:

      • System must protect resources belonging to one entity, from interfering with another entity.

Question number: 277

» Languages » C & C Plus Plus

Short Answer Question▾

Write in Short

Is the following code legal?

  1. struct a
  2. {
  3.     int x;
  4.     struct a *b;
  5. }

Explanation

In this code

Table shows the program

Table shows the program

struct a

{

int x;

struct a * b;

}

  • *b is a pointer to type struct a and so it is legal

  • The compiler knows, the size of the pointer to a structure even before the size of the structure is determined

  • The pointer to any type is of same size.

  • This type of structures is known as ‘self-referencing’ structure.