3i Infotech Papers: Sample Questions 923 - 925 of 1245

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

Question number: 923

» Aptitude

MCQ▾

Question

If the sum of the roots of the equation 0 is equal to the sum of the squares of their reciprocals then are in

Choices

Choice (4) Response

a.

GP

b.

HP

c.

AP

d.

All of the above

Answer

b.

Explanation

  • Consider, be the roots of this equation then,

    ……… equation 1

  • Now, it is given that sum of roots is equal to square of reciprocal of roots

  • Now putting value of and from equation 1

    …………… equation 2

  • Now let are in HP then

  • This result is similar to equation

  • Therefore, these terms are in HP.

Question number: 924

» Languages » Java

Essay Question▾

Describe in Detail

What is the difference between java and C++

Explanation

Difference between Java and C++

Difference between Java and C++

Java

C++

No semicolon.

End with a semicolon.

Modifiers can be added to each data field or method individually.

Divided into major sections by private, protected and public.

Extends to indicate inheritance from a parent class.

Class A, B, C, D to indicate inheritance.

Class contains member function implementation.

Member function implementation can be external to class.

Question number: 925

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

Why generalization is very strong?

Explanation

  • Even though Generalization satisfies Structural, Interface, Behaviour properties. It is mathematically very strong, as it is Antisymmetric and Transitive.

    • Antisymmetric: Relations like: employee is a person, but not all persons are employees. Mathematically all As’ are B, but all Bs’ not A.

    • Transitive: A= > B, B= > c then A= > c.

      • A. Salesman

      • B. Employee.

      • C. Person

  • Note: All the other relationships satisfy all the properties like Structural properties, Interface properties, Behavior properties.