3i Infotech Papers: Sample Questions 668 - 669 of 1245

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

Question number: 668

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

What is the output of the following program?

  1. main ()
  2. {
  3.     char * cptrc;
  4.     void * vptrv;
  5.     c = 10;
  6.     v = 0;
  7.     cptr=&c;
  8.     vptr=&v;
  9.     printf(“%c%vc,v);
  10. }

Explanation

  • Compiler error (at line number 4): size of v is Unknown.
  • In a program

    Table shows the program

    Table shows the program

    char * cptr, c;

    Create character pointer and variable

    void * vptr, v;

    creating variable vptr of type void * and v of type void

    c = 10;

    Define the value c = 10;

    v = 0;

    Here v was void is defined to v = 0

    So, compiler error: size of v is unknown.

  • You can create a variable of type void * but not of type void, since void is an empty type with unknown size. Pointer void can point to any variable type

Question number: 669

» Database » MySQL

Essay Question▾

Describe in Detail

What is durability in DBMS?

Explanation

Understanding of durability.

Understanding of Durability.

Understanding of durability.

  • Durability in databases is the one type of property that ensures transactions are saved permanently and do not accidentally disappear or get erased, even during a database crash.

  • Flushing the transaction’s log records to non-volatile storage before acknowledging commitment that achieved by durability.

  • If you are buying something from an online shop, if he system crashes, your credit card is processed and the order is placed, then that order remains in place.

  • When acknowledging commitment- durability can be achieved by flushing the transaction’s log records to non-volatile storage.