3i Infotech Papers: Sample Questions 1194 - 1195 of 1245

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

Question number: 1194

» Languages » C & C Plus Plus

Short Answer Question▾

Write in Short

What are the steps involved in designing?

Explanation

  • Go through the SRS prepared by the System Analyst.

  • Tasks include Architectural Design and Detailed Design.

  • Architectural Design finds the main modules in the problem domain. Detailed Design understands what should be done within each module.

Question number: 1195

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

What is generic functions and generic classes?

Explanation

Generic Function:

  • A function declared with type parameter is generic function.

  • When called, actual types are used instead of the type parameters.

  • Used to create template describing what a function will do.

  • A template is a blueprint or formula for creating a generic class of a function.

  • Each parameter represents data types with class keyword.

  • After that function name for generic function will defined.

  • The library container like iterators and algorithms are example of generic programming and developed using template concept.

Generic Classes:

  • The behaviour of a generic container class does not depend on the kind of elements stored in the container.

  • It describes the functionality without bound to any data type.

  • Used to generate definitions of classes which are bound to a particular data type.

  • Example is array class.

  • Functionality of array class will the same irrespective of the array members are int, float, or string.