3i Infotech Papers: Sample Questions 765 - 767 of 1245

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

Question number: 765

» Database » MySQL

Short Answer Question▾

Write in Short

Which command displays the SQL command in the SQL buffer, and then executes it?

Explanation

  • RUN command displays the SQL command in the SQL buffer and then executes it.

Syntax of RUN Command:

RUN string

Question number: 766

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

What is handle class?

Explanation

Handle class maintains a pointer to an object programmatically accessible through the public interface of the handle class. Explanation:

  • Abstract classes provide no benefits of the virtual functions unless objects of the class are accessed through pointers and references.

  • User code thus become dependent on implementation details as an abstract type cannot be allocated statistically or on the stack without its knowing its size.

  • Pointers or references put the burden of memory management on the user or the abstract class object has to be of fixed size.

  • Classes must require varying amounts of storage.

  • Single object is thus split into two parts: a handle providing the user interface and a representation for most of the object’s state.

  • The connection between the handle and the representation is a pointer in the handle- thus handles have more data than simple representation pointer.

  • Layout of the handle remains stable, even when the representation changes solving the problems.

Question number: 767

» Languages » C & C Plus Plus

Short Answer Question▾

Write in Short

What is the output of the following program?

  1. main ()
  2. {
  3.     int i = -1;
  4.     printf ( “i = %di = %d  ” ,i, -i);
  5. }

Explanation

In the program

Table shows the program

Table shows the program

int i =-1;

  • Define the value of integer i=-1

printf (“i =%d, i =%d ” i, -i);

  • In printf first prints the value of i.

  • After that the value of the expression –i=- (-1) is printed.