3i Infotech Placement: Sample Questions 1101 - 1102 of 1245

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 1101

Edit

Describe in Detail

Essay▾

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.

Question 1102

Edit

Describe in Detail

Essay▾

What do you mean by flat file database?

Explanation

  • A flat file database is a type of database that stores data in a single table.
  • A flat file database is a large collection of data that is the tables and records have no relation between any other tables.
  • In, one could have a single table (e. g. , My Small Business Data) with everything stored in it, from customers to sales to orders to invoices.
  • Flat file is one type of computer file system that stores all data in a single directory.
  • Data, folders or paths are used organize the data.
  • While this is a simple way to store files, a flat file system becomes increasingly inefficient as more data is added.
  • Example of Flate file Example:
Table Shows the Example of Flate File
RunnerRaceAgeTime
Dev10k290: 42: 19
Parth10k311: 01: 20
Jony5k220: 16: 05
Biral10k260: 53: 17
Dev5k290: 19: 22
Anita5k260: 24: 17
Biren5k280: 32: 19
Parth5k310: 30: 03
  • We can see that some names repeat; or a small table this is a big problem- To change the record for Dev and add a last name, all records for “Dev” have to be found and updated.

Developed by: