Civil Engineering Mechanical Engineering Chemical Engineering Networking Database Questions Computer Science Basic Electronics Digital Electronics Electronic Devices Circuit Simulation Electrical Enigneering Engineering Mechanics Technical Drawing

# C Programming - Control Instructions

@ : Home > C Programming > Control Instructions > General Questions

### Exercise

"When ambition ends, happiness begins."
- (Proverb)
1.

How many times "IndiaBIX" is get printed?

``````#include<stdio.h>
int main()
{
int x;
for(x=-1; x<=10; x++)
{
if(x < 5)
continue;
else
break;
printf("IndiaBIX");
}
return 0;
}
``````

 A. Infinite times B. 11 times C. 0 times D. 10 times

2.

How many times the while loop will get executed if a short int is 2 byte wide?

``````#include<stdio.h>
int main()
{
int j=1;
while(j <= 255)
{
printf("%c %d\n", j, j);
j++;
}
return 0;
}
``````

 A. Infinite times B. 255 times C. 256 times D. 254 times

3.

Which of the following is not logical operator?

 A. & B. && C. || D. !

4.

In mathematics and computer programming, which is the correct order of mathematical operators ?