3i Infotech Papers: Sample Questions 913 - 915 of 1245

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

Question number: 913

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

What do you mean by inheritance?

Explanation

Understanding of inheritace.

Understanding of Inheritace.

Understanding of inheritace.

  • A class when it derives properties and characteristics from another class is called inheritance.

  • It is one of the most important feature of object-oriented programming.

  • Sub Class:

    The class that inherits properties from another class is called sub class or derived class.

  • Super class:

    The class whose properties are inherited by sub class is called base class or super class.

  • Inheritance is a technique of code reuse.

  • Provides possibility to extend existing classes by creating derived classes.

Inheritance Syntax:

class DerivedClass: accessSpecifier BaseClass

Question number: 914

» Basic CS » Data Structures

Short Answer Question▾

Write in Short

What is immediate addressing mode?

Explanation

The addressing mode in which the data operand is a part of the instruction itself is the immediate addressing mode.

Example:

MOV CX, H, ADD AX, H, MOV AL, FFH

Question number: 915

» Languages » Java

Essay Question▾

Describe in Detail

What is the difference between AWT and swing?

Explanation

Difference between AWT and swing

Difference between AWT and swing

AWT

Swing

Abstract window toolkit

Also called Java Foundation Classes.

Components are heavyweight.

Lightweight components.

Require java. awt package.

Require javax. swing package.

Components are platform dependent.

Made in purely java and they are platform independent.

Occupies more memory space.

Occupies less memory space.

Less powerful than swing.

Extension to AWT and many drawbacks of AWT are removed in swing.