3i Infotech Papers: Sample Questions 210 - 211 of 1245

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

Question number: 210

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

Find the output of the following program

  1. class some
  2. {
  3.     public: ~some()
  4.     {
  5.         cout<<"some's destructor"<<endl;
  6.     }
  7. };
  8. void main()
  9. {
  10.     some s;
  11.     s.~some();
  12. }

Explanation

  • In the program

Table showing the program

Table showing the program

  1. class some
  2. {
  3.     public: ~some()
  4.     {
  5.         cout < < “somes destructor” < < endl;
  6.     }
  7. };
  • Define the class some

  • In the class define the ~some () function

  • In the function cout prints the “some’s destructor”

  1. void main()
  2. some ss.~some();
  3. }
  • Destructors can be called explicitly.

  • Here ‘s. ~some () ’ explicitly calls the destructor of ‘s’.

  • When main () returns, destructor of s is called again.

Question number: 211

» Database » MySQL

Essay Question▾

Describe in Detail

What is E-R model?

Explanation

  • An entity–relationship model (ER model) is a systematic way of describing and defining a business process.

  • An ER model is typically implemented as a database.

  • The main components of E-R model are: entity set and relationship set.

    The geometric shapes and their meaning in an E-R Diagram –

    • Rectangle: Represents Entity sets.

    • Ellipses: Attribute

    • Diamond: Relationship Set

    • Lines: They link attributes to Entity Sets and Entity sets to Relationship Set

    • Double Ellipses: Multivalued Attributes

    • Dashed Ellipses: Derived Attributes

    • Double Rectangles: Weak Entity Sets

    • Double Lines: Total participation of an entity in a relationship set

A sample E-R Diagram:

The sample of E-R diagram

The Sample of E-R Diagram

The sample of E-R diagram