• Increase font size
  • Default font size
  • Decrease font size

C Language

AddThis Social Bookmark Button

16.) When does the code block following while(x<100) execute?

A.) When x is less than one hundred

B.) When x is greater than one hundred

C.) When x is equal to one hundred

D.) While it wishes

View Answer

Answer: Option A


17.) How many times "educationalera" is get printed?


int main()


     int x;

     for(x=-1; x<=10; x++)


         if(x < 5)




       printf("Educational Era");


return 0;


A. Infinite times                   B. 11 times

C. 0 times                          D. 10 times

View Answer

Answer: Option C


 18.) What is output of following?



       char s[ ]="man";

       int i;

      for(i=0;s[ i ];i++)

      printf("\n%c%c%c%c",s[ i ],*(s+i),*(i+s),i[s]);


View Answer

Answer: Option mmmmaaaannnn


19.) What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array?

A.) The element will be set to 0.

B.) The compiler would report an error.

C.) The program may crash if some important data gets overwritten.

D.) The array size would appropriately grow.

View Answer

Answer: Option  C


20.) Declare the following statement?

"An array of three pointers to chars".

A.) char *ptr[3]();

B.) char *ptr[3];

C.) char (*ptr[3])();

D.) char **ptr[3];

View Answer

Answer: Option B



Oracle Certification


The Oracle Certification Program is a professional certification program offered by the Oracle Corporation. There are three levels of Oracle Certification in several disciplines: Oracle Certified Associate (OCA), Oracle Certified Professional (OCP), and Oracle Certified Master (OCM).

Java Certification


Sun Certified Professional (SCP) is a professional certification program by Sun Microsystems, a subsidiary of Oracle Corporation. There are two levels of java Certification in several disciplines: Sun Certified Java Associate (SCJA), Sun Certified Java Programmer (SCJP), and Sun Certified Java Developer (SCJD)

Red Hat Certification


The Red Hat Certification Program is Red Hat's professional certification program for Red Hat and general Linux related skills such as system administration on Red Hat Enterprise Linux Red Hat Certified Technician (RHCT)  and Red Hat Certified Engineer (RHCE)