3i Infotech Papers: Sample Questions 734 - 737 of 1245

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

Question number: 734

» Operating System » Unix

Short Answer Question▾

Write in Short

Name two paging states for a page in memory?

Explanation

Define paging state

Define Paging State

Define paging state

The two paging states are:

  • The page is not yet eligible for swapping.

  • The page is eligible for swapping but not yet eligible for reassignment to other virtual address space.

Question number: 735

» Database » MySQL

Short Answer Question▾

Write in Short

What is an Extension of entity type?

Explanation

Entity type is intension and extension.

Entity Type is Intension and Extension.

Entity type is intension and extension.

  • The collections of entities of a particular entity type are grouped together into an entity set

  • It is the number of tuples present in a table at any instance.

  • This is time dependent.

Question number: 736

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

What is a parameterized type?

Explanation

  • A template is a parameterized construct or type containing generic code that can manipulate any type.

  • Called parameterized because actual type is a parameter of the code body.

  • Polymorphism achieved through parameterized types is called parametric polymorphism.

  • Parametric polymorphism allows same code to be used on different types passed as parameters.

Parameterized type

Parameterized Type

Given the image is parameterized type (polymorphism)

Question number: 737

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

What is the output of the following program?

  1. main ()
  2. {
  3.     unsigned int i;
  4.     for (i = 1i>-2i--)
  5.     printf ( “c aptitude” );
  6. }

Explanation

In the program

Table shows the program

Table shows the program

unsigned int i;

Here i is an unsigned integer.

for (i = 1; i > -2; i–)

i is compared with a signed value.

Since the both types does not match, signed is promoted to unsigned value.

The unsigned equivalent of -2 is a huge value so condition becomes false and control comes out of the loop

Difference between signed and unsigned int data type

Difference between Signed and Unsigned Int Data Type

Difference between signed and unsigned int data type