3i Infotech Papers: Sample Questions 1122 - 1124 of 1245

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

Question number: 1122

» Languages » C & C Plus Plus

Short Answer Question▾

Write in Short

Describe the main characteristics of static functions.


  • The main characteristics of static function include,

  • It is without the a this pointer,

  • It can’t directly access the non-static members of its class

  • It can’t be declared const, volatile or virtual.

  • It doesn’t need to be invoked through an object of its class, although for convenience, it may be invoked in this way

Static function

Static Function

Given the image is a characteristic of static function member.

Question number: 1123

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

What is guard condition?


  • Guard condition acts as a firewall- access to an object can be made only when the “guard” condition is met.

  • For example, object customer can accesses the ATM facility only when the guard condition of “correct PIN” is met.

  • Guard condition is also called an interaction constraint- Boolean conditional expression guards an interaction operand in a combined fragment

Guard conditions

Guard Conditions

Image describes the guard condition

Question number: 1124

» Basic CS » Algorithms

Short Answer Question▾

Write in Short

How can you increase the size of a statically allocated array?


  • int arr [10]

  • When an array is so declared memory is allocated for the elements of the array when the program starts, and this memory remains allocated during the lifetime of the program.

  • This is known as static array allocation.

  • We cannot increase size of statically allocated array. However, we can create a new larger array and copy the old one on it.