Programming in 'C'
Description: 'C' | |
Number of Questions: 15 | |
Created by: Aliensbrain Bot | |
Tags: -C- Looping Iteration Operators and Expression |
How many number of times will the loop mentioned below be executed? int x=5;int y=30;while(x<=y){ x=y/x; y=y-10;}
The process of repeating sequence of instructions over and over again is called
In 'C' language 1%2 would result in ____________
Nested loops are used for which of the following purposes in 'C'?
In which of the following statementsor loops 'continue' statement cannot be used in 'C'?
What would be the output of the following statement? int x=30;int y=5;while(x!=0){ if(x%y==0) printf(n Value of x=%d,x); x=x-10;}
What would be the value of 'j' at the end of the 'C' programming statement?int i=1234, k,j=0;do{ k=i%10; j=j*10+k; i=i/10; }while(i!=0); printf(n value of j=%d,j);
What will be the output of the given statement? int i=3; do { printf(%d n, i); } while(i!=0);
Which of the following statements in C is the correct one to find whether a triangle is an equilateral triangle or not? Let the sides of the triangle be A, B, & C.
Which of the following statements is the correct one for exchanging the values of two variables? If a, b & temp are three variables.
Which of the following is the correct choice for making use of 'do-while' loop in a program?
What would be the conclusion of the following statement in 'C'? int i=5;for(;;){ printf(n Value of i=%d,i);}
What would be the output of the following 'C' statement?
void main()
{
int i=1, j=5;
while(i<j)
{
printf("value of i= %d", i);
i++;
}
}
What would be the output of the following statement in 'C'? int i=0; for(i=0;i<5;) { switch(i) { case 0: printf(n Number is Zero!); break; case 1: printf(n Number is One!); break; case 2: printf(n Number is Two!); break; } i=i+2; }
What would be the output of the following statement in 'C'? int i=0; do { i=i+3; printf(n i=%d,i); }while(i<5);