TCS Papers: Sample Questions 456 - 457 of 502

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

Question number: 456

» Languages » C & C Plus Plus

MCQ▾

Question

For automatic objects, constructors and destructors are called each time the objects

Choices

Choice (4) Response

a.

Are constructed

b.

Enter and leave scope

c.

Inherit parent class

d.

Are destroyed

Answer

b.

Explanation

  • For automatic objects, constructors and destructors are called each time the objects enter and leave scope

  • Automatic variables are those, which exist only within the scope where they are declared- typically allocated on stack

  • Constructor and destructors are called implicitly by the compiler.

  • The order in which these function calls occur depends on the order in which execution enters and leaves the scopes where the objects are instantiated.

  • Constructor for an automatic local object is called when execution reaches the point where that object is defined the corresponding destructor is called when execution leaves the object’s scope.

  • Constructor and destructor for automatic objects are called each time execution enters and leaves the scope of the object.

  • Destructors are not called for automatic objects if the program terminates with a call to function exit or function abort.

Question number: 457

» Basic CS » Networks

Essay Question▾

Describe in Detail

Expand IDEA?

Explanation

  • IDEA stands for International Data Encryption Algorithm- encryption algorithm developed at ETH in Zurich, Switzerland which uses a block cipher with a key, and is considered very secure. As a block cipher, it is also symmetric

  • It was described in 1991.

  • No practical attacks have been published despite of a number of attempts.

  • IDEA is patented in the United States and in most of the European countries.

  • Encryption and Decryption are identical as in DES.

  • The algorithm was replacement for the data encryption standard.

  • IDEA is a minor change of an earlier cipher PES (proposed encryption standard)

  • IDEA was originally called IPES (improved proposed encryption standard)

International data encryption algorithm

International Data Encryption Algorithm

International data encryption algorithm