3i Infotech Papers: Sample Questions 282 - 283 of 1245

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

Question number: 282

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

What is the output of the following program?

  1. main ()
  2. {
  3.     char a[100];
  4.     a[0] = ‘a’ a[1] = ‘b’ a[2] = ‘c’ a[4] = ‘d’ ;
  5.     abc (a);
  6. }
  7. abc (char a[])
  8. {
  9.     a + +;
  10.     printf ( “%c” * a);
  11.     a + +;
  12.     printf ( “%c” * a);
  13. }


In the program

Table shows the program

Table shows the program

char a [100];

Declare the character array a [100];

a [0] = ‘a’ a [1] = ‘b’ a [2] = ‘c’ a [4] = ‘d’;

Define the characters in the array.

abc (a);

Applying abc (a) function

abc (char a [] )


a ++;

printf (“%c” * a);

a ++;

printf (“%c” * a);


In the abc () function

First the base address is modified only in function and as a result ‘a’ points to ‘b’ then after incrementing to ‘c’.

So, bc will be printed.

Question number: 283

» Database » Oracle



LGWR process writes information into….


Choice (4) Response


Redo log files


Control files




None of the above




Structure understanding of LGWR.

Structure Understanding of LGWR.

Structure understanding of LGWR.

  • LGWR process writes information into redo log files.

  • Redo log files are created upon database creation and addition one time added by the DBA.

  • When we start a database instance, LGWR is an oracle background process created.

  • Writes the redo log buffers to the on-line redo log files.

  • Redo log data is always written first to a buffer in memory, and then written to disk by the LGWR process.

The LGWR process is also responsible for:

  • When a transaction is committed, writing commit records to the log file

  • Multiple commits that is written in a single operation when database activity is high.

  • Recording a system change number to each committed transaction, for use in recovery operations when running Parallel Server.