3i Infotech Papers: Sample Questions 613 - 615 of 1245

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

Question number: 613

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

What is a mixin class?

Explanation

  • A class that provides some but not all of the implementation for a virtual base class is called mixin.

  • Derivation just for redefining the virtual functions in the base classes is called mixin inheritance.

  • Mixin classes typically don’t share common bases.

Image of the mixin class

Image of the Mixin Class

Given the image is a mixin in c++ example

Question number: 614

» Basic CS » Operating System

Essay Question▾

Describe in Detail

When is a system in safe state?

Explanation

Safe State in image

Safe State in Image

Safe State in image

  • A process requests an available resource, system decides if immediate allocation leaves the system in a safe state.

  • System is in safe state if there exists a safe execution sequence for all processes- without causing deadlock

  • Sequence < P1, P2, …. Pn > is safe if for each Pi, the resource that Pi request can be satisfied by currently available resources and resources held by all the Pj, with J < I.

  • If Pi resource needs are not immediately available, them Pi can wait until all Pj have finished.

  • When Pj is finished, Pi can obtain need resources, execute, return allocated resources and terminate.

  • Pi terminates. Pi + 1 can obtain needed resources.

Question number: 615

» Basic CS » Networks

Essay Question▾

Describe in Detail

Name of 7 layers of the OSI stack.

Explanation

Define OSI model in image

Define OSI Model in Image

Define OSI model in image

  • Application layer

  • Presentation layer

  • Session layer

  • Transport layer

  • Network Layer

  • Data link layer

  • Physical layer